Closed autumnjolitz closed 3 years ago
Directions for use:
Build the image:
docker build -t pyboom .
Copy the whl out of it:
docker run -v /tmp:/export --rm -it pyboom cp /output/BayesBoom-0.0.3-cp36-cp36m-manylinux2010_x86_64.whl /export/.
Example:
(python) Fateweaver:~/software/BOOM [manylinux-wheels]$ docker build -t pyboom . [+] Building 0.8s (13/13) FINISHED => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 120B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 35B 0.0s => [internal] load metadata for quay.io/pypa/manylinux2010_x86_64:latest 0.5s => [internal] load build context 0.1s => => transferring context: 131.65kB 0.1s => [1/8] FROM quay.io/pypa/manylinux2010_x86_64@sha256:69d375fd30384e44017673442d4f63748d51056bb25f3db88c82301d811ad637 0.0s => CACHED [2/8] RUN mkdir /output 0.0s => CACHED [3/8] COPY . /src/BOOM 0.0s => CACHED [4/8] WORKDIR /src/BOOM 0.0s => CACHED [5/8] RUN ln -sf /opt/python/cp36-cp36m/bin/python /usr/local/bin/python3 0.0s => CACHED [6/8] RUN ./install/pyboom 0.0s => CACHED [7/8] RUN cd python_package/dist && find . -name "*.whl" -print && mv *.whl /output && (rm -f /usr/local/bin/python3 || true) 0.0s => CACHED [8/8] RUN auditwheel repair /output/BayesBoom*.whl -w /output 0.0s => exporting to image 0.0s => => exporting layers 0.0s => => writing image sha256:dfb998cd17bf7ceca713bc2ea4e9cb4434647bf2fa9358671706db774832045e 0.0s => => naming to docker.io/library/pyboom 0.0s (python) Fateweaver:~/software/BOOM [manylinux-wheels]$ docker run -v /tmp:/export --rm -it pyboom cp /output/BayesBoom-0.0.3-cp36-cp36m-manylinux2010_x86_64.whl /export/. (python) Fateweaver:~/software/BOOM [manylinux-wheels]$ ls /tmp/*.whl /tmp/BayesBoom-0.0.3-cp36-cp36m-manylinux2010_x86_64.whl (python) Fateweaver:~/software/BOOM [manylinux-wheels]$
Directions for use:
Build the image:
Copy the whl out of it:
Example: