policy-nexus
For example:
-docker build -t onap/policy/policy-nexus policy-nexus
+docker build -t onap/policy-nexus policy-nexus
In addition, this source repository contains a docker-compose.yml file and associated configuration files (in the 'config' directory) that can be used to start up the ONAP Policy Engine docker containers
expose:
- 3306
nexus:
- image: onap/policy/policy-nexus
+ image: onap/policy-nexus
container_name: nexus
hostname: nexus
pap:
- image: onap/policy/policy-pe
+ image: onap/policy-pe
environment:
- PRELOAD_POLICIES=${PRELOAD_POLICIES}
container_name: pap
volumes:
- ./config/pe:/tmp/policy-install/config
pdp:
- image: onap/policy/policy-pe
+ image: onap/policy-pe
container_name: pdp
depends_on:
- pap
volumes:
- ./config/pe:/tmp/policy-install/config
brmsgw:
- image: onap/policy/policy-pe
+ image: onap/policy-pe
container_name: brmsgw
depends_on:
- pap
volumes:
- ./config/pe:/tmp/policy-install/config
drools:
- image: onap/policy/policy-drools
+ image: onap/policy-drools
container_name: drools
depends_on:
- mariadb
ports:
- "3306:3306"
nexus:
- image: onap/policy/policy-nexus
+ image: onap/policy-nexus
container_name: nexus
hostname: nexus
pap:
- image: onap/policy/policy-pe
+ image: onap/policy-pe
environment:
- PRELOAD_POLICIES=${PRELOAD_POLICIES}
container_name: pap
volumes:
- ./config/pe:/tmp/policy-install/config
pdp:
- image: onap/policy/policy-pe
+ image: onap/policy-pe
container_name: pdp
depends_on:
- pap
volumes:
- ./config/pe:/tmp/policy-install/config
brmsgw:
- image: onap/policy/policy-pe
+ image: onap/policy-pe
container_name: brmsgw
depends_on:
- pap
volumes:
- ./config/pe:/tmp/policy-install/config
drools:
- image: onap/policy/policy-drools
+ image: onap/policy-drools
container_name: drools
depends_on:
- mariadb
#
# This is the local latest tagged image. The Dockerfile's need this to build images
#
-TAGS="--tag onap/policy/${IMAGE}:latest"
+TAGS="--tag onap/${IMAGE}:latest"
#
# This is the nexus repo prepended for latest tagged image.
#
-TAGS="${TAGS} --tag ${DOCKER_REPOSITORY}/onap/policy/${IMAGE}:latest"
+TAGS="${TAGS} --tag ${DOCKER_REPOSITORY}/onap/${IMAGE}:latest"
#
# This has the nexus repo prepended and only major/minor version with latest
#
-TAGS="${TAGS} --tag ${DOCKER_REPOSITORY}/onap/policy/${IMAGE}:${MVN_MAJMIN_VERSION}-latest"
+TAGS="${TAGS} --tag ${DOCKER_REPOSITORY}/onap/${IMAGE}:${MVN_MAJMIN_VERSION}-latest"
#
# This has the nexus repo prepended and major/minor/patch version with timestamp
#
-TAGS="${TAGS} --tag ${DOCKER_REPOSITORY}/onap/policy/${IMAGE}:${MVN_VERSION}-STAGING-${TIMESTAMP}"
+TAGS="${TAGS} --tag ${DOCKER_REPOSITORY}/onap/${IMAGE}:${MVN_VERSION}-STAGING-${TIMESTAMP}"
echo $TAGS
echo "Pushing $IMAGE"
-docker push ${DOCKER_REPOSITORY}/onap/policy/$IMAGE:latest
+docker push ${DOCKER_REPOSITORY}/onap/$IMAGE:latest
if [ $? -ne 0 ]
then
fi
-docker push ${DOCKER_REPOSITORY}/onap/policy/$IMAGE:${MVN_MAJMIN_VERSION}-latest
+docker push ${DOCKER_REPOSITORY}/onap/$IMAGE:${MVN_MAJMIN_VERSION}-latest
if [ $? -ne 0 ]
then
exit 1
fi
-docker push ${DOCKER_REPOSITORY}/onap/policy/$IMAGE:${MVN_VERSION}-STAGING-${TIMESTAMP}
+docker push ${DOCKER_REPOSITORY}/onap/$IMAGE:${MVN_VERSION}-STAGING-${TIMESTAMP}
if [ $? -ne 0 ]
then
#
# This is the local latest tagged image. The Dockerfile's need this to build images
#
-TAGS="--tag onap/policy/${IMAGE}:latest"
+TAGS="--tag onap/${IMAGE}:latest"
#
# This has the nexus repo prepended and only major/minor version with latest
#
-TAGS="${TAGS} --tag ${DOCKER_REPOSITORY}/onap/policy/${IMAGE}:${MVN_MAJMIN_VERSION}-latest"
+TAGS="${TAGS} --tag ${DOCKER_REPOSITORY}/onap/${IMAGE}:${MVN_MAJMIN_VERSION}-latest"
#
# This has the nexus repo prepended and major/minor/patch version with timestamp
#
-TAGS="${TAGS} --tag ${DOCKER_REPOSITORY}/onap/policy/${IMAGE}:${MVN_VERSION}-${TIMESTAMP}"
+TAGS="${TAGS} --tag ${DOCKER_REPOSITORY}/onap/${IMAGE}:${MVN_VERSION}-${TIMESTAMP}"
echo $TAGS
# Push image
#
echo "Pushing $IMAGE"
-docker push ${DOCKER_REPOSITORY}/onap/policy/$IMAGE:${MVN_MAJMIN_VERSION}-latest
+docker push ${DOCKER_REPOSITORY}/onap/$IMAGE:${MVN_MAJMIN_VERSION}-latest
if [ $? -ne 0 ]
then
exit 1
fi
-docker push ${DOCKER_REPOSITORY}/onap/policy/$IMAGE:${MVN_VERSION}-${TIMESTAMP}
+docker push ${DOCKER_REPOSITORY}/onap/$IMAGE:${MVN_VERSION}-${TIMESTAMP}
if [ $? -ne 0 ]
then
#
# This is the local latest tagged image. The Dockerfile's need this to build images
#
-TAGS="--tag onap/policy/${IMAGE}:latest"
+TAGS="--tag onap/${IMAGE}:latest"
#
# This has the nexus repo prepended and only major/minor version with latest
#
-TAGS="${TAGS} --tag ${DOCKER_REPOSITORY}/onap/policy/${IMAGE}:${MVN_MAJMIN_VERSION}-latest"
+TAGS="${TAGS} --tag ${DOCKER_REPOSITORY}/onap/${IMAGE}:${MVN_MAJMIN_VERSION}-latest"
#
# This has the nexus repo prepended and major/minor/patch version with timestamp
#
-TAGS="${TAGS} --tag ${DOCKER_REPOSITORY}/onap/policy/${IMAGE}:${MVN_VERSION}-${TIMESTAMP}"
+TAGS="${TAGS} --tag ${DOCKER_REPOSITORY}/onap/${IMAGE}:${MVN_VERSION}-${TIMESTAMP}"
echo $TAGS
for comp in policy-pe policy-drools
do
cd $HOME/$comp
- sudo docker build -t onap/policy/$comp packages/docker/target/$comp
+ sudo docker build -t onap/$comp packages/docker/target/$comp
done
cd $HOME
git clone http://gerrit.onap.org/r/policy/docker
cd docker
-sudo docker build -t onap/policy/policy-nexus policy-nexus
+sudo docker build -t onap/policy-nexus policy-nexus
cd $HOME/docker
chmod +x config/drools/drools-tweaks.sh