Skip to content

Instantly share code, notes, and snippets.

@akkijp
Last active August 14, 2016 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akkijp/3ed9b7d4af382567df1550365314ec18 to your computer and use it in GitHub Desktop.
Save akkijp/3ed9b7d4af382567df1550365314ec18 to your computer and use it in GitHub Desktop.
Ubuntu 16.04 LST Docker Install スクリプト
export PATH="$HOME/.linuxbrew/bin:$PATH"
export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"
export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"
export LD_LIBRARY_PATH="$HOME/.linuxbrew/lib:$LD_LIBRARY_PATH"
#!/bin/bash
# Ask for the user password
# Script only works if sudo caches the password for a few minutes
sudo true
# first setup
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install language-pack-ja
sudo update-locale LANG="ja_JP.UTF-8"
# Install basic packages
sudo apt-get install -y gcc vim curl wget
# Install ruby
sudo apt install -y ruby
# Install git
sudo apt-get install -y git
# Install linuxbrew
sudo apt-get install -y build-essential curl git m4 ruby texinfo libbz2-dev libcurl4-openssl-dev libexpat-dev libncurses-dev zlib1g-dev
sudo apt-get install -y gettext
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/linuxbrew/go/install)"
curl https://gist.githubusercontent.com/k4zzk/3ed9b7d4af382567df1550365314ec18/raw/5e7fc58aafb69dc67dcfcfe3963845a7f3ea7c67/bash_profile_linuxbrew.txt >> ~/.bash_profile
# Install docker
sudo apt-get update
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt-get update
apt-cache policy docker-engine
sudo apt-get install -y docker-engine
# sudo systemctl status docker
sudo usermod -aG docker $(whoami)
# Install docker-compose
sudo sh -c "curl -L https://github.com/docker/compose/releases/download/1.6.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose"
sudo chmod +x /usr/local/bin/docker-compose
sudo sh -c "curl -L https://raw.githubusercontent.com/docker/compose/1.6.2/contrib/completion/bash/docker-compose > /etc/bash_completion.d/docker-compose"
# Install Bitcoin
sudo apt-add-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install bitcoind
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment