Commit 70593b49 by TongZuu

create docker build and readme

parent 287a88d9
FROM jboss/wildfly:10.1.0.Final
ADD target/cpn-zeesecurity-webapp-0.0.1-SNAPSHOT.war /opt/jboss/wildfly/standalone/deployments/
# CMD ["/opt/jboss/wildfly/bin/standalone.sh", "-b", "0.0.0.0", "-bmanagement", "0.0.0.0" , "-Dcom.datastax.driver.FORCE_NIO=true"]
CMD ["/opt/jboss/wildfly/bin/standalone.sh", "-b", "0.0.0.0", "-bmanagement", "0.0.0.0"]
## docker build
```
docker image build -t zeesecurity-image .
```
build with tag
```
docker image build -t registry.myhr.co.th/zeesecurity:0.0.2 .
```
## docker tag version
```
docker image tag zeesecurity-image registry.myhr.co.th/zeesecurity
```
or
```
docker image tag zeesecurity-image 10.1.1.174:5000/zeesecurity
```
## push image to registry
```
docker push registry.myhr.co.th/zeesecurity
```
or
```
docker push 10.1.1.174:5000/zeesecurity
```
## run on docker
```
docker run -p 8180:8080 --name zeemeapi registry.myhr.co.th/zeesecurity
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment