latest, still doesn't build yet
This commit is contained in:
parent
254d6d6d38
commit
4d84e4d0f9
20
Dockerfile
20
Dockerfile
|
@ -13,18 +13,25 @@ mv /etc/apt/sources.list.new /etc/apt/sources.list
|
||||||
|
|
||||||
COPY ./root /tmp/rootoverlay
|
COPY ./root /tmp/rootoverlay
|
||||||
|
|
||||||
# we only install essential system packages here
|
|
||||||
ARG SYSTEM_PACKAGES="build-essential golang ca-certificates git rsync runit locales"
|
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
apt update && \
|
apt update && \
|
||||||
apt -y upgrade && \
|
apt -y upgrade && \
|
||||||
apt -y install $SYSTEM_PACKAGES && \
|
apt -y install \
|
||||||
|
build-essential \
|
||||||
|
ca-certificates \
|
||||||
|
git \
|
||||||
|
golang \
|
||||||
|
locales \
|
||||||
|
python2 \
|
||||||
|
rsync \
|
||||||
|
runit \
|
||||||
|
&& \
|
||||||
go get -v -u github.com/peterbourgon/runsvinit && \
|
go get -v -u github.com/peterbourgon/runsvinit && \
|
||||||
cp /root/go/bin/runsvinit /usr/local/sbin/runsvinit && \
|
cp /root/go/bin/runsvinit /usr/local/sbin/runsvinit && \
|
||||||
rsync -avP /tmp/rootoverlay/ / && \
|
rsync -avP /tmp/rootoverlay/ / && \
|
||||||
rm -rf /tmp/rootoverlay && \
|
rm -rf /tmp/rootoverlay && \
|
||||||
rm -r /root/go
|
rm -r /root/go && \
|
||||||
|
chmod a+rx /etc/service/*/run
|
||||||
|
|
||||||
CMD ["/usr/local/sbin/runsvinit"]
|
CMD ["/usr/local/sbin/runsvinit"]
|
||||||
|
|
||||||
|
@ -32,7 +39,8 @@ COPY ./src /usr/local/src/adchpp
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
cd /usr/local/src/adchpp && \
|
cd /usr/local/src/adchpp && \
|
||||||
python
|
python2 build_util.py && \
|
||||||
|
ls
|
||||||
|
|
||||||
EXPOSE 411
|
EXPOSE 411
|
||||||
|
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -1,6 +1,6 @@
|
||||||
export DOCKER_HOST := ssh://datavi.be
|
export DOCKER_HOST := ssh://las1.local
|
||||||
|
|
||||||
default: build
|
default: build
|
||||||
|
|
||||||
build:
|
build:
|
||||||
docker build -t sneak/adchpp --build-arg UBUNTU_MIRROR="http://ubuntu.datavi.be/ubuntu" .
|
docker build -t sneak/adchpp --build-arg UBUNTU_MIRROR="http://us.archive.ubuntu.com/ubuntu" .
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# FIXME(sneak) make this run
|
||||||
|
sleep 60
|
Loading…
Reference in New Issue