Skip to content

Commit 74d6e67

Browse files
authored
CIAB: set GOPROXY to use go module mirror for CentOS 7 (#6534)
On CentOS 7, the available version of git and/or go is too old and has an issue when running `go get`: git fetch-pack: expected shallow list By setting GOPROXY, git isn't required for `go get` and solves this issue. See golang/go#38373 for more details.
1 parent 85f1073 commit 74d6e67

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
66
## [unreleased]
77
### Fixed
88
- Update traffic_portal dependencies to mitigate `npm audit` issues.
9+
- Fixed a cdn-in-a-box build issue when using `RHEL_VERSION=7`
910

1011
### Removed
1112
- Remove traffic_portal dependencies to mitigate `npm audit` issues, specifically `grunt-concurrent`, `grunt-contrib-concat`, `grunt-contrib-cssmin`, `grunt-contrib-jsmin`, `grunt-contrib-uglify`, `grunt-contrib-htmlmin`, `grunt-newer`, and `grunt-wiredep`

infrastructure/cdn-in-a-box/cache/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ CMD /run.sh
117117

118118
FROM common-traffic-server-dependencies AS get-delve
119119
RUN dnf -y install golang && \
120-
go get -u github.com/go-delve/delve/cmd/dlv
120+
GOPROXY='https://proxy.golang.org' go get -u github.com/go-delve/delve/cmd/dlv
121121

122122
FROM common-cache-config-layers AS mid
123123
ENV CACHE_TYPE=mid

infrastructure/cdn-in-a-box/traffic_monitor/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ HEALTHCHECK --interval=10s --timeout=1s \
6666

6767
FROM trafficmonitor-dependencies as get-delve
6868

69-
RUN dnf -y install golang git && \
70-
go get -u github.com/go-delve/delve/cmd/dlv
69+
RUN dnf -y install golang && \
70+
GOPROXY='https://proxy.golang.org' go get -u github.com/go-delve/delve/cmd/dlv
7171

7272
FROM trafficmonitor as trafficmonitor-debug
7373
COPY --from=get-delve /root/go/bin /usr/bin

infrastructure/cdn-in-a-box/traffic_ops/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ HEALTHCHECK --interval=10s --timeout=1s \
114114

115115
FROM trafficops-dependencies as get-delve
116116

117-
RUN dnf -y install git golang && \
118-
go get -u github.com/go-delve/delve/cmd/dlv
117+
RUN dnf -y install golang && \
118+
GOPROXY='https://proxy.golang.org' go get -u github.com/go-delve/delve/cmd/dlv
119119

120120
FROM trafficops AS trafficops-debug
121121
COPY --from=get-delve /root/go/bin /usr/bin

infrastructure/cdn-in-a-box/traffic_stats/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ ENTRYPOINT /run.sh
5858

5959
FROM trafficstats-dependencies AS get-delve
6060

61-
RUN dnf -y install golang git && \
62-
go get -u github.com/go-delve/delve/cmd/dlv
61+
RUN dnf -y install golang && \
62+
GOPROXY='https://proxy.golang.org' go get -u github.com/go-delve/delve/cmd/dlv
6363

6464
FROM trafficstats AS trafficstats-debug
6565
COPY --from=get-delve /root/go/bin /usr/bin

0 commit comments

Comments
 (0)