Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 818a90e

Browse files
committed
Add wrapper script as abstraction around docker commands
1 parent a36894a commit 818a90e

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

‎bin/php-src-devtools‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
function runInContainer()
5+
{
6+
docker run -i -t --rm -v`pwd`:/src/php-src aboks/php-src-devtools:latest "$@"
7+
}
8+
9+
case "1ドル" in
10+
"build")
11+
runInContainer build
12+
;;
13+
"test")
14+
runInContainer test "${@:2}"
15+
;;
16+
*)
17+
echo "Unknown command"
18+
exit 2
19+
;;
20+
esac

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /