updated docker
This commit is contained in:
parent
0b57e10e57
commit
f57e0de3e7
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
CONTAINER_NAME="usse_react"
|
CONTAINER_NAME="usse_react"
|
||||||
IMAGE_NAME="usse_react"
|
IMAGE_NAME="usse_react"
|
||||||
PORT_MAPPING="5000:3000"
|
PORT_MAPPING="15015:3000"
|
||||||
COMMAND="bash"
|
COMMAND="bash"
|
||||||
|
|
||||||
ok () {
|
ok () {
|
||||||
@ -51,5 +51,18 @@ if [[ "$1" == "recreate" ]]; then
|
|||||||
docker stop ${CONTAINER_NAME} && docker rm ${CONTAINER_NAME}
|
docker stop ${CONTAINER_NAME} && docker rm ${CONTAINER_NAME}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "$1" == "shell" ]]; then
|
||||||
|
# Get a bash shell inside the container
|
||||||
|
docker exec -ti ${CONTAINER_NAME} ${COMMAND}
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "$1" == "logs" ]]; then
|
||||||
|
# Get a bash shell inside the container
|
||||||
|
docker logs ${CONTAINER_NAME}
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Run container
|
# Run container
|
||||||
docker run --name ${CONTAINER_NAME} -p ${PORT_MAPPING} ${IMAGE_NAME}
|
docker run --name ${CONTAINER_NAME} -p ${PORT_MAPPING} -v /home/eljakim/Source/usse/source/scrape/out.json:/usr/src/app/src/locations.json ${IMAGE_NAME}
|
Loading…
Reference in New Issue
Block a user