arun chapagain | 258be88 | 2020-08-06 15:44:12 +0530 | [diff] [blame^] | 1 | FROM onap/integration-java11:7.0.0 |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 2 | MAINTAINER mc4615@att.com |
| 3 | EXPOSE 8080 |
| 4 | ENV APP_HOME /home/$USER_NAME/app |
| 5 | RUN mkdir $APP_HOME |
| 6 | ADD mso-openstack-adapters-1.1.0-SNAPSHOT.jar $APP_HOME/mso-openstack-adapters-1.1.0-SNAPSHOT.jar |
| 7 | WORKDIR $APP_HOME |
| 8 | RUN touch mso-openstack-adapters-1.1.0-SNAPSHOT.jar |
| 9 | ENTRYPOINT ["java","-jar","-Dspring.profiles.active=dev","mso-openstack-adapters-1.1.0-SNAPSHOT.jar"] |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | ######### README ######### |
| 17 | # NOTES ######## |
| 18 | # cd /Users/mercychan/git/mso-e/adapters/mso-openstack-adapters/Deployment/ |
| 19 | # docker build -f Dockerfile.adapters -t mercechan/msoadapters . |
| 20 | # docker run -it -p 8080:8080 --name mchan mercechan/msoadapters # interactive mode |
| 21 | # docker run -d -p 8080:8080 --name mchan mercechan/msoadapters # daemon mode |
| 22 | # docker exec -it mchan /bin/bash # this will get you in docker container |
| 23 | # NOTES ######## |
| 24 | |
| 25 | |
| 26 | # COMMANDS ######## |
| 27 | # 1. CREATE MSO_NETWORK TO HOST CONTAINER |
| 28 | # docker network ls # show list of existing networks |
| 29 | # docker network create --driver bridge mso_network |
| 30 | # docker network inspect mso_network # this will list details of the named network |
| 31 | # docker network rm mso_network # remove mso_network docker network, optional |
| 32 | # docker logs mchan # to show log info for mchan container |
| 33 | |
| 34 | # 2. CREATE CONTAINER AND PUT IT IN THE MSO_NETWORK |
| 35 | # FOR DAEMON MODE USE -d |
| 36 | # docker run -d --net=mso_network -p 8080:8080 --name mchan mercechan/msoadapters |
| 37 | # OR for interactive mode (-it), run the following command |
| 38 | # docker run -it --net=mso_network -p 8080:8080 --name mchan mercechan/msoadapters |
| 39 | # COMMANDS ######## |
arun chapagain | 258be88 | 2020-08-06 15:44:12 +0530 | [diff] [blame^] | 40 | ######### README ######### |