Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support patch releases in all build files and add ubuntu 24.04 #7

Merged
merged 1 commit into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions docker/centos-7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ MAINTAINER Vladimir Smirnov <[email protected]>
USER root

# Make sure the package repository is up to date.
ARG CACHE_DATE=20240212
ARG CACHE_DATE=20241015
RUN sed -i 's/mirror.centos.org/vault.centos.org/g' /etc/yum.repos.d/CentOS-*.repo
RUN sed -i 's/^#.*baseurl=http/baseurl=http/g' /etc/yum.repos.d/CentOS-*.repo
RUN sed -i 's/^mirrorlist=http/#mirrorlist=http/g' /etc/yum.repos.d/CentOS-*.repo
RUN yum upgrade -y
RUN yum install -y git openssh cairo-devel mercurial wget redhat-lsb-core openssh-server which

Expand All @@ -14,7 +17,7 @@ RUN ssh-keygen -f /etc/ssh/ssh_host_ed25519_key -N '' -t ed25519
RUN yum groupinstall -y 'Development Tools'

# Install Go and other deps
RUN wget -q -O/tmp/go.tar.gz https://go.dev/dl/go1.22.0.linux-amd64.tar.gz
RUN wget -q -O/tmp/go.tar.gz https://go.dev/dl/go1.23.2.linux-amd64.tar.gz
RUN tar -xf /tmp/go.tar.gz -C /usr/local/
RUN rm -f /tmp/go.tar.gz
RUN mkdir -p /root/go
Expand Down
4 changes: 2 additions & 2 deletions docker/debian-bookworm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ FROM debian:bookworm
MAINTAINER Vladimir Smirnov <[email protected]>

# Make sure the package repository is up to date.
ARG CACHE_DATE=20240212
ARG CACHE_DATE=20241015
RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get install -y wget curl apt-utils git openssh-server libcairo2-dev mercurial build-essential lsb-release
RUN mkdir -p /var/run/sshd

# Install Go and other deps
RUN wget -q -O/tmp/go.tar.gz https://go.dev/dl/go1.22.0.linux-amd64.tar.gz
RUN wget -q -O/tmp/go.tar.gz https://go.dev/dl/go1.23.2.linux-amd64.tar.gz
RUN tar -xf /tmp/go.tar.gz -C /usr/local/
RUN rm -f /tmp/go.tar.gz
RUN mkdir -p /root/go
Expand Down
2 changes: 1 addition & 1 deletion docker/debian-bookworm/create_package_deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ARCH=$(uname -m)
VERSION_GIT=$(git describe --abbrev=6 --always --tags | cut -c 2-)
PKG_VERSION=""
case ${VERSION_GIT} in
*-alpha*|*-beta*|*-rc*)
*-alpha*|*-beta*|*-rc*|-patch*)
VERSION=$(cut -d'-' -f 1 <<< ${VERSION_GIT})
RELEASE=$(cut -d'-' -f 2 <<< ${VERSION_GIT})
RELEASE2=$(cut -d'-' -f 3 <<< ${VERSION_GIT})
Expand Down
2 changes: 1 addition & 1 deletion docker/debian-bookworm/pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pushd ~/go/src/github.com/go-graphite/"${1}/"
make clean
REPOS="autobuilds"

git describe --abbrev=6 --dirty --always --tags | grep -q '^v[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?$'
git describe --abbrev=6 --dirty --always --tags | grep -q '^v[0-9]\+\.[0-9]\+\(\.[0-9]\+\(\-patch[0-9]\+)\?\)\?$'
if [[ $? -eq 0 ]]; then
REPOS="stable autobuilds"
fi
Expand Down
4 changes: 2 additions & 2 deletions docker/debian-bullseye/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ FROM debian:bullseye
MAINTAINER Vladimir Smirnov <[email protected]>

# Make sure the package repository is up to date.
ARG CACHE_DATE=20240212
ARG CACHE_DATE=20241015
RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get install -y wget curl apt-utils git openssh-server libcairo2-dev mercurial build-essential lsb-release
RUN mkdir -p /var/run/sshd

# Install Go and other deps
RUN wget -q -O/tmp/go.tar.gz https://go.dev/dl/go1.22.0.linux-amd64.tar.gz
RUN wget -q -O/tmp/go.tar.gz https://go.dev/dl/go1.23.2.linux-amd64.tar.gz
RUN tar -xf /tmp/go.tar.gz -C /usr/local/
RUN rm -f /tmp/go.tar.gz
RUN mkdir -p /root/go
Expand Down
2 changes: 1 addition & 1 deletion docker/debian-bullseye/create_package_deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ARCH=$(uname -m)
VERSION_GIT=$(git describe --abbrev=6 --always --tags | cut -c 2-)
PKG_VERSION=""
case ${VERSION_GIT} in
*-alpha*|*-beta*|*-rc*)
*-alpha*|*-beta*|*-rc*|-patch*)
VERSION=$(cut -d'-' -f 1 <<< ${VERSION_GIT})
RELEASE=$(cut -d'-' -f 2 <<< ${VERSION_GIT})
RELEASE2=$(cut -d'-' -f 3 <<< ${VERSION_GIT})
Expand Down
2 changes: 1 addition & 1 deletion docker/debian-bullseye/pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pushd ~/go/src/github.com/go-graphite/"${1}/"
make clean
REPOS="autobuilds"

git describe --abbrev=6 --dirty --always --tags | grep -q '^v[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?$'
git describe --abbrev=6 --dirty --always --tags | grep -q '^v[0-9]\+\.[0-9]\+\(\.[0-9]\+\(\-patch[0-9]\+)\?\)\?$'
if [[ $? -eq 0 ]]; then
REPOS="stable autobuilds"
fi
Expand Down
4 changes: 2 additions & 2 deletions docker/debian-buster/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM debian:buster
MAINTAINER Vladimir Smirnov <[email protected]>

# Make sure the package repository is up to date.
ARG CACHE_DATE=20240212
ARG CACHE_DATE=20241015
RUN apt-get update
RUN apt-get install -y --allow-unauthenticated debian-archive-keyring
RUN apt-get update
Expand All @@ -11,7 +11,7 @@ RUN apt-get install -y wget curl apt-utils git openssh-server libcairo2-dev merc
RUN mkdir -p /var/run/sshd

# Install Go and other deps
RUN wget -q -O/tmp/go.tar.gz https://go.dev/dl/go1.22.0.linux-amd64.tar.gz
RUN wget -q -O/tmp/go.tar.gz https://go.dev/dl/go1.23.2.linux-amd64.tar.gz
RUN tar -xf /tmp/go.tar.gz -C /usr/local/
RUN rm -f /tmp/go.tar.gz
RUN mkdir -p /root/go
Expand Down
4 changes: 2 additions & 2 deletions docker/debian-buster/create_package_deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ die() {
}

pwd
git config --global --add safe.directory /root/go/src/github.com/go-graphite/carbonapi
git config --global --add safe.directory /root/go/src/github.com/go-graphite/carbonapi ||:

VERSION=""
RELEASE=""
Expand All @@ -19,7 +19,7 @@ ARCH=$(uname -m)
VERSION_GIT=$(git describe --abbrev=6 --always --tags | cut -c 2-)
PKG_VERSION=""
case ${VERSION_GIT} in
*-alpha*|*-beta*|*-rc*)
*-alpha*|*-beta*|*-rc*|-patch*)
VERSION=$(cut -d'-' -f 1 <<< ${VERSION_GIT})
RELEASE=$(cut -d'-' -f 2 <<< ${VERSION_GIT})
RELEASE2=$(cut -d'-' -f 3 <<< ${VERSION_GIT})
Expand Down
2 changes: 1 addition & 1 deletion docker/debian-buster/pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pushd ~/go/src/github.com/go-graphite/"${1}/"
make clean
REPOS="autobuilds"

git describe --abbrev=6 --dirty --always --tags | grep -q '^v[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?$'
git describe --abbrev=6 --dirty --always --tags | grep -q '^v[0-9]\+\.[0-9]\+\(\.[0-9]\+\(\-patch[0-9]\+)\?\)\?$'
if [[ $? -eq 0 ]]; then
REPOS="stable autobuilds"
fi
Expand Down
4 changes: 2 additions & 2 deletions docker/debian-trixie/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ FROM debian:trixie
MAINTAINER Vladimir Smirnov <[email protected]>

# Make sure the package repository is up to date.
ARG CACHE_DATE=20240212
ARG CACHE_DATE=20241015
RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get install -y wget curl apt-utils git openssh-server libcairo2-dev mercurial build-essential lsb-release
RUN mkdir -p /var/run/sshd

# Install Go and other deps
RUN wget -q -O/tmp/go.tar.gz https://go.dev/dl/go1.22.0.linux-amd64.tar.gz
RUN wget -q -O/tmp/go.tar.gz https://go.dev/dl/go1.23.2.linux-amd64.tar.gz
RUN tar -xf /tmp/go.tar.gz -C /usr/local/
RUN rm -f /tmp/go.tar.gz
RUN mkdir -p /root/go
Expand Down
2 changes: 1 addition & 1 deletion docker/debian-trixie/create_package_deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ARCH=$(uname -m)
VERSION_GIT=$(git describe --abbrev=6 --always --tags | cut -c 2-)
PKG_VERSION=""
case ${VERSION_GIT} in
*-alpha*|*-beta*|*-rc*)
*-alpha*|*-beta*|*-rc*|-patch*)
VERSION=$(cut -d'-' -f 1 <<< ${VERSION_GIT})
RELEASE=$(cut -d'-' -f 2 <<< ${VERSION_GIT})
RELEASE2=$(cut -d'-' -f 3 <<< ${VERSION_GIT})
Expand Down
2 changes: 1 addition & 1 deletion docker/debian-trixie/pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pushd ~/go/src/github.com/go-graphite/"${1}/"
make clean
REPOS="autobuilds"

git describe --abbrev=6 --dirty --always --tags | grep -q '^v[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?$'
git describe --abbrev=6 --dirty --always --tags | grep -q '^v[0-9]\+\.[0-9]\+\(\.[0-9]\+\(\-patch[0-9]\+)\?\)\?$'
if [[ $? -eq 0 ]]; then
REPOS="stable autobuilds"
fi
Expand Down
2 changes: 1 addition & 1 deletion docker/rebuild.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
set -e
OS="ubuntu:18.04 ubuntu:20.04 ubuntu:22.04 debian:buster debian:bullseye debian:bookworm rockylinux:8 rockylinux:9 centos:7"
OS="ubuntu:18.04 ubuntu:20.04 ubuntu:22.04 ubuntu:24.04 debian:buster debian:bullseye debian:bookworm rockylinux:8 rockylinux:9 centos:7"
SQUASH=false
for i in ${OS}; do
folder=$(sed 's/:/-/g;s/\.//g' <<< ${i})
Expand Down
4 changes: 2 additions & 2 deletions docker/rockylinux-8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM rockylinux:8
MAINTAINER Vladimir Smirnov <[email protected]>

# Make sure the package repository is up to date.
ARG CACHE_DATE=20240212
ARG CACHE_DATE=20241015
RUN yum upgrade -y
RUN yum install -y openssh-server
RUN ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N '' -t rsa
Expand All @@ -14,7 +14,7 @@ RUN yum install -y git openssh cairo-devel mercurial ruby-devel wget redhat-lsb-
RUN yum groupinstall -y 'Development Tools'

# Install Go and other deps
RUN wget -q -O/tmp/go.tar.gz https://go.dev/dl/go1.22.0.linux-amd64.tar.gz
RUN wget -q -O/tmp/go.tar.gz https://go.dev/dl/go1.23.2.linux-amd64.tar.gz
RUN tar -xf /tmp/go.tar.gz -C /usr/local/
RUN rm -f /tmp/go.tar.gz
RUN mkdir -p /root/go
Expand Down
2 changes: 1 addition & 1 deletion docker/rockylinux-8/create_package_rpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ARCH=$(uname -m)
VERSION_GIT=$(git describe --abbrev=6 --always --tags | cut -c 2-)
PKG_VERSION=""
case ${VERSION_GIT} in
*-alpha*|*-beta*|*-rc*)
*-alpha*|*-beta*|*-rc*|*-patch*)
VERSION=$(cut -d'-' -f 1 <<< ${VERSION_GIT})
RELEASE=$(cut -d'-' -f 2 <<< ${VERSION_GIT})
RELEASE2=$(cut -d'-' -f 3 <<< ${VERSION_GIT})
Expand Down
2 changes: 1 addition & 1 deletion docker/rockylinux-8/pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pushd ~/go/src/github.com/go-graphite/"${1}/"
make clean
REPOS="autobuilds"

git describe --abbrev=6 --dirty --always --tags | grep -q '^v[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?$'
git describe --abbrev=6 --dirty --always --tags | grep -q '^v[0-9]\+\.[0-9]\+\(\.[0-9]\+\(\-patch[0-9]\+)\?\)\?$'
if [[ $? -eq 0 ]]; then
REPOS="stable autobuilds"
fi
Expand Down
4 changes: 2 additions & 2 deletions docker/rockylinux-9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM rockylinux:9
MAINTAINER Vladimir Smirnov <[email protected]>

# Make sure the package repository is up to date.
ARG CACHE_DATE=20240212
ARG CACHE_DATE=20241015
RUN yum upgrade -y
RUN yum install -y openssh-server
RUN ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N '' -t rsa
Expand All @@ -15,7 +15,7 @@ RUN yum install -y git openssh cairo-devel wget
RUN yum groupinstall -y 'Development Tools'

# Install Go and other deps
RUN wget -q -O/tmp/go.tar.gz https://go.dev/dl/go1.22.0.linux-amd64.tar.gz
RUN wget -q -O/tmp/go.tar.gz https://go.dev/dl/go1.23.2.linux-amd64.tar.gz
RUN tar -xf /tmp/go.tar.gz -C /usr/local/
RUN rm -f /tmp/go.tar.gz
RUN mkdir -p /root/go
Expand Down
2 changes: 1 addition & 1 deletion docker/rockylinux-9/create_package_rpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ARCH=$(uname -m)
VERSION_GIT=$(git describe --abbrev=6 --always --tags | cut -c 2-)
PKG_VERSION=""
case ${VERSION_GIT} in
*-alpha*|*-beta*|*-rc*)
*-alpha*|*-beta*|*-rc*|*-patch*)
VERSION=$(cut -d'-' -f 1 <<< ${VERSION_GIT})
RELEASE=$(cut -d'-' -f 2 <<< ${VERSION_GIT})
RELEASE2=$(cut -d'-' -f 3 <<< ${VERSION_GIT})
Expand Down
26 changes: 6 additions & 20 deletions docker/rockylinux-9/pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,11 @@ TYPE="${1}"
export PATH="/root/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${PATH}"
export GOPATH="/root/go"
[[ -f /etc/extra_opts ]] && . /etc/extra_opts

DISTRO=""
LSB_R=""
LSB_C=""
VERSION=""

type lsb_release &>/dev/null
if [[ $? -ne 0 ]]; then
source /etc/os-release
DISTRO="${ID}"
LSB_C="${VERSION_ID}"
LSB_R="${VERSION_ID}"
else
DISTRO=$(lsb_release -s -i | tr '[:upper:]' '[:lower:]')
# Debian uses 'lsb_release -c' as a repo name
# CentOS and Ubuntu uses 'lsb_release -r'
LSB_R=$(lsb_release -s -r)
LSB_C=$(lsb_release -s -c)
fi
DISTRO=$(lsb_release -s -i | tr '[:upper:]' '[:lower:]')
# Debian uses 'lsb_release -c' as a repo name
# CentOS and Ubuntu uses 'lsb_release -r'
LSB_R=$(lsb_release -s -r)
LSB_C=$(lsb_release -s -c)
VERSION=""
PKG="deb"
if [[ "${DISTRO}" == "centos" ]] || [[ "${DISTRO}" == "rocky" ]]; then
Expand All @@ -43,7 +29,7 @@ pushd ~/go/src/github.com/go-graphite/"${1}/"
make clean
REPOS="autobuilds"

git describe --abbrev=6 --dirty --always --tags | grep -q '^v[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?$'
git describe --abbrev=6 --dirty --always --tags | grep -q '^v[0-9]\+\.[0-9]\+\(\.[0-9]\+\(\-patch[0-9]\+)\?\)\?$'
if [[ $? -eq 0 ]]; then
REPOS="stable autobuilds"
fi
Expand Down
4 changes: 2 additions & 2 deletions docker/ubuntu-1804/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ FROM ubuntu:18.04
MAINTAINER Vladimir Smirnov <[email protected]>

# Make sure the package repository is up to date.
ARG CACHE_DATE=20240212
ARG CACHE_DATE=20241015
RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get install -y git openssh-server libcairo2-dev mercurial build-essential lsb-release curl
RUN mkdir -p /var/run/sshd

# Install Go and other deps
RUN wget -q -O/tmp/go.tar.gz https://go.dev/dl/go1.22.0.linux-amd64.tar.gz
RUN wget -q -O/tmp/go.tar.gz https://go.dev/dl/go1.23.2.linux-amd64.tar.gz
RUN tar -xf /tmp/go.tar.gz -C /usr/local/
RUN rm -f /tmp/go.tar.gz
RUN mkdir -p /root/go
Expand Down
2 changes: 1 addition & 1 deletion docker/ubuntu-1804/create_package_deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ARCH=$(uname -m)
VERSION_GIT=$(git describe --abbrev=6 --always --tags | cut -c 2-)
PKG_VERSION=""
case ${VERSION_GIT} in
*-alpha*|*-beta*|*-rc*)
*-alpha*|*-beta*|*-rc*|-patch*)
VERSION=$(cut -d'-' -f 1 <<< ${VERSION_GIT})
RELEASE=$(cut -d'-' -f 2 <<< ${VERSION_GIT})
RELEASE2=$(cut -d'-' -f 3 <<< ${VERSION_GIT})
Expand Down
2 changes: 1 addition & 1 deletion docker/ubuntu-1804/pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pushd ~/go/src/github.com/go-graphite/"${1}/"
make clean
REPOS="autobuilds"

git describe --abbrev=6 --dirty --always --tags | grep -q '^v[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?$'
git describe --abbrev=6 --dirty --always --tags | grep -q '^v[0-9]\+\.[0-9]\+\(\.[0-9]\+\(\-patch[0-9]\+)\?\)\?$'
if [[ $? -eq 0 ]]; then
REPOS="stable autobuilds"
fi
Expand Down
4 changes: 2 additions & 2 deletions docker/ubuntu-2004/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ FROM ubuntu:20.04
MAINTAINER Vladimir Smirnov <[email protected]>

# Make sure the package repository is up to date.
ARG CACHE_DATE=20240212
ARG CACHE_DATE=20241015
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get install -y git openssh-server libcairo2-dev mercurial build-essential lsb-release curl
RUN mkdir -p /var/run/sshd

# Install Go and other deps
RUN wget -q -O/tmp/go.tar.gz https://go.dev/dl/go1.22.0.linux-amd64.tar.gz
RUN wget -q -O/tmp/go.tar.gz https://go.dev/dl/go1.23.2.linux-amd64.tar.gz
RUN tar -xf /tmp/go.tar.gz -C /usr/local/
RUN rm -f /tmp/go.tar.gz
RUN mkdir -p /root/go
Expand Down
2 changes: 1 addition & 1 deletion docker/ubuntu-2004/create_package_deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ARCH=$(uname -m)
VERSION_GIT=$(git describe --abbrev=6 --always --tags | cut -c 2-)
PKG_VERSION=""
case ${VERSION_GIT} in
*-alpha*|*-beta*|*-rc*)
*-alpha*|*-beta*|*-rc*|-patch*)
VERSION=$(cut -d'-' -f 1 <<< ${VERSION_GIT})
RELEASE=$(cut -d'-' -f 2 <<< ${VERSION_GIT})
RELEASE2=$(cut -d'-' -f 3 <<< ${VERSION_GIT})
Expand Down
2 changes: 1 addition & 1 deletion docker/ubuntu-2004/pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pushd ~/go/src/github.com/go-graphite/"${1}/"
make clean
REPOS="autobuilds"

git describe --abbrev=6 --dirty --always --tags | grep -q '^v[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?$'
git describe --abbrev=6 --dirty --always --tags | grep -q '^v[0-9]\+\.[0-9]\+\(\.[0-9]\+\(\-patch[0-9]\+)\?\)\?$'
if [[ $? -eq 0 ]]; then
REPOS="stable autobuilds"
fi
Expand Down
4 changes: 2 additions & 2 deletions docker/ubuntu-2204/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ FROM ubuntu:22.04
MAINTAINER Vladimir Smirnov <[email protected]>

# Make sure the package repository is up to date.
ARG CACHE_DATE=20240212
ARG CACHE_DATE=20241015
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get install -y git openssh-server libcairo2-dev mercurial build-essential lsb-release curl
RUN mkdir -p /var/run/sshd

# Install Go and other deps
RUN wget -q -O/tmp/go.tar.gz https://go.dev/dl/go1.22.0.linux-amd64.tar.gz
RUN wget -q -O/tmp/go.tar.gz https://go.dev/dl/go1.23.2.linux-amd64.tar.gz
RUN tar -xf /tmp/go.tar.gz -C /usr/local/
RUN rm -f /tmp/go.tar.gz
RUN mkdir -p /root/go
Expand Down
2 changes: 1 addition & 1 deletion docker/ubuntu-2204/create_package_deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ARCH=$(uname -m)
VERSION_GIT=$(git describe --abbrev=6 --always --tags | cut -c 2-)
PKG_VERSION=""
case ${VERSION_GIT} in
*-alpha*|*-beta*|*-rc*)
*-alpha*|*-beta*|*-rc*|-patch*)
VERSION=$(cut -d'-' -f 1 <<< ${VERSION_GIT})
RELEASE=$(cut -d'-' -f 2 <<< ${VERSION_GIT})
RELEASE2=$(cut -d'-' -f 3 <<< ${VERSION_GIT})
Expand Down
2 changes: 1 addition & 1 deletion docker/ubuntu-2204/pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pushd ~/go/src/github.com/go-graphite/"${1}/"
make clean
REPOS="autobuilds"

git describe --abbrev=6 --dirty --always --tags | grep -q '^v[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?$'
git describe --abbrev=6 --dirty --always --tags | grep -q '^v[0-9]\+\.[0-9]\+\(\.[0-9]\+\(\-patch[0-9]\+)\?\)\?$'
if [[ $? -eq 0 ]]; then
REPOS="stable autobuilds"
fi
Expand Down
Loading