Created
November 11, 2018 23:46
-
-
Save kentatogashi/279ae7bdf62643f3266e63443375a196 to your computer and use it in GitHub Desktop.
docker-composeで、redmineを立ち上げるスクリプト
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
#!/bin/sh | |
[ $(whoami) != root ] && \ | |
echo 'require root.' && exit 1 | |
which docker-compose > /dev/null 2>&1 | |
[ $? -ne 0 ] && \ | |
curl -L https://github.com/docker/compose/releases/download/1.21.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose | |
mkdir -p ~/redmine | |
cd ~/redmine | |
[ -f docker-compose.yml ] || \ | |
wget https://raw.githubusercontent.com/sameersbn/docker-redmine/master/docker-compose.yml | |
docker-compose up -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment