Create a simple Dockerfile
This commit is contained in:
parent
0cc7d7fe42
commit
d6f80faee6
3 changed files with 60 additions and 0 deletions
25
Makefile
Normal file
25
Makefile
Normal file
|
@ -0,0 +1,25 @@
|
|||
build:
|
||||
bundle exec jekyll build
|
||||
docker build . -t atomaka.com
|
||||
|
||||
push: build
|
||||
docker tag atomaka.com:latest docker.atomaka.com/atomaka.com:latest
|
||||
docker push docker.atomaka.com/atomaka.com:latest
|
||||
|
||||
deploy: push
|
||||
ssh $$SSH_USERNAME@$$SSH_HOST 'docker pull docker.atomaka.com/atomaka.com:latest && docker restart atomaka.com'
|
||||
|
||||
review:
|
||||
docker exec -it atomaka.com sh
|
||||
|
||||
clean:
|
||||
rm -r _site/
|
||||
docker rm -f atomaka.com
|
||||
|
||||
test: clean build
|
||||
docker run \
|
||||
--name atomaka.com \
|
||||
--publish 80:80 \
|
||||
--env "DOMAIN=$$DOMAIN" \
|
||||
--env "REDIRECT_DOMAIN=$$REDIRECT_DOMAIN" \
|
||||
atomaka.com
|
Loading…
Add table
Add a link
Reference in a new issue