Skip to content

Commit

Permalink
test: Prefetch deps and store in container image
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Sul <[email protected]>
  • Loading branch information
mike-sul committed Sep 10, 2024
1 parent 5bc1e0f commit c289d0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion test/compose/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
FROM golang:1.22-alpine
RUN apk add make curl docker docker-compose git
COPY registry/certs/registry.crt /etc/ssl/certs/
COPY test/compose/registry/certs/registry.crt /etc/ssl/certs/
RUN cat /etc/ssl/certs/registry.crt >> /etc/ssl/certs/ca-certificates.crt
WORKDIR /build
COPY go.mod go.sum ./
RUN go mod download
2 changes: 1 addition & 1 deletion test/compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:

composectl:
build:
context: ${CPS_DIR}
context: ${SRC_DIR}
dockerfile: ${CPS_DIR}/Dockerfile
volumes:
- ${SRC_DIR}:${SRC_DIR}
Expand Down

0 comments on commit c289d0d

Please sign in to comment.