From db821b6d8bf1df65173bf9c07fbd41ce9aada9d9 Mon Sep 17 00:00:00 2001 From: Lauren Kaviak Date: Fri, 20 Mar 2026 00:11:25 -0500 Subject: [PATCH] first effort --- .dockerignore | 9 +++++++++ .gitea/workflows/release-image.yaml | 17 +++++++++++++++++ Dockerfile | 7 +++++++ setup.sh | 8 ++++++++ 4 files changed, 41 insertions(+) create mode 100644 .dockerignore create mode 100644 .gitea/workflows/release-image.yaml create mode 100644 Dockerfile create mode 100644 setup.sh diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..afaeb15 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,9 @@ +* +!setup.sh + +# Ignore unnecessary files inside allowed directories +# This should go after the allowed directories +**/*~ +**/*.log +**/.DS_Store +**/Thumbs.db \ No newline at end of file diff --git a/.gitea/workflows/release-image.yaml b/.gitea/workflows/release-image.yaml new file mode 100644 index 0000000..c5c69a9 --- /dev/null +++ b/.gitea/workflows/release-image.yaml @@ -0,0 +1,17 @@ +on: [push] + +name: Continuous Releases + +env: + IMAGE_TAG: ci-rust-img + UBUNTU_VERSION: latest + +jobs: + publish_image: + name: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - run: docker build . -t ${{ env.IMAGE_TAG }} --build-arg UBUNTU_VERSION=${{ UBUNTU_VERSION }} \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6d8108a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +ARG UBUNTU_VERSION=latest +FROM ubuntu:${UBUNTU_VERSION} +LABEL AUTHOR=Lauren +WORKDIR /opt/setup +RUN apt update +COPY setup.sh /opt/setup/setup.sh +RUN bash /opt/setup/setup.sh \ No newline at end of file diff --git a/setup.sh b/setup.sh new file mode 100644 index 0000000..a141d1a --- /dev/null +++ b/setup.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +apt install -y mingw-w64 curl +curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y +export PATH=$PATH:/root/.cargo/bin +rustup toolchain install stable +rustup target add x86_64-pc-windows-gnu +rustup target add aarch64-apple-darwin +rustup target add x86_64-unknown-linux-gnu \ No newline at end of file