-
-
Save bosunolanrewaju/3393e18101d163e42e0b4124bb084672 to your computer and use it in GitHub Desktop.
Revisions
-
0sc revised this gist
Oct 21, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -23,7 +23,7 @@ mkdir -p ~/go/bin # set necessary go env variables cat > ./go-env.sh <<EOL export GOPATH=~/go export PATH=$PATH:/usr/local/go/bin:~/go/bin EOL chmod +x ./go-env.sh sudo mv ./go-env.sh /etc/profile.d/ -
0sc revised this gist
Oct 21, 2017 . 1 changed file with 4 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -21,11 +21,12 @@ sudo tar -C /usr/local -xzf $VERSION mkdir -p ~/go/bin # set necessary go env variables cat > ./go-env.sh <<EOL export GOPATH=~/go export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin EOL chmod +x ./go-env.sh sudo mv ./go-env.sh /etc/profile.d/ # install git for go get command # Docker installation -
0sc revised this gist
Oct 21, 2017 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -21,11 +21,11 @@ sudo tar -C /usr/local -xzf $VERSION mkdir -p ~/go/bin # set necessary go env variables sudo cat > /etc/profile.d/go-env.sh <<EOL export GOPATH=~/go export PATH=$PATH:$GOPATH/bin EOL sudo chmod +x /etc/profile.d/go-env.sh # install git for go get command # Docker installation -
0sc revised this gist
Oct 21, 2017 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -21,8 +21,11 @@ sudo tar -C /usr/local -xzf $VERSION mkdir -p ~/go/bin # set necessary go env variables cat > /etc/profile.d/go-env.sh <<EOL export GOPATH=~/go export PATH=$PATH:$GOPATH/bin EOL chmod +x /etc/profile.d/go-env.sh # install git for go get command # Docker installation -
0sc revised this gist
Oct 16, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -12,7 +12,7 @@ cd ~/ VERSION=go1.9.linux-amd64.tar.gz # download the go archive for the specified version sudo curl -O https://storage.googleapis.com/golang/$VERSION # extract the downloaded archive into the /usr/local folder sudo tar -C /usr/local -xzf $VERSION -
0sc revised this gist
Oct 16, 2017 . 1 changed file with 1 addition and 4 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -25,13 +25,10 @@ export GOPATH=~/go export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin # install git for go get command # Docker installation # http://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-basics.html # install docker sudo yum install -y git docker # download the docker compose binary curl -L https://github.com/docker/compose/releases/download/1.16.1/docker-compose-`uname -s`-`uname -m` > ./docker-compose -
0sc created this gist
Oct 16, 2017 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,49 @@ #!bin/sh # Update installed packages and package cache sudo yum update -y # make sure in the home folder cd ~/ # Golang installation # specify go version to install VERSION=go1.9.linux-amd64.tar.gz # download the go archive for the specified version sudo curl https://storage.googleapis.com/golang/$VERSION # extract the downloaded archive into the /usr/local folder sudo tar -C /usr/local -xzf $VERSION # setup the default GOPATH workspace mkdir -p ~/go/bin # set necessary go env variables export GOPATH=~/go export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin # install git for go get command sudo yum install -y git # Docker installation # http://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-basics.html # install docker sudo yum install -y docker # download the docker compose binary curl -L https://github.com/docker/compose/releases/download/1.16.1/docker-compose-`uname -s`-`uname -m` > ./docker-compose # mv docker-compose binary to usr/bin folder sudo mv ./docker-compose /usr/bin/docker-compose # make docker-compose binary executable sudo chmod +x /usr/bin/docker-compose # start the docker service sudo service docker start # add ec2-user to the docker group to lose the sudo command when using docker sudo usermod -a -G docker ec2-user