summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-08-22 18:32:32 +0200
committerChristian Poessinger <christian@poessinger.com>2022-08-22 18:32:32 +0200
commit31c3bc2f115c591f6e2be499a0a69c6cdf250134 (patch)
treec6f3beb79f84287ef77ee00db4cbdbf9b10bef86
parent8443b98f54c9c8e2a936301b9dbcdcd96c4d543e (diff)
downloadvyos-build-31c3bc2f115c591f6e2be499a0a69c6cdf250134.tar.gz
vyos-build-31c3bc2f115c591f6e2be499a0a69c6cdf250134.zip
Docker: T4637: add dependencies for podman build
-rw-r--r--docker/Dockerfile28
1 files changed, 23 insertions, 5 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index eaed47ef..f1fac187 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -355,13 +355,10 @@ RUN if dpkg-architecture -ii386 || dpkg-architecture -iamd64; then \
# Go required for validators and vyos-xe-guest-utilities
RUN GO_VERSION_INSTALL="1.18.3" ; \
- if [ "$ARCH" = "arm64v8" ] ; then \
- wget -O /tmp/go${GO_VERSION_INSTALL}.linux-arm64.tar.gz https://go.dev/dl/go${GO_VERSION_INSTALL}.linux-arm64.tar.gz ; \
- else \
- wget -O /tmp/go${GO_VERSION_INSTALL}.linux-amd64.tar.gz https://go.dev/dl/go${GO_VERSION_INSTALL}.linux-amd64.tar.gz ; \
- fi && \
+ wget -O /tmp/go${GO_VERSION_INSTALL}.linux-amd64.tar.gz https://go.dev/dl/go${GO_VERSION_INSTALL}.linux-$(dpkg-architecture -qDEB_HOST_ARCH).tar.gz ; \
tar -C /opt -xzf /tmp/go*.tar.gz && \
rm /tmp/go*.tar.gz
+RUN echo "export PATH=/opt/go/bin:$PATH" >> /etc/bash.bashrc
# Packages needed for ipaddrcheck
RUN apt-get update && apt-get install -y \
@@ -577,6 +574,27 @@ RUN apt-get update && apt-get install -y \
docbook-to-man \
docbook-utils
+# Packages needed for podman
+RUN apt-get update && sudo apt-get install -y \
+ btrfs-progs \
+ git \
+ iptables \
+ libassuan-dev \
+ libbtrfs-dev \
+ libc6-dev \
+ libdevmapper-dev \
+ libglib2.0-dev \
+ libgpgme-dev \
+ libgpg-error-dev \
+ libprotobuf-dev \
+ libprotobuf-c-dev \
+ libseccomp-dev \
+ libselinux1-dev \
+ libsystemd-dev \
+ pkg-config \
+ runc \
+ uidmap
+
#
# fpm: a command-line program designed to help you build packages (e.g. deb)
#