works now

This commit is contained in:
Jeffrey Paul 2016-04-18 01:18:32 +02:00
parent 1983c583e5
commit 2a1b6bfc36
4 changed files with 30 additions and 18 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
build.log

View File

@ -1,5 +1,7 @@
FROM ubuntu:16.04
ADD ./sources.list /etc/apt/sources.list
RUN echo "#!/bin/sh\nexit 101" > /usr/sbin/policy-rc.d
ADD ./run.sh /tmp/run.sh
RUN bash /tmp/run.sh && rm /tmp/run.sh

41
run.sh
View File

@ -46,6 +46,7 @@ PKGS="
python
python-dev
python-pip
python-software-properties
rbenv
rsync
rsyslog
@ -69,38 +70,42 @@ PKGS="
apt-get update
apt-get -y upgrade
apt-get install -y $PKGS
for PKG in $PKGS ; do
apt-get install -y $PKG
done
# 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
apt-get install -y 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 && \
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 && \
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 > \
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
apt-get update
sudo apt-get install neovim
# use faster parallel bzip2:
OLD="$(which bzip2)"
rm $OLD
ln $(which pbzip2) $OLD
apt-get install neovim
# install ruby-build for rbenv install
git clone https://github.com/rbenv/ruby-build.git /root/.rbenv/plugins/ruby-build

4
sources.list Normal file
View File

@ -0,0 +1,4 @@
deb mirror://mirrors.ubuntu.com/mirrors.txt xenial main universe
deb mirror://mirrors.ubuntu.com/mirrors.txt xenial-updates main universe
deb mirror://mirrors.ubuntu.com/mirrors.txt xenial-security main universe
deb mirror://mirrors.ubuntu.com/mirrors.txt xenial-backports main universe