-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathREADME
32 lines (23 loc) · 1.07 KB
/
README
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
26
27
28
29
30
31
#To update ruby development environment docker for launching local development server for griffithlab jekyll site
#Inspired by: https://devopscube.com/build-docker-image/
#1. Create a new Dockerfile
cd ~/git/griffithlab.org/docker
mkdir 0.0.2
cd 0.0.2
cp ~/git/griffithlab.org/docker/0.0.1/Dockerfile .
#2. Modify the new Dockerfile as needed
#3. Make sure docker is running
#4. Clean up docker environment
#To ensure a clean/new build you may want to clean up (delete) old containers, images, volumes and cache
#4.1 Deleted containers, images, and volumes directly in the docker desktop app
#4.2 Check for any remaining data in docker environment
docker system df
#4.3 Remove cached files and check environment again
docker buildx prune
docker system df
#Build a new image from modified Dockerfile
docker build -t griffithlab/griffithlabdev:0.0.2 ./
#Test that the image is working
docker run -p 4000:4000 -v ~/git/griffithlab.org/:/opt/git/griffithlab.org -it griffithlab/griffithlabdev:0.0.2
#Once satistfied, push the image to dockerhub
docker push griffithlab/griffithlabdev:0.0.2