added golang, netcat, fixed docker, added -machine and -compose
This commit is contained in:
parent
06aef42487
commit
c3f15c56ef
53
run.sh
53
run.sh
@ -7,6 +7,7 @@ exec 1> >(tee -a /var/log/sandboxbuild.log) 2>&1
|
|||||||
PKGS="
|
PKGS="
|
||||||
apt-utils
|
apt-utils
|
||||||
bind9-host
|
bind9-host
|
||||||
|
bash-completion
|
||||||
bonnie++
|
bonnie++
|
||||||
build-essential
|
build-essential
|
||||||
byobu
|
byobu
|
||||||
@ -14,12 +15,12 @@ PKGS="
|
|||||||
daemontools
|
daemontools
|
||||||
debmirror
|
debmirror
|
||||||
default-jre
|
default-jre
|
||||||
docker
|
|
||||||
fonts-indic
|
fonts-indic
|
||||||
fonts-ipafont-gothic
|
fonts-ipafont-gothic
|
||||||
fonts-ipafont-mincho
|
fonts-ipafont-mincho
|
||||||
fortune
|
fortune
|
||||||
git
|
git
|
||||||
|
golang-go
|
||||||
irssi
|
irssi
|
||||||
jq
|
jq
|
||||||
ldap-auth-client
|
ldap-auth-client
|
||||||
@ -34,6 +35,7 @@ PKGS="
|
|||||||
man-db
|
man-db
|
||||||
mosh
|
mosh
|
||||||
mutt
|
mutt
|
||||||
|
netcat-openbsd
|
||||||
nmap
|
nmap
|
||||||
nodejs
|
nodejs
|
||||||
npm
|
npm
|
||||||
@ -69,20 +71,45 @@ apt-get update
|
|||||||
apt-get -y upgrade
|
apt-get -y upgrade
|
||||||
apt-get install -y $PKGS
|
apt-get install -y $PKGS
|
||||||
|
|
||||||
|
# install docker
|
||||||
|
apt-get install apt-transport-https ca-certificates
|
||||||
|
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 \
|
||||||
|
--recv-keys 58118E89F3A912897C070ADBF76221572C52609D
|
||||||
|
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" > \
|
||||||
|
/etc/apt/sources.list.d/docker.list
|
||||||
|
apt-get update
|
||||||
|
apt-get install docker-engine
|
||||||
|
|
||||||
|
# install docker machine (this is gross):
|
||||||
|
curl -L https://github.com/docker/machine/releases/download/v0.6.0/docker-machine-`uname -s`-`uname -m` > /usr/local/bin/docker-machine && \
|
||||||
|
chmod +x /usr/local/bin/docker-machine
|
||||||
|
|
||||||
|
# install docker compose (also gross):
|
||||||
|
curl -L
|
||||||
|
https://github.com/docker/compose/releases/download/1.6.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose && \
|
||||||
|
chmod +x /usr/local/bin/docker-compose
|
||||||
|
# and completion
|
||||||
|
curl -L https://raw.githubusercontent.com/docker/compose/$(docker-compose version --short)/contrib/completion/bash/docker-compose > \
|
||||||
|
/etc/bash_completion.d/docker-compose
|
||||||
|
|
||||||
|
# install neovim
|
||||||
add-apt-repository ppa:neovim-ppa/unstable
|
add-apt-repository ppa:neovim-ppa/unstable
|
||||||
apt-get update
|
apt-get update
|
||||||
sudo apt-get install neovim
|
sudo apt-get install neovim
|
||||||
|
|
||||||
# use faster one:
|
# use faster parallel bzip2:
|
||||||
OLD="$(which bzip2)"
|
OLD="$(which bzip2)"
|
||||||
rm $OLD
|
rm $OLD
|
||||||
ln $(which pbzip2) $OLD
|
ln $(which pbzip2) $OLD
|
||||||
|
|
||||||
|
# install ruby-build for rbenv install
|
||||||
git clone https://github.com/rbenv/ruby-build.git /root/.rbenv/plugins/ruby-build
|
git clone https://github.com/rbenv/ruby-build.git /root/.rbenv/plugins/ruby-build
|
||||||
|
|
||||||
|
# install some rbenv versions
|
||||||
rbenv install 2.3.0
|
rbenv install 2.3.0
|
||||||
rbenv install jruby-9.0.5.0
|
rbenv install jruby-9.0.5.0
|
||||||
|
|
||||||
|
# install some gems
|
||||||
GEMS="
|
GEMS="
|
||||||
bundler
|
bundler
|
||||||
"
|
"
|
||||||
@ -91,36 +118,44 @@ for GEM in $GEMS ; do
|
|||||||
gem install -V $GEM
|
gem install -V $GEM
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# install ppss, paralell processing shell script
|
||||||
cd /usr/local/bin
|
cd /usr/local/bin
|
||||||
wget https://raw.githubusercontent.com/sneak/ppss/master/ppss
|
wget https://raw.githubusercontent.com/sneak/ppss/master/ppss
|
||||||
chmod +x ./ppss
|
chmod +x ./ppss
|
||||||
|
|
||||||
|
# update npm
|
||||||
|
npm update -g --loglevel info npm
|
||||||
|
|
||||||
|
# install some npm packages
|
||||||
NPM_PKGS="
|
NPM_PKGS="
|
||||||
coffee-script
|
coffee-script
|
||||||
coffeelint
|
coffeelint
|
||||||
"
|
"
|
||||||
|
|
||||||
# update npm
|
|
||||||
npm update -g --loglevel info npm
|
|
||||||
for PKG in $NPM_PKGS ; do
|
for PKG in $NPM_PKGS ; do
|
||||||
npm install -g --loglevel info $PKG
|
npm install -g --loglevel info $PKG
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
# upgrade pip and install bare essentials
|
||||||
|
# update other packages as possible
|
||||||
|
pip install --upgrade pip
|
||||||
|
pip install setuptools
|
||||||
|
pip install pip-review
|
||||||
|
pip-review --verbose --auto
|
||||||
|
|
||||||
|
# install other python packages
|
||||||
PIP_PKGS="
|
PIP_PKGS="
|
||||||
virtualenv
|
virtualenv
|
||||||
pylint
|
pylint
|
||||||
awscli
|
awscli
|
||||||
"
|
"
|
||||||
|
|
||||||
pip install --upgrade pip
|
|
||||||
pip install setuptools
|
|
||||||
pip install pip-review
|
|
||||||
pip-review --verbose --auto
|
|
||||||
for PKG in $PIP_PKGS; do
|
for PKG in $PIP_PKGS; do
|
||||||
pip install $PKG
|
pip install $PKG
|
||||||
done
|
done
|
||||||
|
|
||||||
# cleanup
|
# cleanup filesystem after build
|
||||||
|
|
||||||
rm -rf \
|
rm -rf \
|
||||||
/root/.cache \
|
/root/.cache \
|
||||||
|
Loading…
Reference in New Issue
Block a user