diff options
author | Timoney, Dan (dt5972) <dt5972@att.com> | 2018-04-26 11:06:30 -0400 |
---|---|---|
committer | Timoney, Dan (dt5972) <dt5972@att.com> | 2018-04-26 11:28:34 -0400 |
commit | 2f18d9c25806664e2910b39b792204b4d6f1b504 (patch) | |
tree | 0c5eddde3cbfbfa9eb6efdaef0ff58c240b65a51 /installation/ansible-server/src/main/scripts | |
parent | ee065f09ddf9ebab302cfd268162d56c68ef8b2d (diff) |
Move pip installs from Dockerfile
Pip install seems to fail in Dockerfile. Instead, move pip installs to
a startup script so that they can be done on initial container startup.
Change-Id: I3125307d5f9bfc980d8f9ed0bba108a5536548fd
Issue-ID: SDNC-288
Signed-off-by: Timoney, Dan (dt5972) <dt5972@att.com>
Former-commit-id: 3c48ffbeda720569fbfb8fac3e5db1cd0551474b
Diffstat (limited to 'installation/ansible-server/src/main/scripts')
-rw-r--r-- | installation/ansible-server/src/main/scripts/startAnsibleServer.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/installation/ansible-server/src/main/scripts/startAnsibleServer.sh b/installation/ansible-server/src/main/scripts/startAnsibleServer.sh new file mode 100644 index 00000000..67af9623 --- /dev/null +++ b/installation/ansible-server/src/main/scripts/startAnsibleServer.sh @@ -0,0 +1,12 @@ +#/bin/bash + +if [ ! -d /tmp/.ansible-server-installed] +then + pip install PyMySQL + pip install cherrypy + pip install requests + date > /tmp/.ansible-server-installed 2>&1 +fi + +cd /opt/onap/sdnc +exec python RestServer.py > RestServer.out
\ No newline at end of file |