bastion: move images arround so it can be build for arm64.
This commit is contained in:
55
.github/workflows/bot.yml
vendored
55
.github/workflows/bot.yml
vendored
@@ -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 }}
|
||||
|
@@ -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"]
|
Reference in New Issue
Block a user