blob: 8bc2ea6f836247ffb71c72ad9909057d82c4ed24 [file] [log] [blame]
arun chapagain258be882020-08-06 15:44:12 +05301FROM onap/integration-java11:7.0.0
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -04002MAINTAINER mc4615@att.com
3EXPOSE 8080
4ENV APP_HOME /home/$USER_NAME/app
5RUN mkdir $APP_HOME
6ADD mso-openstack-adapters-1.1.0-SNAPSHOT.jar $APP_HOME/mso-openstack-adapters-1.1.0-SNAPSHOT.jar
7WORKDIR $APP_HOME
8RUN touch mso-openstack-adapters-1.1.0-SNAPSHOT.jar
9ENTRYPOINT ["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 chapagain258be882020-08-06 15:44:12 +053040######### README #########