summaryrefslogtreecommitdiff
path: root/docker/pip/amd64.dockerfile
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2024-02-05 14:51:12 +0100
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2024-02-19 14:15:07 +0100
commitd0ac01504ca02dc271846ee56b09fc418e334138 (patch)
tree5126949e54c32b7e4c672241031c4856ec22f1b7 /docker/pip/amd64.dockerfile
parente1e95993571e4fa7d25e861fad20f7a49a6a35e4 (diff)
Add pip docker files
Diffstat (limited to 'docker/pip/amd64.dockerfile')
-rw-r--r--docker/pip/amd64.dockerfile23
1 files changed, 23 insertions, 0 deletions
diff --git a/docker/pip/amd64.dockerfile b/docker/pip/amd64.dockerfile
new file mode 100644
index 0000000..27bbb8b
--- /dev/null
+++ b/docker/pip/amd64.dockerfile
@@ -0,0 +1,23 @@
+FROM quay.io/pypa/manylinux_2_28_x86_64
+
+RUN yum install -y golang python3 python3-setuptools python3-wheel wget
+
+WORKDIR /pip
+
+ARG COMMONVERSION
+
+RUN wget -O eduvpn-common.tar.xz https://github.com/eduvpn/eduvpn-common/releases/download/$COMMONVERSION/eduvpn-common-$COMMONVERSION.tar.xz
+RUN tar xf eduvpn-common.tar.xz
+
+WORKDIR /pip/eduvpn-common-$COMMONVERSION
+
+RUN CGO_ENABLED=1 go build -buildvcs=false -o lib/linux/amd64/libeduvpn_common-$COMMONVERSION.so -buildmode=c-shared ./exports
+
+WORKDIR /pip/eduvpn-common-$COMMONVERSION/wrappers/python
+
+RUN ./setup.py bdist_wheel --exports-lib-path="../../lib"
+
+RUN auditwheel repair dist/*
+
+RUN mkdir /wheelhouse
+RUN cp -r wheelhouse/* /wheelhouse \ No newline at end of file