Skip to content

Commit 2f76f46

Browse files
Removed API Connectivity Manager (#130)
* Added API Connectivity Manager 1.5.0 support * Ownership fix * Startup script fix * NGINX App Protect WAF updates * Tested with NGINX Instance Manager 2.9.1 * Added docker-compose support * Tested with NGINX Instance Manager 2.10.0 and Security Monitoring 1.4.0 * Tested with NGINX Instance Manager 2.10.0 and API Connectivity Manager 1.5.0 * Tested with API Connectivity Manager 1.6.0 * Tested with API Connectivity Manager 1.6.0 * README updated * Added support for NGINX Instance Manager 2.10.1 and App Delivery Manager 4.0.0 * Fixed NGINX App Protect detection bug for NGINX Instance Manager 2.10.0+ * Fixed agent syslog receiver bug * README updated * Tested with NGINX Instance Manager 2.11.0 and Security Monitoring 1.5.0 * Tested with NGINX Instance Manager 2.11.0 * Tested with NGINX API Connectivity Manager 1.7.0 * Tested with NGINX Instance Manager 2.12.0 and Security Monitoring 1.6.0 * Tested with API Connectivity Manager 1.8.0 * Tested with API Connectivity Manager 1.8.0 * Tested with NGINX Instance Manager 2.12.0 * Dockerfile updated * Support for NGINX Instance Manager 2.13 * Tested with NGINX Instance Manager 2.13 * Tested with NIM 2.14.0 and SM 1.7.0 * Tested with NIM 2.14.0 and SM 1.7.0 * Tested with NGINX Instance Manager 2.14.0 * Tested with NGINX Instance Manager 2.14.0 * Tested with NGINX App Protect compiler v4.583.0 * Start script updated * Advanced metrics support added * Advanced metrics support added * Removed Application Delivery Manger, tested with NGINX Instance Manager 2.15.0 * Removed devportal, tested with NGINX Instance Manager 2.15.0 * Removed API Connectivity Manager --------- Signed-off-by: 65397 <[email protected]>
1 parent 4db2057 commit 2f76f46

File tree

5 files changed

+7
-51
lines changed

5 files changed

+7
-51
lines changed

nginx-nms-docker/Dockerfile.automated

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
FROM ubuntu:20.04
22

33
ARG BUILD_WITH_SECONDSIGHT=false
4-
ARG ADD_ACM
54
ARG ADD_SM
65
ARG ADD_PUM
76

@@ -24,9 +23,6 @@ RUN --mount=type=secret,id=nginx-crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode=0644
2423
&& apt-get update \
2524
&& apt-get install -y nms-instance-manager \
2625
&& curl -s http://hg.nginx.org/nginx.org/raw-file/tip/xml/en/security_advisories.xml > /usr/share/nms/cve.xml \
27-
# Optional API Connectivity Manager
28-
&& if [ "${ADD_ACM}" = "true" ] ; then \
29-
apt-get -y install nms-api-connectivity-manager; fi \
3026
# Optional Security Monitoring
3127
&& if [ "${ADD_SM}" = "true" ] ; then \
3228
apt-get -y install nms-sm; fi \

nginx-nms-docker/Dockerfile.manual

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ FROM ubuntu:20.04
22

33
ARG NIM_DEBFILE
44
ARG BUILD_WITH_SECONDSIGHT=false
5-
ARG ACM_IMAGE=nim-files/.placeholder
65
ARG SM_IMAGE=nim-files/.placeholder
76
ARG PUM_IMAGE=nim-files/.placeholder
87

@@ -14,7 +13,6 @@ RUN apt-get update && \
1413

1514
# NGINX Instance Manager 2.4.0+
1615
COPY $NIM_DEBFILE /deployment/setup/nim.deb
17-
COPY $ACM_IMAGE /deployment/setup/acm.deb
1816
COPY $SM_IMAGE /deployment/setup/sm.deb
1917
COPY $PUM_IMAGE /deployment/setup/pum.deb
2018

@@ -28,10 +26,6 @@ COPY $NIM_DEBFILE /deployment/setup/nim.deb
2826
RUN apt-get -y install /deployment/setup/nim.deb && \
2927
curl -s http://hg.nginx.org/nginx.org/raw-file/tip/xml/en/security_advisories.xml > /usr/share/nms/cve.xml
3028

31-
# Optional API Connectivity Manager
32-
RUN if [ "$ACM_IMAGE" != "nim-files/.placeholder" ] ; then \
33-
apt-get -y install /deployment/setup/acm.deb; fi
34-
3529
# Optional Security Monitoring
3630
RUN if [ "$SM_IMAGE" != "nim-files/.placeholder" ] ; then \
3731
apt-get -y install /deployment/setup/sm.deb; fi

nginx-nms-docker/README.md

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ This repository helps deploying NGINX Management Suite on containerized clusters
77
Docker image creation is supported for:
88

99
- [NGINX Instance Manager](https://docs.nginx.com/nginx-instance-manager/) 2.4.0+
10-
- [NGINX API Connectivity Manager](https://docs.nginx.com/nginx-management-suite/acm/) 1.0.0+
1110
- [Security Monitoring](https://docs.nginx.com/nginx-management-suite/security/) 1.0.0+
1211
- [NGINX App Protect WAF compiler](https://docs.nginx.com/nginx-management-suite/nim/how-to/app-protect/setup-waf-config-management)
1312

@@ -24,7 +23,6 @@ A bash script to quickly install NGINX Management Suite through the official Hel
2423
This repository has been tested with:
2524

2625
- NGINX Instance Manager 2.4.0, 2.5.0, 2.5.1, 2.6.0, 2.7.0, 2.8.0, 2.9.0, 2.9.1, 2.10.0, 2.10.1, 2.11.0, 2.12.0, 2.13.0, 2.13.1, 2.14.0, 2.14.1, 2.15.0
27-
- NGINX API Connectivity Manager 1.0.0, 1.1.0, 1.1.1, 1.2.0, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.5.0, 1.6.0, 1.7.0, 1.8.0, 1.9.0, 1.9.1
2826
- Security Monitoring 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 1.6.0, 1.7.0, 1.7.1
2927
- NGINX App Protect WAF compiler v3.1088.2, v4.100.1, v4.2.0, v4.218.0, v4.279.0, v4.402.0, v4.457.0, v4.583.0
3028

@@ -36,7 +34,7 @@ This repository has been tested with:
3634
- Private registry to push the target Docker image
3735
- Kubernetes cluster with dynamic storage provisioner enabled: see the [example](contrib/pvc-provisioner)
3836
- NGINX Ingress Controller with `VirtualServer` CRD support (see https://docs.nginx.com/nginx-ingress-controller/configuration/virtualserver-and-virtualserverroute-resources/)
39-
- Access to F5/NGINX downloads to fetch NGINX Instance Manager 2.4.0+ installation .deb file and API Connectivity Manager 1.0+ installation .deb file (when running in manual mode)
37+
- Access to F5/NGINX downloads to fetch NGINX Instance Manager 2.4.0+ installation .deb file (when running in manual mode)
4038
- Valid NGINX license certificate and key to fetch NGINX Management Suite packages (when running in automated mode)
4139
- Linux host running Docker to build the image
4240

@@ -63,7 +61,6 @@ NGINX Management Suite Docker image builder
6361
Manual build:
6462
6563
-n [filename] - NGINX Instance Manager .deb package filename
66-
-a [filename] - API Connectivity Manager .deb package filename - optional
6764
-w [filename] - Security Monitoring .deb package filename - optional
6865
-p [filename] - WAF policy compiler .deb package filename - optional
6966
@@ -72,22 +69,20 @@ NGINX Management Suite Docker image builder
7269
-i - Automated build - requires cert & key
7370
-C [file.crt] - Certificate file to pull packages from the official NGINX repository
7471
-K [file.key] - Key file to pull packages from the official NGINX repository
75-
-A - Enable API Connectivity Manager - optional
7672
-W - Enable Security Monitoring - optional
7773
-P [version] - Enable WAF policy compiler, version can be any [v3.1088.2|v4.100.1|v4.2.0|v4.218.0|v4.279.0|v4.402.0|v4.457.0|v4.583.0] - optional
7874
7975
=== Examples:
8076
8177
Manual build:
8278
./scripts/buildNIM.sh -n nim-files/nms-instance-manager_2.6.0-698150575~focal_amd64.deb \
83-
-a nim-files/nms-api-connectivity-manager_1.2.0.668430332~focal_amd64.deb \
8479
-w nim-files/nms-sm_1.0.0-697204659~focal_amd64.deb \
8580
-p nim-files/nms-nap-compiler-v4.2.0.deb \
8681
-t my.registry.tld/nginx-nms:2.6.0
8782
8883
Automated build:
8984
./scripts/buildNIM.sh -i -C nginx-repo.crt -K nginx-repo.key
90-
-A -W -P v4.583.0 -t my.registry.tld/nginx-nms:latest
85+
-W -P v4.583.0 -t my.registry.tld/nginx-nms:latest
9186
```
9287

9388
### Automated build
@@ -102,24 +97,12 @@ NGINX Instance Manager
10297
./scripts/buildNIM.sh -t YOUR_DOCKER_REGISTRY/nginx-nim2:automated -i -C certs/nginx-repo.crt -K certs/nginx-repo.key
10398
```
10499

105-
NGINX Instance Manager and API Connectivity Manager
106-
107-
```
108-
./scripts/buildNIM.sh -t YOUR_DOCKER_REGISTRY/nginx-nim2:automated -i -C certs/nginx-repo.crt -K certs/nginx-repo.key -A
109-
```
110-
111100
NGINX Instance Manager, Security Monitoring and WAF Policy Compiler
112101

113102
```
114103
./scripts/buildNIM.sh -t YOUR_DOCKER_REGISTRY/nginx-nim2:automated -i -C certs/nginx-repo.crt -K certs/nginx-repo.key -W -P v4.457.0
115104
```
116105

117-
NGINX Instance Manager, API Connectivity Manager, WAF Policy Compiler and Security Monitoring
118-
119-
```
120-
./scripts/buildNIM.sh -t YOUR_DOCKER_REGISTRY/nginx-nim2:automated -i -C certs/nginx-repo.crt -K certs/nginx-repo.key -A -W -P v4.457.0
121-
```
122-
123106
### Manual build
124107

125108
1. Clone this repo
@@ -131,15 +114,14 @@ NGINX Instance Manager, API Connectivity Manager, WAF Policy Compiler and Securi
131114

132115
```
133116
./scripts/buildNIM.sh -n nim-files/nms-instance-manager_2.6.0-698150575~focal_amd64.deb \
134-
-a nim-files/nms-api-connectivity-manager_1.2.0.668430332~focal_amd64.deb \
135117
-w nim-files/nms-sm_1.0.0-697204659~focal_amd64.deb \
136118
-p nim-files/nms-nap-compiler-v4.2.0_4.2.0-1~focal_amd64.deb \
137119
-t my.registry.tld/nginx-nms:2.6.0
138120
```
139121

140122
### Configuring and running
141123

142-
1. Edit `manifests/1.nginx-nim.yaml` and specify the correct image by modifying the "image" line and configure NGINX Instance Manager username, password and the base64-encoded license file for automated license activation. In order to use API Connectivity Manager an ACM license is required
124+
1. Edit `manifests/1.nginx-nim.yaml` and specify the correct image by modifying the "image" line and configure NGINX Instance Manager username, password and the base64-encoded license file for automated license activation.
143125

144126
```
145127
image: your.registry.tld/nginx-nim2:tag

nginx-nms-docker/container/startNIM.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,6 @@ su - nms -c 'function repeat { while [ 1 ] ; do "$@" ; sleep 1 ; done; };repeat
125125
/bin/bash -c '`which chown` nms:nms /etc/nms/certs/services/ca.crt'
126126
su - nms -c 'function repeat { while [ 1 ] ; do "$@" ; sleep 1 ; done; };repeat /usr/bin/nms-integrations &' -s /bin/bash
127127

128-
# Start API Connectivity Manager - from /lib/systemd/system/nms-acm.service
129-
if [ -f /usr/bin/nms-acm ]
130-
then
131-
sleep 5
132-
su - nms -c 'function repeat { while [ 1 ] ; do "$@" ; sleep 1 ; done; };repeat /usr/bin/nms-acm server &' -s /bin/bash
133-
fi
134-
135128
sleep 5
136129

137130
# Start Security Monitoring

nginx-nms-docker/scripts/buildNIM.sh

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,29 @@ $0 [options]\n\n
1010
-s\t\t\t- Enable Second Sight (https://github.com/F5Networks/SecondSight/) - optional\n\n
1111
Manual build:\n\n
1212
-n [filename]\t\t- NGINX Instance Manager .deb package filename\n
13-
-a [filename]\t\t- API Connectivity Manager .deb package filename - optional\n
1413
-w [filename]\t\t- Security Monitoring .deb package filename - optional\n
1514
-p [filename]\t\t- WAF policy compiler .deb package filename - optional\n\n
1615
Automated build:\n\n
1716
-i\t\t\t- Automated build - requires cert & key\n
1817
-C [file.crt]\t\t- Certificate file to pull packages from the official NGINX repository\n
1918
-K [file.key]\t\t- Key file to pull packages from the official NGINX repository\n
20-
-A\t\t\t- Enable API Connectivity Manager - optional\n
2119
-W\t\t\t- Enable Security Monitoring - optional\n
2220
-P [version]\t\t- Enable WAF policy compiler, version can be any [v3.1088.2|v4.100.1|v4.2.0|v4.218.0|v4.279.0|v4.402.0|v4.457.0|v4.583.0] - optional\n\n
2321
=== Examples:\n\n
2422
Manual build:\n
2523
\t$0 -n nim-files/nms-instance-manager_2.6.0-698150575~focal_amd64.deb \\\\\n
26-
\t\t-a nim-files/nms-api-connectivity-manager_1.2.0.668430332~focal_amd64.deb \\\\\n
2724
\t\t-w nim-files/nms-sm_1.0.0-697204659~focal_amd64.deb \\\\\n
2825
\t\t-p nim-files/nms-nap-compiler-v4.2.0.deb \\\\\n
2926
\t\t-t my.registry.tld/nginx-nms:2.6.0\n\n
3027
Automated build:\n
3128
\t$0 -i -C nginx-repo.crt -K nginx-repo.key\n
32-
\t\t-A -W -P v4.583.0 -t my.registry.tld/nginx-nms:latest\n
29+
\t\t-W -P v4.583.0 -t my.registry.tld/nginx-nms:latest\n
3330
"
3431

3532
# Defaults
3633
COUNTER=false
3734

38-
while getopts 'hn:a:w:p:t:siC:K:AWP:' OPTION
35+
while getopts 'hn:w:p:t:siC:K:AWP:' OPTION
3936
do
4037
case "$OPTION" in
4138
h)
@@ -45,9 +42,6 @@ do
4542
n)
4643
DEBFILE=$OPTARG
4744
;;
48-
a)
49-
ACM_IMAGE=$OPTARG
50-
;;
5145
w)
5246
SM_IMAGE=$OPTARG
5347
;;
@@ -69,9 +63,6 @@ do
6963
K)
7064
NGINX_KEY=$OPTARG
7165
;;
72-
A)
73-
ADD_ACM=true
74-
;;
7566
W)
7667
ADD_SM=true
7768
;;
@@ -110,10 +101,10 @@ echo "==> Building NGINX Management Suite docker image"
110101
if [ -z "${AUTOMATED_INSTALL}" ]
111102
then
112103
docker build --no-cache -f Dockerfile.manual --build-arg NIM_DEBFILE=$DEBFILE --build-arg BUILD_WITH_SECONDSIGHT=$COUNTER \
113-
--build-arg ACM_IMAGE=$ACM_IMAGE --build-arg SM_IMAGE=$SM_IMAGE --build-arg PUM_IMAGE=$PUM_IMAGE -t $IMGNAME .
104+
--build-arg SM_IMAGE=$SM_IMAGE --build-arg PUM_IMAGE=$PUM_IMAGE -t $IMGNAME .
114105
else
115106
DOCKER_BUILDKIT=1 docker build --no-cache -f Dockerfile.automated --secret id=nginx-key,src=$NGINX_KEY --secret id=nginx-crt,src=$NGINX_CERT \
116-
--build-arg ADD_ACM=$ADD_ACM --build-arg ADD_SM=$ADD_SM --build-arg ADD_PUM=$ADD_PUM \
107+
--build-arg ADD_SM=$ADD_SM --build-arg ADD_PUM=$ADD_PUM \
117108
--build-arg BUILD_WITH_SECONDSIGHT=$COUNTER \
118109
-t $IMGNAME .
119110
fi

0 commit comments

Comments
 (0)