Adding Dockerfile which can be used to build image to build debian package for xenial more reliably.

This commit is contained in:
Renan DelValle 2018-12-28 08:59:52 -08:00
parent cb8b2122b0
commit 7b7c8714a3
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9
2 changed files with 26 additions and 0 deletions

13
deb-packaging/Dockerfile Normal file
View file

@ -0,0 +1,13 @@
FROM ubuntu:16.04
RUN apt-get update -y && \
apt-get install -y build-essential devscripts dh-exec dh-make git lintian wget && \
wget https://dl.google.com/go/go1.11.4.linux-amd64.tar.gz -O /tmp/go.tar.gz
RUN tar -C /usr/local -xzf /tmp/go.tar.gz
ENV PATH=$PATH:/usr/local/go/bin
COPY ./entrypoint.sh /
ENTRYPOINT [ "/entrypoint.sh" ]

13
deb-packaging/entrypoint.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/bash
# Temporary fix for a go mods bug
rm /australis/go.sum
# Build debian package
cd /australis
debuild -d -us -uc -b
# Move resulting packages to the dist folder
mkdir -p /australis/dist
mv /australis_*_amd64* /australis/dist