- データベース一覧
show databases
| $ ./docker_sbt_test.py local/sbt-test --dir /workspace/docker-sbt-test/example --setup " \ | |
| rm -fr /workspace/docker-sbt-test && \ | |
| git clone --depth 1 https://github.com/mogproject/docker-sbt-test.git /workspace/docker-sbt-test \ | |
| " | |
| 2014-01-11 07:24:53,272 [INFO] Creating test image (local/sbt-test:test-1389425093.27) ... | |
| Uploading context 2.048 kB | |
| Step 1 : FROM local/sbt-test:latest | |
| ---> de04dd418dc0 | |
| Step 2 : RUN /bin/bash -c " rm -fr /workspace/docker-sbt-test && git clone --depth 1 https://github.com/mogproject/docker-sbt-test.git /workspace/docker-sbt-test " | |
| ---> Running in 8b9c2b674e0d |
| #!/bin/bash | |
| GIT=/usr/local/bin/git | |
| SCRIPT_DIR=$( cd "$( dirname "$0" )" && pwd -P ) | |
| if [ "$1" = "clone" ]; then | |
| origin_url="$2" | |
| else | |
| # check if current directory is under git repository | |
| origin_url=$("$GIT" config --get remote.origin.url) || { |