-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use docker mounts for running updated scripts
- Loading branch information
Showing
2 changed files
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
dir := justfile_directory() | ||
docker_command := "docker run -it --mount type=bind,source="+dir+"/lib,target=/bitcoin-dsl/lib --mount type=bind,source="+dir+"/spec,target=/bitcoin-dsl/spec bitcoin-dsl" | ||
|
||
default: build-docker | ||
|
||
build-docker: | ||
docker build -t bitcoin-dsl . | ||
|
||
run script: | ||
docker run bitcoin-dsl ruby ./lib/run.rb -s {{script}} | ||
{{docker_command}} ruby ./lib/run.rb -s {{script}} | ||
|
||
test: | ||
docker run bitcoin-dsl rake spec | ||
{{docker_command}} rake spec | ||
|
||
bash: | ||
{{docker_command}} bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters