Update of README.md for aai-common Dockerfiles
[aai/aai-common.git] / Dockerfiles / aai-common / README.md
1 # AAI Common Docker README
2
3 ### Building the image
4
5 Run the following command to build AAI common images at internal network
6
7 ```bash
8     export NEW_VERSION=<NEW_VERSION>
9     export BASE_IMAGE=<alpine | ubuntu>
10     sudo docker build -t \
11         nexus3.onap.org:10003/onap/aai-common-${BASE_IMAGE}:${NEW_VERSION} \
12         -f Dockerfile.${BASE_IMAGE} .
13 ```
14
15 Replace the **NEW\_VERSION** with the new docker image version for aai-common.
16 Set **BASE\_IMAGE** to **alpine** or **ubuntu** to build aai-common-alpine or
17 aai-common-ubuntu image.
18
19 NOTE: In order to push images into Nexus3, you have to be logged into Nexus3
20 with appropriate credentials first.
21
22 NOTE2: Both alpine and ubuntu based aai-common images are built automatically
23 by jenkins jobs and they are available at official ONAP docker registry
24 (currently nexus3).