Skip to content

Commit

Permalink
Do not ignore libraries necessary for the newer version of the TO client
Browse files Browse the repository at this point in the history
in the TM integration test dockerfiles
  • Loading branch information
zrhoffman committed Aug 30, 2023
1 parent c2857ee commit 772b761
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/actions/tm-integration-tests/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# specific language governing permissions and limitations
# under the License.

set -e
set -o errexit -o nounset -o pipefail

function wait_for_endpoint() {
try=0
Expand Down
13 changes: 1 addition & 12 deletions traffic_monitor/tests/_integration/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,7 @@ RUN dnf install -y initscripts epel-release jq git
COPY traffic_monitor/tests/_integration/ /tm/

RUN mkdir -p ${GOPATH}/src/github.com/apache/trafficcontrol
COPY go.mod \
go.sum \
${GOPATH}/src/github.com/apache/trafficcontrol/
# config.go is included so that `go mod vendor` includes github.com/kelseyhightower/envconfig
# since dependencies within _integration are not considered
COPY cache-config/testing/ort-tests/config/config.go ${GOPATH}/src/github.com/apache/trafficcontrol/cache-config/testing/ort-tests/config/config.go
COPY lib ${GOPATH}/src/github.com/apache/trafficcontrol/lib
COPY vendor ${GOPATH}/src/github.com/apache/trafficcontrol/vendor
COPY traffic_monitor/ ${GOPATH}/src/github.com/apache/trafficcontrol/traffic_monitor/
COPY traffic_ops/toclientlib/ ${GOPATH}/src/github.com/apache/trafficcontrol/traffic_ops/toclientlib/
COPY traffic_ops/v4-client/ ${GOPATH}/src/github.com/apache/trafficcontrol/traffic_ops/v4-client/
COPY traffic_ops/v5-client/ ${GOPATH}/src/github.com/apache/trafficcontrol/traffic_ops/v5-client/
COPY . ${GOPATH}/src/github.com/apache/trafficcontrol

WORKDIR ${GOPATH}/src/github.com/apache/trafficcontrol/traffic_monitor/tests/_integration/
RUN go mod vendor && \
Expand Down
4 changes: 4 additions & 0 deletions traffic_monitor/tests/_integration/Dockerfile.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,16 @@
# specific language governing permissions and limitations
# under the License.
*
!/cache-config/t3cutil/
# config.go is included so that `go mod vendor` includes github.com/kelseyhightower/envconfig
# since dependencies within _integration are not considered
!/cache-config/testing/ort-tests/config/config.go
!/go.mod
!/go.sum
!/GO_VERSION
!/lib/
!/traffic_monitor
!/traffic_ops/toclientlib
!/traffic_ops/traffic_ops_golang/test
!/traffic_ops/v*-client
!/vendor/
8 changes: 1 addition & 7 deletions traffic_monitor/tools/testto/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,7 @@ RUN dnf -y install golang git
ENV GOPATH=/go

RUN mkdir -p ${GOPATH}/src/github.com/apache/trafficcontrol
COPY go.mod \
go.sum \
${GOPATH}/src/github.com/apache/trafficcontrol/
COPY lib ${GOPATH}/src/github.com/apache/trafficcontrol/lib
COPY vendor ${GOPATH}/src/github.com/apache/trafficcontrol/vendor

COPY traffic_monitor/tools/testto ${GOPATH}/src/github.com/apache/trafficcontrol/traffic_monitor/tools/testto
COPY . ${GOPATH}/src/github.com/apache/trafficcontrol/

WORKDIR ${GOPATH}/src/github.com/apache/trafficcontrol/traffic_monitor/tools/testto
RUN go mod vendor && \
Expand Down
3 changes: 3 additions & 0 deletions traffic_monitor/tools/testto/Dockerfile.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@
!/go.mod
!/go.sum
!/lib/
!/cache-config/t3cutil/
!/traffic_ops/toclientlib
!/traffic_ops/v*-client
!/traffic_monitor/tools/testto
!/vendor/

0 comments on commit 772b761

Please sign in to comment.