Skip to content

Instantly share code, notes, and snippets.

@PaulVanSchayck
Last active June 3, 2020 15:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PaulVanSchayck/7012a6d2affc14feb23c15737b13a774 to your computer and use it in GitHub Desktop.
Save PaulVanSchayck/7012a6d2affc14feb23c15737b13a774 to your computer and use it in GitHub Desktop.
Dockerfile to backport shorewall-5.2.3.4 from Ubuntu 20.04 to Ubuntu 18.04
FROM ubuntu:18.04
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractiv apt-get install -y dpkg-dev devscripts
RUN sh -c "echo deb-src http://archive.ubuntu.com/ubuntu/ focal universe >> /etc/apt/sources.list"
RUN apt-get update && apt-get build-dep -y shorewall
WORKDIR /root
RUN apt-get source shorewall shorewall-core
## shorewall
# Add the backport note to the package version
RUN cd /root/shorewall-5.2.3.4 && dch --bpo "DataHub backport"
# Build package
RUN cd /root/shorewall-5.2.3.4 && dpkg-buildpackage -rfakeroot -uc -b
## shorewall-core
# Add the backport note to the package version
RUN cd /root/shorewall-core-5.2.3.4 && dch --bpo "DataHub backport"
# Build package
RUN cd /root/shorewall-core-5.2.3.4 && dpkg-buildpackage -rfakeroot -uc -b
docker build . --tag shorewall-build
docker run --rm --entrypoint cat shorewall-build /root/shorewall-core_5.2.3.4-1~bpo9+1_all.deb > shorewall-core_5.2.3.4-1~bpo9+1_all.deb
docker run --rm --entrypoint cat shorewall-build /root/shorewall_5.2.3.4-1~bpo9+1_all.deb > shorewall_5.2.3.4-1~bpo9+1_all.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment