Last active
June 3, 2020 15:01
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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