aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--installation/ansible-server/src/main/docker/Dockerfile2
-rw-r--r--installation/ansible-server/src/main/scripts/startAnsibleServer.sh2
-rw-r--r--installation/src/main/yaml/docker-compose.yml2
3 files changed, 4 insertions, 2 deletions
diff --git a/installation/ansible-server/src/main/docker/Dockerfile b/installation/ansible-server/src/main/docker/Dockerfile
index 87ae9e79..86b368c9 100644
--- a/installation/ansible-server/src/main/docker/Dockerfile
+++ b/installation/ansible-server/src/main/docker/Dockerfile
@@ -23,7 +23,7 @@ COPY opt /opt/
WORKDIR /opt/onap/sdnc
-ENTRYPOINT exec startAnsibleServer.sh
+#ENTRYPOINT exec startAnsibleServer.sh
#CMD ["/bin/bash"]
EXPOSE 8000
diff --git a/installation/ansible-server/src/main/scripts/startAnsibleServer.sh b/installation/ansible-server/src/main/scripts/startAnsibleServer.sh
index e9b912bb..eec62ba6 100644
--- a/installation/ansible-server/src/main/scripts/startAnsibleServer.sh
+++ b/installation/ansible-server/src/main/scripts/startAnsibleServer.sh
@@ -1,7 +1,7 @@
#/bin/bash
exec &> /var/log/ansible-server.log
-if [ ! -d /tmp/.ansible-server-installed]
+if [ ! -f /tmp/.ansible-server-installed ]
then
pip install PyMySQL
pip install cherrypy
diff --git a/installation/src/main/yaml/docker-compose.yml b/installation/src/main/yaml/docker-compose.yml
index f2cc5a2d..361e7ea8 100644
--- a/installation/src/main/yaml/docker-compose.yml
+++ b/installation/src/main/yaml/docker-compose.yml
@@ -59,6 +59,8 @@ services:
environment:
- MYSQL_ROOT_PASSWORD=openECOMP1.0
- SDNC_CONFIG_DIR=/opt/onap/sdnc/data/properties
+ dns:
+ - ${DNS_IP_ADDR-10.0.100.1}
logging:
driver: "json-file"
options: