-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker_testing.sh
More file actions
25 lines (24 loc) · 877 Bytes
/
Copy pathdocker_testing.sh
File metadata and controls
25 lines (24 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
echo "Check all necessary R packages are added to Dockerfile."
echo ""
echo "> Stopping container if running"
sudo docker container stop microbiome-webapp
echo ""
echo "> Removing container if present"
sudo docker container rm microbiome-webapp-container
echo ""
echo "> Removing image if present"
sudo docker image rm microbiome-webapp
echo ""
echo "> Copying necessary files"
cp -r ~/Documents/microbiome_analysis/ ~/Documents/microbiome_webapp/
echo ""
echo "> Building image"
DOCKER_BUILDKIT=1 sudo docker build -t microbiome-webapp .
echo ""
echo "> Launching container"
sudo docker run -d --name microbiome-webapp-container microbiome-webapp
echo ""
echo "> Launching shiny-server webpage"
# google-chrome http://172.17.0.2:3838/microbiome-webapp/
sudo docker inspect microbiome-webapp-container | grep \"IPAddress\":
# docker exec -it iot-dashboard-container /bin/bash