Skip to content
This repository was archived by the owner on Apr 14, 2024. It is now read-only.

Commit e2e579a

Browse files
author
Julien Neuhart
committed
updating tests Dockerfile
1 parent 0eebbf6 commit e2e579a

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
GOLANG_VERSION=1.13
2-
GOTENBERG_VERSION=6.0.1
2+
GOTENBERG_VERSION=6
3+
GOTENBERG_LOG_LEVEL=DEBUG
34
VERSION=snapshot
45
GOLANGCI_LINT_VERSION=1.20.1
56

@@ -15,5 +16,5 @@ lint:
1516

1617
# run all tests.
1718
tests:
18-
docker build --build-arg GOLANG_VERSION=$(GOLANG_VERSION) --build-arg GOTENBERG_VERSION=$(GOTENBERG_VERSION) -t thecodingmachine/gotenberg-go-client:tests -f build/tests/Dockerfile .
19+
docker build --build-arg GOLANG_VERSION=$(GOLANG_VERSION) --build-arg GOTENBERG_VERSION=$(GOTENBERG_VERSION) --build-arg GOTENBERG_LOG_LEVEL=$(GOTENBERG_LOG_LEVEL) -t thecodingmachine/gotenberg-go-client:tests -f build/tests/Dockerfile .
1920
docker run --rm -it -v "$(PWD):/tests" thecodingmachine/gotenberg-go-client:tests

build/tests/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ USER root
1414
# | Libraries used in the build process of this image.
1515
# |
1616

17-
RUN apt-get install -y git gcc
17+
RUN apt-get update &&\
18+
apt-get install -y git gcc
1819

1920
# |--------------------------------------------------------------------------
2021
# | Golang
@@ -38,6 +39,10 @@ ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
3839
# | Last instructions of this build.
3940
# |
4041

42+
ARG GOTENBERG_LOG_LEVEL
43+
44+
ENV LOG_LEVEL=${GOTENBERG_LOG_LEVEL}
45+
4146
# Define our workding outside of $GOPATH (we're using go modules).
4247
WORKDIR /tests
4348

0 commit comments

Comments
 (0)