Skip to content

Commit

Permalink
Add docker to makefile, have run.sh kill and rm previous run
Browse files Browse the repository at this point in the history
  • Loading branch information
Jmainguy committed Apr 16, 2018
1 parent 576d009 commit 3527a42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ rpm:
@cp patient_csv_to_xml.spec ~/Github/docker_rpmbuild/rpmbuild/SPECS/patient_csv_to_xml.spec
@cd ~/Github/docker_rpmbuild/; ./run.sh centos7 patient_csv_to_xml
@ls -ltrh ~/Github/docker_rpmbuild/rpmbuild/RPMS/x86_64/patient_csv_to_xml*
docker:
@docker build -t='patient_csv_to_xml' .
2 changes: 2 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
#!/bin/bash
docker kill patient_csv_to_xml
docker rm patient_csv_to_xml
docker run --name patient_csv_to_xml --restart always -p 8000:8000 -d patient_csv_to_xml

0 comments on commit 3527a42

Please sign in to comment.