latest, still doesn't build yet

This commit is contained in:
Jeffrey Paul 2020-03-22 02:02:04 -07:00
parent 254d6d6d38
commit 4d84e4d0f9
3 changed files with 20 additions and 8 deletions

View File

@ -13,18 +13,25 @@ mv /etc/apt/sources.list.new /etc/apt/sources.list
COPY ./root /tmp/rootoverlay
# we only install essential system packages here
ARG SYSTEM_PACKAGES="build-essential golang ca-certificates git rsync runit locales"
RUN \
apt update && \
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 && \
cp /root/go/bin/runsvinit /usr/local/sbin/runsvinit && \
rsync -avP /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"]
@ -32,7 +39,8 @@ COPY ./src /usr/local/src/adchpp
RUN \
cd /usr/local/src/adchpp && \
python
python2 build_util.py && \
ls
EXPOSE 411

View File

@ -1,6 +1,6 @@
export DOCKER_HOST := ssh://datavi.be
export DOCKER_HOST := ssh://las1.local
default: 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" .

View File

@ -0,0 +1,4 @@
#!/bin/bash
# FIXME(sneak) make this run
sleep 60