Skip to content

Commit

Permalink
Update Go version to 1.22.5 (#8034)
Browse files Browse the repository at this point in the history
* Update Go version to 1.22.5

* Update some images to Rocky Linux 8

---------

Co-authored-by: asf-ci-trafficcontrol <[email protected]>
Co-authored-by: Zach Hoffman <[email protected]>

(cherry picked from commit 0b21b43)
  • Loading branch information
asf-ci-trafficcontrol authored and rimashah25 committed Sep 27, 2024
1 parent cccf8d9 commit 4c5b89f
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ATS_VERSION=9.2.4
GO_VERSION=1.23.1
GO_VERSION=1.22.5
POSTGRES_VERSION=13.16
2 changes: 1 addition & 1 deletion GO_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.23.1
1.22.5
4 changes: 2 additions & 2 deletions cache-config/testing/docker/yumserver/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
# Based on CentOS 6.6
############################################################

FROM centos:7
FROM rockylinux:8
MAINTAINER [email protected]

RUN yum install -y httpd createrepo yum-utils
RUN dnf install -y httpd createrepo yum-utils

RUN mkdir -p /var/www/html/traffic-control/7/x86_64/Packages
RUN sed -i -e 's/#ServerName www.example.com:80/ServerName www.example.com:80/g' /etc/httpd/conf/httpd.conf
Expand Down
13 changes: 7 additions & 6 deletions experimental/traffic-portal/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 9 additions & 5 deletions tc-health-client/testing/docker/db_init/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,19 @@
# Based on CentOS 7.2
############################################################

FROM centos/systemd
FROM rockylinux:8

RUN yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
RUN dnf install -y \
epel-release \
libicu \
"https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-$(rpm --eval %_arch)/pgdg-redhat-repo-latest.noarch.rpm" && \
dnf -y --repo=pgdg13 install postgresql13 && \
dnf -y remove pgdg-redhat-repo

RUN yum -y install \
postgresql13 \
RUN dnf -y install \
nmap-ncat \
cpanminus && \
yum clean all
dnf clean all

ENV POSTGRES_HOME $POSTGRES_HOME
ENV PGPASSWORD $PGPASSWORD
Expand Down
34 changes: 28 additions & 6 deletions traffic_ops/app/db/trafficvault/test/Dockerfile-db-admin
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,39 @@
# Dockerfile to build Traffic Ops DB admin test environment
############################################################

FROM centos:7
FROM rockylinux:8
ARG POSTGRES_VERSION
ENV POSTGRES_VERSION=$POSTGRES_VERSION

# NOTE: temporary workaround for removal of golang packages from CentOS 7 base repo
RUN yum install -y \
epel-release \
centos-release-scl-rh \
https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm \
git && \
yum -y install golang
epel-release \
libicu \
"https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-$(rpm --eval %_arch)/pgdg-redhat-repo-latest.noarch.rpm" \
git && \
dnf -y --repo=pgdg13 install postgresql13 && \
dnf -y remove pgdg-redhat-repo && \
dnf -y --enablerepo=powertools install \
cpanminus \
expat-devel \
golang \
libcap \
libcurl-devel \
libidn-devel \
libpcap-devel \
mkisofs \
openssl-devel \
perl-core \
perl-Crypt-ScryptKDF \
perl-DBD-Pg \
perl-DBI \
perl-Digest-SHA1 \
perl-JSON \
perl-libwww-perl \
perl-TermReadKey \
perl-Test-CPAN-Meta \
perl-WWW-Curl \
python3

# Override TRAFFIC_OPS_RPM arg to use a different one using --build-arg TRAFFIC_OPS_RPM=... Can be local file or http://...
ARG TRAFFIC_OPS_RPM=traffic_ops.rpm
Expand Down
19 changes: 10 additions & 9 deletions traffic_ops_db/test/docker/Dockerfile-db-admin
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,18 @@
# Dockerfile to build Traffic Ops DB admin test environment
############################################################

FROM centos:7
FROM rockylinux:8
ARG POSTGRES_VERSION
ENV POSTGRES_VERSION=$POSTGRES_VERSION

RUN yum install -y \
epel-release \
centos-release-scl-rh \
https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm \
RUN dnf install -y \
epel-release \
libicu \
"https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-$(rpm --eval %_arch)/pgdg-redhat-repo-latest.noarch.rpm" \
git && \
yum -y install \
dnf -y --repo=pgdg13 install postgresql13 && \
dnf -y remove pgdg-redhat-repo && \
dnf -y --enablerepo=powertools install \
cpanminus \
expat-devel \
libcap \
Expand All @@ -47,9 +49,8 @@ RUN yum install -y \
perl-TermReadKey \
perl-Test-CPAN-Meta \
perl-WWW-Curl \
postgresql13 \
postgresql13-devel &&\
yum clean all
python3 && \
dnf clean all

# Override TRAFFIC_OPS_RPM arg to use a different one using --build-arg TRAFFIC_OPS_RPM=... Can be local file or http://...
ARG TRAFFIC_OPS_RPM=traffic_ops.rpm
Expand Down

0 comments on commit 4c5b89f

Please sign in to comment.