Skip to content

Commit

Permalink
Merge pull request #172 from Chia-Network/EL.update-alpine
Browse files Browse the repository at this point in the history
Update alpine to latest and simplify script
  • Loading branch information
emlowe authored Jan 8, 2025
2 parents 4e45178 + 43569f7 commit 748ed74
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 28 deletions.
16 changes: 2 additions & 14 deletions resources/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
FROM alpine:3.16.2
FROM alpine:latest
WORKDIR /root
RUN sh -c "echo https://mirrors.edge.kernel.org/alpine/v3.16.2/community >> /etc/apk/repositories"
RUN apk add git curl python3 openssl openssl-dev perl linux-headers make gcc musl-dev patch patchelf
RUN apk add git curl python3 openssl openssl-dev perl linux-headers make gcc musl-dev patch patchelf py3-pip
RUN curl --proto '=https' --tlsv1.2 -sSf -o rustup https://sh.rustup.rs
RUN sh ./rustup -y
COPY build-openssl.sh .
RUN sh ./build-openssl.sh
RUN curl https://files.pythonhosted.org/packages/b1/77/75f6543eafdffc0b3f07f99682497bea817ef0b6c361fe72b932eb82459c/setuptools-62.2.0.tar.gz | tar xzvf -
COPY wheel.diff setuptools-62.2.0
RUN cd setuptools-62.2.0 && patch -p1 < wheel.diff
RUN curl https://files.pythonhosted.org/packages/99/bb/696e256f4f445809f25efd4e4ce42ff99664dc089cafa1e097d5fec7fc33/pip-22.1.tar.gz | tar xzvf -
RUN sh -c "cd setuptools-62.2.0 && python3 setup.py install"
RUN curl https://files.pythonhosted.org/packages/99/bb/696e256f4f445809f25efd4e4ce42ff99664dc089cafa1e097d5fec7fc33/pip-22.1.tar.gz | tar xzvf -
RUN sh -c "cd pip-22.1 && python3 setup.py install"
RUN pip install maturin[patchelf]
RUN pip install maturin
WORKDIR /root/clvm_tools_rs
COPY ./build-alpine.sh /root
3 changes: 3 additions & 0 deletions resources/alpine/build-alpine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@

. $HOME/.cargo/env
cd /root/clvm_tools_rs
python3 -m venv venv
source ./venv/bin/activate
pip install maturin[patchelf]
CC=gcc maturin build --release --strip --compatibility musllinux_1_1 --target x86_64-unknown-linux-musl
14 changes: 0 additions & 14 deletions resources/alpine/build-openssl.sh

This file was deleted.

0 comments on commit 748ed74

Please sign in to comment.