summaryrefslogtreecommitdiffstats
path: root/Dockerfiles
diff options
context:
space:
mode:
authorMartin Klozik <martin.klozik@tieto.com>2019-08-01 09:52:11 +0200
committerMartin Klozik <martin.klozik@tieto.com>2019-08-01 09:56:05 +0200
commit0cbb058c9257db8c26e5ed09ceccadabb011dc88 (patch)
treef288398675cc740cedab863d2a87b4ab0178f55d /Dockerfiles
parentc19785ed19245a586dc8f271713ae59248fd8f81 (diff)
Update of README.md for aai-common Dockerfiles
README.md was updated to reflect recent changes in aai-common image build process and its naming and tagging. Change-Id: I37c3c7d6c46a21437a27cd8a9afe08c1c3aa408e Issue-ID: INT-1024 Signed-off-by: Martin Klozik <martin.klozik@tieto.com>
Diffstat (limited to 'Dockerfiles')
-rw-r--r--Dockerfiles/aai-common/README.md20
1 files changed, 15 insertions, 5 deletions
diff --git a/Dockerfiles/aai-common/README.md b/Dockerfiles/aai-common/README.md
index 0726e26b..82131247 100644
--- a/Dockerfiles/aai-common/README.md
+++ b/Dockerfiles/aai-common/README.md
@@ -2,13 +2,23 @@
### Building the image
-Run the following command if building the image in internal network
+Run the following command to build AAI common images at internal network
```bash
export NEW_VERSION=<NEW_VERSION>
- docker build \
- -t aaionap/aai-common:${NEW_VERSION}${BASE_TAG:-"-alpine"} -f <Dockerfile.alpine | Dockerfile.ubuntu> .
+ export BASE_IMAGE=<alpine | ubuntu>
+ sudo docker build -t \
+ nexus3.onap.org:10003/onap/aai-common-${BASE_IMAGE}:${NEW_VERSION} \
+ -f Dockerfile.${BASE_IMAGE} .
```
-Replace the NEW\_VERSION with the new docker image version for aai-common
-If different based images are required replace BASE\_TAG accordingly to the base image used.
+Replace the **NEW\_VERSION** with the new docker image version for aai-common.
+Set **BASE\_IMAGE** to **alpine** or **ubuntu** to build aai-common-alpine or
+aai-common-ubuntu image.
+
+NOTE: In order to push images into Nexus3, you have to be logged into Nexus3
+with appropriate credentials first.
+
+NOTE2: Both alpine and ubuntu based aai-common images are built automatically
+by jenkins jobs and they are available at official ONAP docker registry
+(currently nexus3).