works now
This commit is contained in:
parent
1983c583e5
commit
2a1b6bfc36
|
@ -0,0 +1 @@
|
||||||
|
build.log
|
|
@ -1,5 +1,7 @@
|
||||||
FROM ubuntu:16.04
|
FROM ubuntu:16.04
|
||||||
|
|
||||||
|
ADD ./sources.list /etc/apt/sources.list
|
||||||
|
|
||||||
RUN echo "#!/bin/sh\nexit 101" > /usr/sbin/policy-rc.d
|
RUN echo "#!/bin/sh\nexit 101" > /usr/sbin/policy-rc.d
|
||||||
ADD ./run.sh /tmp/run.sh
|
ADD ./run.sh /tmp/run.sh
|
||||||
RUN bash /tmp/run.sh && rm /tmp/run.sh
|
RUN bash /tmp/run.sh && rm /tmp/run.sh
|
||||||
|
|
41
run.sh
41
run.sh
|
@ -46,6 +46,7 @@ PKGS="
|
||||||
python
|
python
|
||||||
python-dev
|
python-dev
|
||||||
python-pip
|
python-pip
|
||||||
|
python-software-properties
|
||||||
rbenv
|
rbenv
|
||||||
rsync
|
rsync
|
||||||
rsyslog
|
rsyslog
|
||||||
|
@ -69,38 +70,42 @@ PKGS="
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get -y upgrade
|
apt-get -y upgrade
|
||||||
apt-get install -y $PKGS
|
|
||||||
|
for PKG in $PKGS ; do
|
||||||
|
apt-get install -y $PKG
|
||||||
|
done
|
||||||
|
|
||||||
# install docker
|
# install docker
|
||||||
apt-get install apt-transport-https ca-certificates
|
apt-get install -y docker
|
||||||
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 \
|
#apt-get install apt-transport-https ca-certificates
|
||||||
--recv-keys 58118E89F3A912897C070ADBF76221572C52609D
|
#apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 \
|
||||||
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" > \
|
# --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
|
||||||
/etc/apt/sources.list.d/docker.list
|
#echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" > \
|
||||||
apt-get update
|
# /etc/apt/sources.list.d/docker.list
|
||||||
apt-get install docker-engine
|
#apt-get update
|
||||||
|
#apt-get install docker-engine
|
||||||
|
|
||||||
# install docker machine (this is gross):
|
# 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
|
chmod +x /usr/local/bin/docker-machine
|
||||||
|
|
||||||
# install docker compose (also gross):
|
# install docker compose (also gross):
|
||||||
curl -L
|
curl -L \
|
||||||
https://github.com/docker/compose/releases/download/1.6.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose && \
|
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
|
chmod +x /usr/local/bin/docker-compose
|
||||||
|
|
||||||
# and completion
|
# 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
|
/etc/bash_completion.d/docker-compose
|
||||||
|
|
||||||
# install neovim
|
# 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
|
apt-get install neovim
|
||||||
|
|
||||||
# use faster parallel bzip2:
|
|
||||||
OLD="$(which bzip2)"
|
|
||||||
rm $OLD
|
|
||||||
ln $(which pbzip2) $OLD
|
|
||||||
|
|
||||||
# install ruby-build for rbenv install
|
# 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
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue