From cf049148dfbe4d8349901cfc9f2881435a7c954e Mon Sep 17 00:00:00 2001 From: Matthew Pomes Date: Mon, 1 Sep 2025 21:55:04 -0500 Subject: [PATCH] Initial commit, rustup image --- .gitea/workflows/publish.yaml | 44 +++++++++++++++++++++++++++++++++++ rustup/Dockerfile | 32 +++++++++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 .gitea/workflows/publish.yaml create mode 100644 rustup/Dockerfile diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml new file mode 100644 index 0000000..bc78968 --- /dev/null +++ b/.gitea/workflows/publish.yaml @@ -0,0 +1,44 @@ +name: publish + +on: + push: + branches: main + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - + name: Login to Docker Hub + uses: docker/login-action@v3 + with: + registry: gitea.loadingm.xyz + username: "the10thwiz" + password: ${{ secrets.PACKAGE_TOKEN }} + # - + # name: Set up QEMU + # uses: docker/setup-qemu-action@v3 + # - + # name: Set up Docker Buildx + # uses: docker/setup-buildx-action@v3 + - + name: Build and push + uses: docker/build-push-action@v6 + with: + push: true + build-args: TOOLCHAIN=stable + tags: gitea.loadingm.xyz/the10thwiz/rustup:stable,gitea.loadingm.xyz/the10thwiz/rustup:latest + - + name: Build and push + uses: docker/build-push-action@v6 + with: + push: true + build-args: TOOLCHAIN=beta + tags: gitea.loadingm.xyz/the10thwiz/rustup:beta + - + name: Build and push + uses: docker/build-push-action@v6 + with: + push: true + build-args: TOOLCHAIN=nightly + tags: gitea.loadingm.xyz/the10thwiz/rustup:nightly diff --git a/rustup/Dockerfile b/rustup/Dockerfile new file mode 100644 index 0000000..1dee22a --- /dev/null +++ b/rustup/Dockerfile @@ -0,0 +1,32 @@ +FROM node:latest + +MAINTAINER Matthew Pomes + +WORKDIR /root + +# common packages +RUN apt-get update && \ + apt-get install --no-install-recommends -y \ + ca-certificates curl file \ + build-essential \ + autoconf automake autotools-dev libtool xutils-dev && \ + rm -rf /var/lib/apt/lists/* + +# ENV SSL_VERSION=1.0.2u + +# RUN curl https://www.openssl.org/source/openssl-$SSL_VERSION.tar.gz -O && \ +# tar -xzf openssl-$SSL_VERSION.tar.gz && \ +# cd openssl-$SSL_VERSION && ./config && make depend && make install && \ +# cd .. && rm -rf openssl-$SSL_VERSION* + +# ENV OPENSSL_LIB_DIR=/usr/local/ssl/lib \ +# OPENSSL_INCLUDE_DIR=/usr/local/ssl/include \ +# OPENSSL_STATIC=1 + +ARG TOOLCHAIN + +# install toolchain +RUN curl https://sh.rustup.rs -sSf | \ + sh -s -- --default-toolchain $TOOLCHAIN -y + +ENV PATH=/root/.cargo/bin:$PATH