You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by dg...@apache.org on 2018/12/05 19:14:30 UTC
[trafficcontrol] branch 3.0.x updated: use golang package from
centos vault temporarily (#3089)
This is an automated email from the ASF dual-hosted git repository.
dgelinas pushed a commit to branch 3.0.x
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
The following commit(s) were added to refs/heads/3.0.x by this push:
new 8008c58 use golang package from centos vault temporarily (#3089)
8008c58 is described below
commit 8008c582226137eeef7882b1b6878197f062e6af
Author: Dan Kirkwood <da...@gmail.com>
AuthorDate: Wed Dec 5 12:14:25 2018 -0700
use golang package from centos vault temporarily (#3089)
(cherry picked from commit 42586f5822be59ab0e51aebd94a5f7b5f2b5b0ce)
---
infrastructure/cdn-in-a-box/traffic_ops/Dockerfile | 26 ++++++++++++----------
.../docker/build/Dockerfile-traffic_monitor | 5 +++--
infrastructure/docker/build/Dockerfile-traffic_ops | 4 +++-
.../docker/build/Dockerfile-traffic_stats | 5 +++--
4 files changed, 23 insertions(+), 17 deletions(-)
diff --git a/infrastructure/cdn-in-a-box/traffic_ops/Dockerfile b/infrastructure/cdn-in-a-box/traffic_ops/Dockerfile
index 471fcc3..f304948 100644
--- a/infrastructure/cdn-in-a-box/traffic_ops/Dockerfile
+++ b/infrastructure/cdn-in-a-box/traffic_ops/Dockerfile
@@ -26,18 +26,20 @@ FROM centos:7
RUN yum install -y epel-release && \
yum install -y https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-redhat96-9.6-3.noarch.rpm && \
yum install -y \
- cpanminus \
- bind-utils \
- net-tools \
- gettext \
- nmap-ncat \
- openssl \
- perl \
- perl-Crypt-ScryptKDF \
- perl-Test-CPAN-Meta \
- perl-JSON-PP \
- git \
- golang
+ cpanminus \
+ bind-utils \
+ net-tools \
+ gettext \
+ nmap-ncat \
+ openssl \
+ perl \
+ perl-Crypt-ScryptKDF \
+ perl-Test-CPAN-Meta \
+ perl-JSON-PP \
+ git && \
+ yum-config-manager --add-repo 'http://vault.centos.org/7.5.1804/os/x86_64/' && \
+ yum -y install --enablerepo=vault* golang-1.9.4 && \
+ yum -y clean all
RUN cpanm Carton
RUN yum install -y perl-DBIx-Connector
diff --git a/infrastructure/docker/build/Dockerfile-traffic_monitor b/infrastructure/docker/build/Dockerfile-traffic_monitor
index 383f215..d636391 100644
--- a/infrastructure/docker/build/Dockerfile-traffic_monitor
+++ b/infrastructure/docker/build/Dockerfile-traffic_monitor
@@ -30,8 +30,9 @@ RUN yum -y install \
yum -y clean all
### traffic_monitor specific requirements
-RUN yum -y install \
- golang-1.9.4 && \
+# NOTE: temporary workaround for removal of golang packages from CentOS 7 base repo
+RUN yum-config-manager --add-repo 'http://vault.centos.org/7.5.1804/os/x86_64/' && \
+ yum -y install --enablerepo=vault* golang-1.9.4 && \
yum -y clean all
###
diff --git a/infrastructure/docker/build/Dockerfile-traffic_ops b/infrastructure/docker/build/Dockerfile-traffic_ops
index 0e24d55..ac5cb72 100644
--- a/infrastructure/docker/build/Dockerfile-traffic_ops
+++ b/infrastructure/docker/build/Dockerfile-traffic_ops
@@ -30,15 +30,17 @@ RUN yum -y install \
yum -y clean all
### traffic_ops specific requirements
+# NOTE: temporary workaround for removal of golang packages from CentOS 7 base repo
RUN yum -y install \
expat-devel \
gcc \
- golang-1.9.4 \
libcurl-devel \
make \
openssl-devel \
perl-ExtUtils-MakeMaker \
tar && \
+ yum-config-manager --add-repo 'http://vault.centos.org/7.5.1804/os/x86_64/' && \
+ yum -y install --enablerepo=vault* golang-1.9.4 && \
yum -y clean all
ADD infrastructure/docker/build/clean_build.sh /
diff --git a/infrastructure/docker/build/Dockerfile-traffic_stats b/infrastructure/docker/build/Dockerfile-traffic_stats
index 89676b4..fe4e586 100644
--- a/infrastructure/docker/build/Dockerfile-traffic_stats
+++ b/infrastructure/docker/build/Dockerfile-traffic_stats
@@ -30,8 +30,9 @@ RUN yum -y install \
yum -y clean all
### traffic_stats specific requirements
-RUN yum -y install \
- golang-1.9.4 && \
+# NOTE: temporary workaround for removal of golang packages from CentOS 7 base repo
+RUN yum-config-manager --add-repo 'http://vault.centos.org/7.5.1804/os/x86_64/' && \
+ yum -y install --enablerepo=vault* golang-1.9.4 && \
yum -y clean all
###