Skip to content

Commit

Permalink
Fix docker issues (#398)
Browse files Browse the repository at this point in the history
* fixing docker references in makefile
  • Loading branch information
oliveromahony authored Jul 13, 2023
1 parent 07b072c commit 3f17c2c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ DATE = $(shell date +%F_%H-%M-%S)
# | suse | sles12sp5, sle15 | |
# | freebsd | | Not supported |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
OS_RELEASE ?= debian
OS_VERSION ?= bullseye-slim
OS_RELEASE ?= ubuntu
OS_VERSION ?= 22.04
BASE_IMAGE = "${CONTAINER_REGISTRY}/${OS_RELEASE}:${OS_VERSION}"
IMAGE_TAG = "agent_${OS_RELEASE}_${OS_VERSION}"

Expand Down Expand Up @@ -218,8 +218,8 @@ test-bench: ## Run benchmark tests

benchmark-image: ## Build benchmark test container image for NGINX Plus, need nginx-repo.crt and nginx-repo.key in build directory
$(CONTAINER_BUILDENV) $(CONTAINER_CLITOOL) build --no-cache -t nginx-agent-benchmark:1.0.0 \
--secret id=nginx-crt,src=build/nginx-repo.crt \
--secret id=nginx-key,src=build/nginx-repo.key \
--secret id=nginx-crt,src=${CERTS_DIR}/nginx-repo.crt \
--secret id=nginx-key,src=${CERTS_DIR}/nginx-repo.key \
-f test/docker/Dockerfile .

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Expand Down
4 changes: 2 additions & 2 deletions scripts/docker/nginx-plus/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ RUN --mount=type=secret,id=nginx-crt,dst=/nginx-repo.crt \
&& printf "deb https://$PACKAGES_REPO/plus/ubuntu/ `lsb_release -cs` nginx-plus\n" > /etc/apt/sources.list.d/nginx-plus.list \
&& printf "deb https://$PACKAGES_REPO/nginx-agent/ubuntu/ `lsb_release -cs` nginx-plus\n" > /etc/apt/sources.list.d/nginx-agent.list \
&& mkdir -p /etc/ssl/nginx \
&& cp /nginx-repo.crt /etc/ssl/nginx/nginx-repo.crt \
&& cp /nginx-repo.key /etc/ssl/nginx/nginx-repo.key \
&& cat /nginx-repo.crt >> /etc/ssl/nginx/nginx-repo.crt \
&& cat /nginx-repo.key >> /etc/ssl/nginx/nginx-repo.key \
&& apt-get update \
&& apt-get install $nginxPackages -y \
&& rm /etc/ssl/nginx/nginx-repo.crt /etc/ssl/nginx/nginx-repo.key
Expand Down

0 comments on commit 3f17c2c

Please sign in to comment.