This repository has been archived by the owner on Nov 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
02fb645
commit 11ffa7e
Showing
4 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
*.iml | ||
.idea/ | ||
.DS_Store | ||
/docker/pip/out/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM quay.io/pypa/manylinux_2_28_aarch64 | ||
|
||
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/arm64/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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
|
||
VERSION=$(git tag | sort -V | tail -1) | ||
mkdir -p out/"$VERSION" | ||
|
||
# amd64 | ||
sudo docker build --build-arg COMMONVERSION="$VERSION" -f amd64.dockerfile -t common-pip-amd64 . | ||
sudo docker run -v "$PWD"/out/"$VERSION":/io --rm -ti common-pip-amd64 bash -c "cp /wheelhouse/* /io" | ||
|
||
# arm64 | ||
sudo docker run --rm --privileged multiarch/qemu-user-static --reset -p yes | ||
sudo docker build --build-arg COMMONVERSION="$VERSION" -f arm64.dockerfile -t common-pip-arm64 . | ||
sudo docker run -v "$PWD"/out/"$VERSION":/io --rm -ti common-pip-arm64 bash -c "cp /wheelhouse/* /io" |