Skip to content

Commit

Permalink
modify dockerfile builder image so it can run tests
Browse files Browse the repository at this point in the history
Add missing files that prevented the `go test` from passing.
This enables local testing, including testing that uses internet and
runs a production-like scenarios.
The tests can be run with:
```
docker run --cap-add=SYS_ADMIN  -it builder-image go test -v ./... \
-tags="privileged containerized"
```
  • Loading branch information
mkisielewski-arista authored and aajith-arista committed Oct 30, 2024
1 parent b5328a8 commit 9629b58
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ COPY ./testutil/ testutil/
COPY ./manifest/ manifest/
COPY ./dnfconfig/ dnfconfig/
COPY ./srcconfig/ srcconfig/
COPY ./configfiles/ configfiles/
COPY ./pki /pki
RUN go mod download && go build -o /usr/bin/eext

FROM base as deploy
Expand Down

0 comments on commit 9629b58

Please sign in to comment.