-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from JonathonReinhart/add-aliases
Add support for aliases
- Loading branch information
Showing
4 changed files
with
36 additions
and
6 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
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 +1,3 @@ | ||
image: busybox:latest | ||
aliases: | ||
build: ./do_build.sh arguments from "scuba 'build' alias" |
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,5 +1,16 @@ | ||
#!/bin/bash | ||
|
||
cd $(dirname $0) | ||
|
||
export PATH="../src:$PATH" | ||
|
||
scuba /bin/sh ./do_build.sh "here are args" from user "via scuba invocation" | ||
|
||
# Run ./do_build.sh inside of a container, | ||
# using the image specified in .scuba.yml | ||
scuba ./do_build.sh "here are args" from user "via scuba invocation" | ||
|
||
echo "" | ||
|
||
# This invocation runs an alias named 'build' | ||
scuba build "and more args" from "the command-line" | ||
|
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