From 181059486165749519d9707833822d1495d157e0 Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Sat, 24 Dec 2022 14:04:37 +0100 Subject: [PATCH] bastion: move images arround so it can be build for arm64. --- .github/workflows/bot.yml | 55 ++++++++++++++++++++------------------- bot/bastion/Dockerfile | 17 ++++++------ 2 files changed, 36 insertions(+), 36 deletions(-) diff --git a/.github/workflows/bot.yml b/.github/workflows/bot.yml index ba9b0fe..133cbe0 100644 --- a/.github/workflows/bot.yml +++ b/.github/workflows/bot.yml @@ -19,6 +19,7 @@ jobs: - parkertron - red - sinusbot + - bastion steps: - uses: actions/checkout@v3 - uses: docker/setup-buildx-action@v2 @@ -56,30 +57,30 @@ jobs: rm -rf /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cache - pushAmd: - name: "yolks:bot_${{ matrix.tag }}" - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - tag: - - bastion - steps: - - uses: actions/checkout@v2 - - uses: docker/setup-buildx-action@v1 - with: - version: "v0.7.0" - buildkitd-flags: --debug - - uses: docker/login-action@v1 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.REGISTRY_TOKEN }} - - uses: docker/build-push-action@v2 - with: - context: ./bot/${{ matrix.tag }} - file: ./bot/${{ matrix.tag }}/Dockerfile - platforms: linux/amd64 - push: true - tags: | - ghcr.io/parkervcp/yolks:bot_${{ matrix.tag }} + # pushAmd: + # name: "yolks:bot_${{ matrix.tag }}" + # runs-on: ubuntu-latest + # strategy: + # fail-fast: false + # matrix: + # tag: + # - bastion + # steps: + # - uses: actions/checkout@v2 + # - uses: docker/setup-buildx-action@v1 + # with: + # version: "v0.7.0" + # buildkitd-flags: --debug + # - uses: docker/login-action@v1 + # with: + # registry: ghcr.io + # username: ${{ github.repository_owner }} + # password: ${{ secrets.REGISTRY_TOKEN }} + # - uses: docker/build-push-action@v2 + # with: + # context: ./bot/${{ matrix.tag }} + # file: ./bot/${{ matrix.tag }}/Dockerfile + # platforms: linux/amd64 + # push: true + # tags: | + # ghcr.io/parkervcp/yolks:bot_${{ matrix.tag }} diff --git a/bot/bastion/Dockerfile b/bot/bastion/Dockerfile index d50635c..056a813 100644 --- a/bot/bastion/Dockerfile +++ b/bot/bastion/Dockerfile @@ -1,15 +1,14 @@ -FROM --platform=$TARGETOS/$TARGETARCH node:18-bullseye +FROM --platform=$TARGETOS/$TARGETARCH mongo:6-focal LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" -## install mongo -RUN wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | apt-key add - \ - && echo "deb http://repo.mongodb.org/apt/debian bullseye/mongodb-org/6.0 main" | tee /etc/apt/sources.list.d/mongodb-org-6.0.list \ - && apt update \ - && apt install -y mongodb-org mongodb-org-server mongodb-org-shell mongodb-org-mongos mongodb-org-tools \ - ## install bastion reqs - && apt install -y python3 build-essential git libtool netcat ffmpeg iproute2 curl tzdata \ +## install nodejs 18 +RUN apt update && apt install --no-install-recommends -y curl \ + && curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \ + && apt install -y nodejs \ && npm install -g npm@latest \ + ## install bastion reqs + && apt install -y python3 build-essential git libtool netcat ffmpeg iproute2 tzdata \ ## add container user && useradd -d /home/container -m container -s /bin/bash @@ -18,4 +17,4 @@ ENV USER=container HOME=/home/container WORKDIR /home/container COPY ./entrypoint.sh /entrypoint.sh -CMD ["/bin/bash", "/entrypoint.sh"] +CMD ["/bin/bash", "/entrypoint.sh"] \ No newline at end of file