From 2e60f348856dab09d0c363b2dfdc1e750da503b8 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 5 Feb 2024 18:27:57 -0500 Subject: [PATCH] added dockerfile for galacticfactory's documentation --- .forgejo/workflows/build.yaml | 20 +++++++++++++++++++ GalacticFactory/Dockerfile | 36 +++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 GalacticFactory/Dockerfile diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 34a3738..8e3aebf 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -6,6 +6,26 @@ on: manual: jobs: + Build GalacticFactory: + runs-on: docker + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + token: ${{ secrets.COASTALCOMMITSTOKEN }} + - name: Login to CoastalCommits + uses: actions/docker-login@v3 + with: + registry: coastalcommits.com + username: SeaswimmerTheFsh + password: ${{ secrets.COASTALCOMMITSTOKEN }} + - name: Build and push Docker image + uses: actions/docker-build-push@v5 + with: + context: . + file: ./GalacticFactory/Dockerfile + push: true + tags: coastalcommits.com/galacticfactory/documentation:latest Build GalaxyCogs: runs-on: docker container: catthehacker/ubuntu:act-latest diff --git a/GalacticFactory/Dockerfile b/GalacticFactory/Dockerfile new file mode 100644 index 0000000..f202b65 --- /dev/null +++ b/GalacticFactory/Dockerfile @@ -0,0 +1,36 @@ +FROM catthehacker/ubuntu:act-latest + +# Install APT packages + +RUN apt-get update +RUN apt-get install -y \ + libcairo2-dev \ + libfreetype6-dev \ + libffi-dev \ + libjpeg-dev \ + libpng-dev \ + libz-dev \ + pngquant \ + python3.10-dev + +# Install Nodejs + +RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \ + apt-get install -y nodejs && \ + node --version + +# Install Meli CLI + +RUN npm install -g @getmeli/cli@1.2.0 + +# Install Poetry + +RUN pip install -U click packaging colorama zipp distro importlib-metadata +RUN pip install poetry +RUN poetry config virtualenvs.create false + +# Install dependencies + +RUN curl -sSL https://coastalcommits.com/GalacticFactory/GalacticFactory/raw/branch/master/pyproject.toml -o pyproject.toml +RUN curl -sSL https://coastalcommits.com/GalacticFactory/GalacticFactory/raw/branch/master/poetry.lock -o poetry.lock +RUN poetry install --no-root