Skip to content
This repository was archived by the owner on May 24, 2023. It is now read-only.

Commit f0d5b87

Browse files
authored
Release 0.1.1 (#72)
1 parent 186221a commit f0d5b87

File tree

8 files changed

+38
-12
lines changed

8 files changed

+38
-12
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,5 @@ jobs:
135135
cache-to: type=gha,mode=max
136136
tags: ${{ steps.meta.outputs.tags }}
137137
labels: ${{ steps.meta.outputs.labels }}
138+
build-args: |
139+
CONFIG_FILE=configs/example_global.yaml

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
# 0.1-1
1+
# 0.1.1 (Aug 29, 2022)
2+
3+
An automatically generated list of changes can be found on GitHub at: [0.1.1 Release](https://github.com/nginxinc/nginx-ns1-gslb/releases/tag/v0.1.1)
4+
5+
# 0.1-1
26

37
Initial Release

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
VERSION = 0.1-1
2+
VERSION = 0.1.1
33
TAG = $(VERSION)
44
PREFIX = nginx/nginx-ns1-gslb
55
TARGET ?= local

README.md

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,39 @@ This will run an Agent that fetches stats from one or more NGINX Plus instances,
2929

3030
### Docker
3131

32+
You can either build the Docker image yourself, or use the [official Docker image](https://github.com/nginxinc/nginx-ns1-gslb/pkgs/container/nginx-ns1-gslb).
33+
34+
#### Build the Docker image
35+
3236
1. Build the image specifying the config file:
33-
`make CONFIG_FILE=<path/to/your_file.yaml> container`
37+
38+
`make CONFIG_FILE=<path/to/your_file.yaml> container`
3439

3540
**Note**: By default the binary is built locally, if you need to build it inside a container append `TARGET=container` to the command above.
3641

3742
1. Run the container:
38-
`docker run nginx/nginx-ns1-gslb:<version>`
3943

40-
**Note:** consider the following while running the agent:
44+
`docker run nginx/nginx-ns1-gslb:<version>`
45+
46+
#### Pull the Docker image
47+
48+
1. Alternatively, you can pull the image from GitHub Container Registry:
49+
50+
`docker pull ghcr.io/nginxinc/nginx-ns1-gslb:0.1.1`
51+
52+
1. Run the container:
53+
54+
`docker run -v <path/to/your_file.yaml>:/etc/nginx-ns1-gslb/config.yaml ghcr.io/nginxinc/nginx-ns1-gslb:0.1.1`
55+
56+
**Note**: By default the Docker image contains an example config, so you need to mount you configuration file like shown in the command above `-v <path/to/your_file.yaml>:/etc/nginx-ns1-gslb/config.yaml`.
4157

42-
* All NGINX Plus instances must be reachable and running when the agent is run for the first time.
43-
* While running, if at least 1 Instance of NGINX Plus is working, the agent will use the data from that one.
44-
* While running, if all NGINX Plus instances are off, the agent will send `{up: false}` to NS1 API for all the configured services.
58+
> **Note**
59+
>
60+
> Consider the following while running the agent:
61+
>
62+
> * All NGINX Plus instances must be reachable and running when the agent is run for the first time.
63+
> * While running, if at least 1 Instance of NGINX Plus is working, the agent will use the data from that one.
64+
> * While running, if all NGINX Plus instances are off, the agent will send `{up: false}` to NS1 API for all the configured services.
4565
4666
## Tests
4767
Run `make test` to run the tests.

build/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM alpine:3.16 as base
22
ARG CONFIG_FILE
33

4-
RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*
4+
RUN apk add --no-cache ca-certificates
55

66
COPY ${CONFIG_FILE} /etc/nginx-ns1-gslb/config.yaml
77

configs/example_global.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ services:
2121
method: "global"
2222
feeds:
2323
- feed_name: "<NS1-datafeed-1>"
24-
- feed_name: "<NS1-datafeed-2>"
24+
- feed_name: "<NS1-datafeed-2>"

configs/example_upstreams.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ services:
2323
sampling_type: "count"
2424
feeds:
2525
- name: "<my_backend>"
26-
feed_name: "<NS1-datafeed-1>"
26+
feed_name: "<NS1-datafeed-1>"

configs/example_zones.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ services:
2121
method: "status_zones"
2222
feeds:
2323
- name: "zone01.com"
24-
feed_name: "<NS1-datafeed-1>"
24+
feed_name: "<NS1-datafeed-1>"

0 commit comments

Comments
 (0)