forked from segfly-oss/ssh-gitway
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·22 lines (17 loc) · 760 Bytes
/
build.sh
File metadata and controls
executable file
·22 lines (17 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash
shopt -s expand_aliases
ROCKER_VERSION='segfly/rocker:1.3.0a'
# Do not use the --rm flag with Circle CI https://discuss.circleci.com/t/docker-error-removing-intermediate-container
if [ -z "${CIRCLECI+x}" ]; then
alias rocker='docker run -v /var/run/docker.sock:/var/run/docker.sock -v ${HOME}/.rocker_cache:/root/.rocker_cache -v $(pwd):/build -it --rm ${ROCKER_VERSION}'
else
alias rocker='docker run -v /var/run/docker.sock:/var/run/docker.sock -v ${HOME}/.rocker_cache:/root/.rocker_cache -v $(pwd):/build -t ${ROCKER_VERSION}'
fi
set -o nounset
set -o errexit
set -o xtrace
# Show info for rocker
rocker --version
# Build the sample git server
rocker build -f ssh-gitway/Dockerfile
rocker build -f sample-git-server/Dockerfile