Skip to content

Commit 1bae7cb

Browse files
committed
convenience targets
1 parent e587f50 commit 1bae7cb

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

install/docker/Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# to build a new docker image
2+
build:
3+
time docker build -t fangohr/fidimag:latest .
4+
5+
# to run new image
6+
run:
7+
docker run -ti fangohr/fidimag bash
8+
# try 'ipython' and then 'import fidimag'
9+
10+
login:
11+
docker login
12+
13+
# to push the new docker image to dockerhub (need to login first)
14+
push:
15+
docker push fangohr/fidimag:latest
16+
17+
# to fetch image to local machine
18+
pull:
19+
docker pull fangohr/fidimag:latest

0 commit comments

Comments
 (0)