Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Remove old images update docs #777

Closed
wants to merge 114 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
114 commits
Select commit Hold shift + click to select a range
06a8659
adding new images into the integration tests
oliveromahony Jul 24, 2024
56402db
double @
oliveromahony Jul 24, 2024
9c9497d
separate the compose fileS
oliveromahony Jul 24, 2024
87fba64
invalid docker-compose
oliveromahony Jul 24, 2024
9ac20d3
changes
oliveromahony Jul 24, 2024
21a05fa
wip: fix tests
oliveromahony Jul 24, 2024
bfd8179
update from
oliveromahony Jul 24, 2024
9bb9630
check if file path is the issue
aphralG Jul 29, 2024
2d1c079
check if file path is the issue
aphralG Jul 29, 2024
de74ad6
try this
aphralG Jul 29, 2024
f23f233
try this
aphralG Jul 29, 2024
66b6735
try this part 2
aphralG Jul 30, 2024
ebc72a2
try this part 2
aphralG Jul 30, 2024
0dc04f3
try this part 3
aphralG Jul 30, 2024
435a05c
Update docker-compose-apk.yml
oliveromahony Jul 30, 2024
ee3a2c1
check directory
aphralG Jul 30, 2024
1fb6fd7
check directory
aphralG Jul 30, 2024
047a545
check directory
aphralG Jul 30, 2024
acfd521
check directory
aphralG Jul 30, 2024
14d08e5
check directory
aphralG Jul 30, 2024
61b2f85
check directory
aphralG Jul 30, 2024
dcecd5f
check directory
aphralG Jul 30, 2024
32923ac
check directory
aphralG Jul 30, 2024
472c69f
check directory
aphralG Jul 30, 2024
d06c221
try again
aphralG Jul 30, 2024
bea48f2
remove install test for now
aphralG Jul 30, 2024
4689fba
remove install test for now
aphralG Jul 30, 2024
4f55068
remove install test for now
aphralG Jul 30, 2024
083c39f
just try one test at a time
aphralG Jul 30, 2024
3657115
try this
aphralG Jul 31, 2024
6b3a18f
try this
aphralG Jul 31, 2024
4101143
try this
aphralG Jul 31, 2024
62e746e
try this
aphralG Jul 31, 2024
360045d
try this
aphralG Jul 31, 2024
7b48c18
try this
aphralG Jul 31, 2024
aaff887
try api test instead
aphralG Jul 31, 2024
f804d94
try api test instead
aphralG Jul 31, 2024
31e3c01
add agent config
aphralG Jul 31, 2024
3bcf402
add features test
aphralG Jul 31, 2024
7191d2b
add features test
aphralG Jul 31, 2024
fe372c6
add grpc tests back in
aphralG Jul 31, 2024
7909b87
add grpc tests back in
aphralG Jul 31, 2024
8288b98
add back in test
aphralG Jul 31, 2024
553cb62
add back in test
aphralG Jul 31, 2024
8ba5a7d
add back in test
aphralG Jul 31, 2024
f8cfc74
check logs
aphralG Jul 31, 2024
c481f78
check logs
aphralG Jul 31, 2024
8890292
check logs
aphralG Jul 31, 2024
fff5ebd
try removing link
aphralG Jul 31, 2024
9f2b708
try removing link
aphralG Jul 31, 2024
d5ef6a3
try removing link
aphralG Jul 31, 2024
c0e07cb
add back some tests
aphralG Jul 31, 2024
1064e88
make deps
aphralG Jul 31, 2024
5b6a717
add install test back
aphralG Jul 31, 2024
dd09639
add install test back
aphralG Jul 31, 2024
ed24390
add install test back
aphralG Jul 31, 2024
5897b19
add install test back
aphralG Jul 31, 2024
9996064
remove install test to check others
aphralG Aug 1, 2024
c9c6a56
try pass path
aphralG Aug 1, 2024
13ab5f8
try pass path
aphralG Aug 1, 2024
290eeca
try this
aphralG Aug 1, 2024
d350b79
try this
aphralG Aug 1, 2024
b29769b
try this
aphralG Aug 1, 2024
a9f2d0c
try this
aphralG Aug 1, 2024
a893e10
try this
aphralG Aug 1, 2024
7f61669
try this
aphralG Aug 1, 2024
7b225b0
try changing tag
aphralG Aug 1, 2024
86b0dab
try new format
aphralG Aug 1, 2024
0cc8b59
change wait
aphralG Aug 1, 2024
e11181d
start clean up
aphralG Aug 1, 2024
3896846
start clean up
aphralG Aug 1, 2024
871b7de
start clean up
aphralG Aug 1, 2024
f20232b
start clean up
aphralG Aug 1, 2024
1aea089
start clean up
aphralG Aug 1, 2024
60b1963
start clean up
aphralG Aug 1, 2024
51d9ad2
start clean up
aphralG Aug 1, 2024
81f7fc2
start clean up
aphralG Aug 1, 2024
d4f6dc0
try reload nginx
aphralG Aug 2, 2024
94543fd
try reload nginx
aphralG Aug 2, 2024
4b28f97
try reload nginx
aphralG Aug 2, 2024
b85120c
try reload nginx
aphralG Aug 2, 2024
4bb60ce
try reload nginx
aphralG Aug 2, 2024
5265e51
try reload nginx
aphralG Aug 2, 2024
1398883
try reload nginx
aphralG Aug 2, 2024
78b0d39
try this
aphralG Aug 2, 2024
17ff810
try loggin config
aphralG Aug 2, 2024
6221c16
try copy config
aphralG Aug 2, 2024
f192750
check config
aphralG Aug 6, 2024
f7f8987
check nginx is running
aphralG Aug 6, 2024
b646975
check nginx is running
aphralG Aug 6, 2024
dbd68f0
install
aphralG Aug 6, 2024
7545cb7
install
aphralG Aug 6, 2024
eaf5e96
nginx oss
aphralG Aug 6, 2024
994a87b
fix tag
aphralG Aug 6, 2024
99ae9fe
fix
aphralG Aug 6, 2024
56f6821
try plus image
aphralG Aug 6, 2024
f186449
fix naming
aphralG Aug 6, 2024
41a4dad
fix naming
aphralG Aug 6, 2024
9eb47a1
clean up
aphralG Aug 6, 2024
da8cef0
try alpine
aphralG Aug 6, 2024
a33cb13
try alpine
aphralG Aug 6, 2024
dda7b08
rename job
aphralG Aug 6, 2024
2ef06b3
fix naming
aphralG Aug 6, 2024
d6203ff
try new tag
aphralG Aug 7, 2024
432acbe
try new tag
aphralG Aug 7, 2024
3df74ab
tag fix
aphralG Aug 7, 2024
397ee98
fix wait log
aphralG Aug 7, 2024
1455b80
remove duplicate docker compose
aphralG Aug 7, 2024
6d52780
fix test
aphralG Aug 7, 2024
a60ac4a
pr feedback
aphralG Aug 8, 2024
8437617
try remove duplicate dockerfiles
aphralG Aug 8, 2024
53a29b6
try remove duplicate dockerfiles
aphralG Aug 8, 2024
f40f6e5
move testing images to test
aphralG Aug 8, 2024
8f44d2b
update docs
aphralG Aug 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
126 changes: 92 additions & 34 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ jobs:
with:
version: "${{ env.GOLANGCI_LINT_VERSION }}"
args: -c ./scripts/.golangci.yml
skip-pkg-cache: true
skip-cache: true
- name: Lint SDK Code
uses: golangci/golangci-lint-action@82d40c283aeb1f2b6595839195e95c2d6a49081b # v5.0.0
with:
version: "${{ env.GOLANGCI_LINT_VERSION }}"
working-directory: sdk
args: -c ../scripts/.golangci.yml
skip-pkg-cache: true
skip-cache: true

unit-test:
name: Unit Tests
Expand Down Expand Up @@ -111,43 +111,95 @@ jobs:
retention-days: 1

integration-tests:
name: Integration Tests
name: Integration Tests
needs: build-unsigned-snapshot
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
container:
- image: "rockylinux"
version: "8"
- image: "rockylinux"
version: "9"
- image: "almalinux"
version: "8"
- image: "almalinux"
version: "9"
- image: "amazonlinux"
version: "2"
- image: "amazonlinux"
version: "2023"
- image: "oraclelinux"
version: "8"
- image: "oraclelinux"
version: "9"
- image: "ubuntu"
version: "24.04"
- image: "alpine"
version: "3.17"
- image: "alpine"
version: "3.18"
- image: "alpine"
version: "3.19"
- image: "alpine"
version: "3.20"
- image: "debian"
version: "bullseye-slim"
- image: "debian"
version: "bookworm-slim"
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
fetch-depth: 0
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: 'go.mod'
- name: Download Packages
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
with:
name: nginx-agent-unsigned-snapshots
path: build
- name: Run Integration Tests
run: |
go install github.com/goreleaser/nfpm/v2/cmd/nfpm@${{ env.NFPM_VERSION }}
OS_RELEASE="${{ matrix.container.image }}" OS_VERSION="${{ matrix.container.version }}" \
make integration-test
- name: Container Output Logs
if: failure()
run: |
docker ps -a
dockerid=$(docker ps -a --format "{{.ID}}")
docker logs "$dockerid"

- name: Archive integration test logs
if: success() || failure()
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: integration-test-logs-${{ matrix.container.image }}-${{ matrix.container.version }}
path: /tmp/integration-test-logs/
retention-days: 3

official-image-integration-tests:
name: Integration Tests - Official Images
needs: build-unsigned-snapshot
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
container:
- image: "rockylinux"
version: "8"
- image: "rockylinux"
version: "9"
- image: "almalinux"
version: "8"
- image: "almalinux"
version: "9"
- image: "amazonlinux"
version: "2"
- image: "amazonlinux"
version: "2023"
- image: "oraclelinux"
version: "8"
- image: "oraclelinux"
version: "9"
- image: "ubuntu"
version: "24.04"
- image: "alpine"
version: "3.17"
- image: "bookworm"
version: "stable"
release: "debian"
- image: "bookworm"
version: "mainline"
release: "debian"
- image: "alpine"
version: "3.18"
version: "stable"
release: "alpine"
- image: "alpine"
version: "3.19"
- image: "alpine"
version: "3.20"
- image: "debian"
version: "bullseye-slim"
- image: "debian"
version: "bookworm-slim"
version: "mainline"
release: "alpine"
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
Expand All @@ -160,11 +212,17 @@ jobs:
with:
name: nginx-agent-unsigned-snapshots
path: build
- name: Login to Docker Registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
with:
registry: ${{ secrets.REGISTRY_URL }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Run Integration Tests
run: |
go install github.com/goreleaser/nfpm/v2/cmd/nfpm@${{ env.NFPM_VERSION }}
OS_RELEASE="${{ matrix.container.image }}" OS_VERSION="${{ matrix.container.version }}" \
make integration-test
CONTAINER_NGINX_IMAGE_REGISTRY="${{ secrets.REGISTRY_URL }}" TAG="${{ matrix.container.version }}-${{ matrix.container.image }}" OS_RELEASE="${{ matrix.container.release }}"\
make official-image-integration-test
- name: Container Output Logs
if: failure()
run: |
Expand All @@ -176,7 +234,7 @@ jobs:
if: success() || failure()
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: integration-test-logs-${{ matrix.container.image }}-${{ matrix.container.version }}
name: integration-test-logs-${{ matrix.container.image }}-${{ matrix.container.version }}-new
path: /tmp/integration-test-logs/
retention-days: 3

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release-branch.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: Release Branch
env:
NFPM_VERSION: 'v2.35.3'

on:
workflow_dispatch:
Expand Down Expand Up @@ -123,7 +125,7 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y gpgv1 monkeysphere
go install github.com/goreleaser/nfpm/v2/cmd/nfpm@v2.35.3
go install github.com/goreleaser/nfpm/v2/cmd/nfpm@${{ env.NFPM_VERSION }}
- name: Tag release
run: |
git config --global user.name 'github-actions'
Expand Down
51 changes: 19 additions & 32 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ OS_RELEASE ?= ubuntu
OS_VERSION ?= 24.04
BASE_IMAGE = "${CONTAINER_REGISTRY}/${OS_RELEASE}:${OS_VERSION}"
IMAGE_TAG = "agent_${OS_RELEASE}_${OS_VERSION}"
AGENT_IMAGE_PATH = "/nginx/agent"

VERSION_WITH_V := v${VERSION}
LDFLAGS = "-w -X main.version=${VERSION_WITH_V} -X main.commit=${COMMIT} -X main.date=${DATE}"
Expand Down Expand Up @@ -211,16 +212,27 @@ performance-test: ## Run performance tests

integration-test:
PACKAGES_REPO=${OSS_PACKAGES_REPO} INSTALL_FROM_REPO=${INSTALL_FROM_REPO} PACKAGE_NAME=${PACKAGE_NAME} BASE_IMAGE=${BASE_IMAGE} \
OS_VERSION=${OS_VERSION} OS_RELEASE=${OS_RELEASE} DOCKER_COMPOSE_FILE="docker-compose-${CONTAINER_OS_TYPE}.yml" \
OS_VERSION=${OS_VERSION} OS_RELEASE=${OS_RELEASE} CONTAINER_OS_TYPE=${CONTAINER_OS_TYPE} DOCKER_COMPOSE_FILE="docker-compose.yml" \
${GOTEST} -v ./test/integration/install
PACKAGES_REPO=${OSS_PACKAGES_REPO} INSTALL_FROM_REPO=${INSTALL_FROM_REPO} PACKAGE_NAME=${PACKAGE_NAME} BASE_IMAGE=${BASE_IMAGE} \
OS_VERSION=${OS_VERSION} OS_RELEASE=${OS_RELEASE} DOCKER_COMPOSE_FILE="docker-compose-${CONTAINER_OS_TYPE}.yml" \
OS_VERSION=${OS_VERSION} OS_RELEASE=${OS_RELEASE} CONTAINER_OS_TYPE=${CONTAINER_OS_TYPE} DOCKER_COMPOSE_FILE="docker-compose.yml" \
${GOTEST} -v ./test/integration/api
PACKAGES_REPO=${OSS_PACKAGES_REPO} INSTALL_FROM_REPO=${INSTALL_FROM_REPO} PACKAGE_NAME=${PACKAGE_NAME} BASE_IMAGE=${BASE_IMAGE} \
OS_VERSION=${OS_VERSION} OS_RELEASE=${OS_RELEASE} DOCKER_COMPOSE_FILE="docker-compose-${CONTAINER_OS_TYPE}.yml" \
OS_VERSION=${OS_VERSION} OS_RELEASE=${OS_RELEASE} CONTAINER_OS_TYPE=${CONTAINER_OS_TYPE} DOCKER_COMPOSE_FILE="docker-compose.yml" \
${GOTEST} -v ./test/integration/features
PACKAGES_REPO=${OSS_PACKAGES_REPO} INSTALL_FROM_REPO=${INSTALL_FROM_REPO} PACKAGE_NAME=${PACKAGE_NAME} BASE_IMAGE=${BASE_IMAGE} \
OS_VERSION=${OS_VERSION} OS_RELEASE=${OS_RELEASE} DOCKER_COMPOSE_FILE="docker-compose-${CONTAINER_OS_TYPE}.yml" \
OS_VERSION=${OS_VERSION} OS_RELEASE=${OS_RELEASE} CONTAINER_OS_TYPE=${CONTAINER_OS_TYPE} DOCKER_COMPOSE_FILE="docker-compose.yml" \
${GOTEST} -v ./test/integration/grpc

official-image-integration-test:
PACKAGE_NAME=${PACKAGE_NAME} CONTAINER_NGINX_IMAGE_REGISTRY=${CONTAINER_NGINX_IMAGE_REGISTRY} ARCH=${OSARCH} OS_VERSION=${OS_VERSION} \
OS_RELEASE=${OS_RELEASE} TAG=${TAG} CONTAINER_OS_TYPE=${CONTAINER_OS_TYPE} IMAGE_PATH=${AGENT_IMAGE_PATH} DOCKER_COMPOSE_FILE="docker-compose-official-image.yml" \
${GOTEST} -v ./test/integration/api
PACKAGE_NAME=${PACKAGE_NAME} CONTAINER_NGINX_IMAGE_REGISTRY=${CONTAINER_NGINX_IMAGE_REGISTRY} ARCH=${OSARCH} OS_VERSION=${OS_VERSION} \
OS_RELEASE=${OS_RELEASE} TAG=${TAG} CONTAINER_OS_TYPE=${CONTAINER_OS_TYPE} IMAGE_PATH=${AGENT_IMAGE_PATH} DOCKER_COMPOSE_FILE="docker-compose-official-image.yml" \
${GOTEST} -v ./test/integration/features
PACKAGE_NAME=${PACKAGE_NAME} CONTAINER_NGINX_IMAGE_REGISTRY=${CONTAINER_NGINX_IMAGE_REGISTRY} ARCH=${OSARCH} OS_VERSION=${OS_VERSION} \
OS_RELEASE=${OS_RELEASE} TAG=${TAG} CONTAINER_OS_TYPE=${CONTAINER_OS_TYPE} IMAGE_PATH=${AGENT_IMAGE_PATH} DOCKER_COMPOSE_FILE="docker-compose-official-image.yml" \
${GOTEST} -v ./test/integration/grpc

test-bench: ## Run benchmark tests
Expand Down Expand Up @@ -271,55 +283,30 @@ certs: ## Generate TLS certificates
image: ## Build agent container image for NGINX Plus, need nginx-repo.crt and nginx-repo.key in build directory
@echo Building image with $(CONTAINER_CLITOOL); \
$(CONTAINER_BUILDENV) $(CONTAINER_CLITOOL) build -t ${IMAGE_TAG} . \
--no-cache -f ./scripts/docker/nginx-plus/${OS_RELEASE}/Dockerfile \
--no-cache -f ./test/docker/nginx-plus/${OS_RELEASE}/Dockerfile \
--secret id=nginx-crt,src=${CERTS_DIR}/nginx-repo.crt \
--secret id=nginx-key,src=${CERTS_DIR}/nginx-repo.key \
--build-arg BASE_IMAGE=${BASE_IMAGE} \
--build-arg PACKAGES_REPO=${PLUS_PACKAGES_REPO} \
--build-arg OS_RELEASE=${OS_RELEASE} \
--build-arg OS_VERSION=${OS_VERSION} \
--build-arg CONTAINER_REGISTRY=${CONTAINER_REGISTRY}

oss-image: ## Build agent container image for NGINX OSS
@echo Building image with $(CONTAINER_CLITOOL); \
$(CONTAINER_BUILDENV) $(CONTAINER_CLITOOL) build -t ${IMAGE_TAG} . \
--no-cache -f ./scripts/docker/nginx-oss/${CONTAINER_OS_TYPE}/Dockerfile \
--no-cache -f ./test/docker/nginx-oss/${CONTAINER_OS_TYPE}/Dockerfile \
--target install-agent-local \
--build-arg PACKAGE_NAME=${PACKAGE_NAME} \
--build-arg PACKAGES_REPO=${OSS_PACKAGES_REPO} \
--build-arg BASE_IMAGE=${BASE_IMAGE} \
--build-arg OS_RELEASE=${OS_RELEASE} \
--build-arg OS_VERSION=${OS_VERSION} \
--build-arg ENTRY_POINT=./scripts/docker/entrypoint.sh
--build-arg ENTRY_POINT=./test/docker/entrypoint.sh

run-container: ## Run container from specified IMAGE_TAG
@echo Running ${IMAGE_TAG} with $(CONTAINER_CLITOOL); \
$(CONTAINER_CLITOOL) run -p 127.0.0.1:8081:8081/tcp --mount type=bind,source=${PWD}/nginx-agent.conf,target=/etc/nginx-agent/nginx-agent.conf ${IMAGE_TAG}

official-plus-image: ## Build official NGINX Plus with NGINX Agent container image, need nginx-repo.crt and nginx-repo.key in build directory
@echo Building image nginx-plus-with-nginx-agent with $(CONTAINER_CLITOOL); \
cd scripts/docker/official/nginx-plus-with-nginx-agent/alpine/ \
&& $(CONTAINER_BUILDENV) $(CONTAINER_CLITOOL) build -t nginx-plus-with-nginx-agent . \
--no-cache -f ./Dockerfile \
--secret id=nginx-crt,src=../../../../../${CERTS_DIR}/nginx-repo.crt \
--secret id=nginx-key,src=../../../../../${CERTS_DIR}/nginx-repo.key

official-oss-image: ## Build official NGINX OSS with NGINX Agent container image
@echo Building image nginx-oss-with-nginx-agent with $(CONTAINER_CLITOOL); \
cd scripts/docker/official/nginx-oss-with-nginx-agent/alpine/ \
&& $(CONTAINER_BUILDENV) $(CONTAINER_CLITOOL) build -t nginx-oss-with-nginx-agent . \
--build-arg NGINX_AGENT_VERSION=${VERSION} \
--no-cache -f ./Dockerfile.mainline

official-oss-stable-image: ## Build official NGINX OSS with NGINX Agent container stable image
@echo Building image nginx-oss-with-nginx-agent with $(CONTAINER_CLITOOL); \
cd scripts/docker/official/nginx-oss-with-nginx-agent/alpine/ \
&& $(CONTAINER_BUILDENV) $(CONTAINER_CLITOOL) build -t nginx-oss-with-nginx-agent . \
--build-arg NGINX_AGENT_VERSION=${VERSION} \
--no-cache -f ./Dockerfile.stable

official-oss-mainline-image: official-oss-image ## Build official NGINX OSS with NGINX Agent container mainline image

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Grafana Example Dashboard Targets #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Expand Down
4 changes: 3 additions & 1 deletion Makefile.containers
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,6 @@ CONTAINER_REGISTRY = registry.access.redhat.com
BASE_IMAGE = $(CONTAINER_REGISTRY)/ubi$(OS_VERSION)/ubi:latest
endif

CONTAINER_VARS = CONTAINER_CLITOOL CONTAINER_COMPOSE CONTAINER_BUILDENV CONTAINER_OS_TYPE CONTAINER_REGISTRY
CONTAINER_NGINX_IMAGE_REGISTRY ?= registry.nginx.com

CONTAINER_VARS = CONTAINER_CLITOOL CONTAINER_COMPOSE CONTAINER_BUILDENV CONTAINER_OS_TYPE CONTAINER_REGISTRY CONTAINER_NGINX_IMAGE_REGISTRY
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,17 +162,17 @@ If you need to make changes to the default configuration you can update the file

For more detail on logrotate configuration see [Logrotate Configuration Options](https://linux.die.net/man/8/logrotate)

## Building Docker Image
To build an image that contains the latest NGINX Agent, the latest mainline version of NGINX OSS on latest Alpine run the following command:
## NGINX Agent Docker Image
To pull an image that contains the latest NGINX Agent, the latest mainline version of NGINX OSS on latest Alpine run the following command:

```make
make official-oss-image
docker pull registry.nginx.com/nginx/agent:mainline
```

To build an image that contains the latest NGINX Agent, the latest stable version of NGINX OSS on latest Alpine run the following command:
To pull an image that contains the latest NGINX Agent, the latest stable version of NGINX OSS on latest Alpine run the following command:

```make
make official-oss-stable-image
docker pull registry.nginx.com/nginx/agent:stable
```

For more information on how to run NGINX Agent containers and how build an image that uses NGINX Plus instead of NGINX OSS see [Docker Images](https://docs.nginx.com/nginx-agent/installation-upgrade/container-environments/docker-images/)
Expand Down
4 changes: 2 additions & 2 deletions examples/grafana-metrics/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ services:
restart: unless-stopped
build:
context: ../../
dockerfile: ./scripts/docker/nginx-oss/deb/Dockerfile
dockerfile: ./test/docker/nginx-oss/deb/Dockerfile
target: install-agent-local
args:
PACKAGE_NAME: ${PACKAGE_NAME}
BASE_IMAGE: ${BASE_IMAGE}
ENTRY_POINT: "./scripts/docker/entrypoint.sh"
ENTRY_POINT: "./test/docker/entrypoint.sh"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./nginx-agent.conf:/etc/nginx-agent/nginx-agent.conf
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading