Skip to content

Commit

Permalink
fix: add new user in container for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Pikeev committed Dec 1, 2024
1 parent e55f6c0 commit c945a22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions build/tests/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,7 @@ COPY go.sum .
# Install module dependencies.
RUN go mod download

RUN adduser --disabled-password --gecos '' testuser
USER testuser

ENTRYPOINT [ "build/tests/docker-entrypoint.sh" ]
2 changes: 1 addition & 1 deletion build/tests/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ set -xe
gotenberg --api-enable-basic-auth --chromium-auto-start &
sleep 10
export CGO_ENABLED=1
go test -race -cover -covermode=atomic github.com/runatal/gotenberg-go-client/v8
go test -v -race -cover -covermode=atomic ./...
sleep 10 # allows Gotenberg to remove generated files.

0 comments on commit c945a22

Please sign in to comment.