Adding Dockerfile which can be used to build image to build debian package for xenial more reliably.
This commit is contained in:
parent
cb8b2122b0
commit
7b7c8714a3
2 changed files with 26 additions and 0 deletions
13
deb-packaging/Dockerfile
Normal file
13
deb-packaging/Dockerfile
Normal 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
13
deb-packaging/entrypoint.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue