You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
427 B
22 lines
427 B
2 years ago
|
#!/bin/bash
|
||
|
|
||
|
# args
|
||
|
action=${1:build}
|
||
|
|
||
|
# ensure newest
|
||
|
git pull
|
||
|
|
||
|
if [ $1 = "rebuild" ]; then
|
||
|
echo 'Rebuild OSPRO KIT-API Container'
|
||
|
docker stop ospro_kit_api-container
|
||
|
docker rm ospro_kit_api-container
|
||
|
else
|
||
|
echo 'Build New OSPOR KIT-API Container'
|
||
|
fi
|
||
|
|
||
|
docker build -t ospro/kit_api -f ./docker/Dockerfile .
|
||
|
docker run -d -p 127.0.0.1:8333:80 --name ospro_kit_api-container ospro/kit_api
|
||
|
|
||
|
|
||
|
|