Compare commits

16 Commits

Author SHA1 Message Date
Kyle Speight 1facecad09 Update Dockerfile 2026-05-30 03:33:24 -07:00
Kyle Speight 235a111a5a Update Dockerfile 2026-05-30 03:31:42 -07:00
Kyle Speight 3e6f1579bb Update Dockerfile 2026-05-30 03:22:46 -07:00
Kyle Speight dc89aa89fe Update Dockerfile 2026-05-30 03:20:30 -07:00
Kyle Speight 7da2232fbb Update Dockerfile 2026-05-30 03:17:14 -07:00
Kyle Speight 8b0c53a3df Update Dockerfile 2026-05-30 03:07:44 -07:00
Kyle Speight e0966c0006 Update GitHub workflows; add tarkov installer
Rename workflow job names from the old "yolks:*" convention to explicit component prefixes (apps, base, bot, box64, bun, tarkov) and adjust GHCR tag/owner checks to reference the 2sharkystudios organization where applicable. Add a basic tarkov/installer.sh file. Streamline the tarkov v4.0.11 Dockerfile by consolidating apt installs, retaining apt list cleanup, refining .NET and PowerShell install steps, and improving build artifact handling (move outputs to /home/container, cleanup workspace and /build).
2026-05-30 02:52:57 -07:00
Kyle Speight 87c5425cdb Restrict Docker build platforms to linux/amd64 2026-05-29 23:36:55 -07:00
Kyle Speight 527153385d Update Dockerfile 2026-05-29 23:32:02 -07:00
Kyle Speight b608435991 Update Dockerfile 2026-05-29 23:28:22 -07:00
Kyle Speight 88cc1ba127 Update Dockerfile 2026-05-29 23:25:26 -07:00
Kyle Speight 4ee6936730 Simplify PowerShell installation in Dockerfile
Removed the previous PowerShell installation method and added a simpler snap installation command.
2026-05-29 23:18:59 -07:00
Kyle Speight 914e236a3b Fix PowerShell installation for Ubuntu codename mapping 2026-05-29 23:13:51 -07:00
Kyle Speight 09de26ef7c Update Dockerfile for prerequisites and PowerShell install 2026-05-29 23:10:42 -07:00
Kyle Speight c80f2650b6 Update Dockerfile 2026-05-29 23:08:08 -07:00
Kyle Speight dd8aaffa23 Update PowerShell installation to Ubuntu 24.04 2026-05-29 23:01:13 -07:00
9 changed files with 75 additions and 63 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ permissions:
jobs:
push:
name: "yolks:apps_${{ matrix.app }}"
name: "apps:${{ matrix.app }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
@@ -47,4 +47,4 @@ jobs:
push: true
tags: |
ghcr.io/${{ steps.lower-repo.outputs.repository }}/apps:${{ matrix.app }}
${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/apps:{0}', matrix.app) || '' }}
${{ github.repository_owner == '2sharkystudios' && format('ghcr.io/2sharkystudios/apps:{0}', matrix.app) || '' }}
+3 -3
View File
@@ -13,7 +13,7 @@ permissions:
jobs:
push:
name: "yolks:${{ matrix.oses }}"
name: "base:${{ matrix.oses }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
@@ -44,5 +44,5 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/${{ steps.lower-repo.outputs.repository }}/yolks:${{ matrix.oses }}
${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/yolks:{0}', matrix.oses) || '' }}
ghcr.io/${{ steps.lower-repo.outputs.repository }}/base:${{ matrix.oses }}
${{ github.repository_owner == '2sharkystudios' && format('ghcr.io/parkervcp/base:{0}', matrix.oses) || '' }}
+4 -4
View File
@@ -13,7 +13,7 @@ permissions:
jobs:
pushArm:
name: "yolks:bot_${{ matrix.tag }}"
name: "bot:${{ matrix.tag }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
@@ -57,8 +57,8 @@ jobs:
cache-to: type=local,dest=/tmp/.buildx-cache-new
push: true
tags: |
ghcr.io/${{ steps.lower-repo.outputs.repository }}/yolks:bot_${{ matrix.tag }}
${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/yolks:bot_{0}', matrix.tag) || '' }}
ghcr.io/${{ steps.lower-repo.outputs.repository }}/bot:${{ matrix.tag }}
${{ github.repository_owner == '2sharkystudios' && format('ghcr.io/parkervcp/bot:{0}', matrix.tag) || '' }}
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
@@ -90,4 +90,4 @@ jobs:
# platforms: linux/amd64
# push: true
# tags: |
# ${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/yolks:bot_{0}', matrix.tag) || '' }}
# ${{ github.repository_owner == '2sharkystudios' && format('ghcr.io/2sharkystudios/bot:bot_{0}', matrix.tag) || '' }}
+3 -3
View File
@@ -13,7 +13,7 @@ permissions:
jobs:
push:
name: "yolks:${{ matrix.tag }}"
name: "box64:${{ matrix.tag }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
@@ -42,5 +42,5 @@ jobs:
platforms: linux/arm64
push: true
tags: |
ghcr.io/${{ steps.lower-repo.outputs.repository }}/yolks:${{ matrix.tag }}
${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/yolks:{0}', matrix.tag) || '' }}
ghcr.io/${{ steps.lower-repo.outputs.repository }}/box64:${{ matrix.tag }}
${{ github.repository_owner == '2sharkystudios' && format('ghcr.io/2sharkystudios/box64:{0}', matrix.tag) || '' }}
+3 -3
View File
@@ -13,7 +13,7 @@ permissions:
jobs:
push:
name: "yolks:bun_${{ matrix.tag }}"
name: "bun:${{ matrix.tag }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
@@ -43,5 +43,5 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/${{ steps.lower-repo.outputs.repository }}/yolks:bun_${{ matrix.tag }}
${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/yolks:bun_{0}', matrix.tag) || '' }}
ghcr.io/${{ steps.lower-repo.outputs.repository }}/bun:${{ matrix.tag }}
${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/bun:{0}', matrix.tag) || '' }}
+4 -4
View File
@@ -13,7 +13,7 @@ permissions:
jobs:
push:
name: "tarkov:tarkov_${{ matrix.tag }}"
name: "tarkov:${{ matrix.tag }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
@@ -40,8 +40,8 @@ jobs:
with:
context: ./tarkov
file: ./tarkov/${{ matrix.tag }}/Dockerfile
platforms: linux/amd64,linux/arm64
platforms: linux/amd64
push: true
tags: |
ghcr.io/${{ steps.lower-repo.outputs.repository }}/tarkov:tarkov_${{ matrix.tag }}
${{ github.repository_owner == '2sharkystudios' && format('ghcr.io/2sharkystudios/yolks:tarkov_{0}', matrix.tag) || '' }}
ghcr.io/${{ steps.lower-repo.outputs.repository }}/tarkov:${{ matrix.tag }}
${{ github.repository_owner == '2sharkystudios' && format('ghcr.io/2sharkystudios/tarkov:{0}', matrix.tag) || '' }}
+1 -1
View File
@@ -31,4 +31,4 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN apt update \
&& apt upgrade -y \
&& apt -y --no-install-recommends install ca-certificates curl git unzip zip tar jq
&& apt -y --no-install-recommends install ca-certificates curl git unzip zip tar jq sudo
+2
View File
@@ -0,0 +1,2 @@
#!bin/bash
+53 -43
View File
@@ -1,20 +1,16 @@
FROM --platform=$TARGETOS/$TARGETARCH ghcr.io/2sharkystudios/yolks:ubuntu
# ==========================================
# STAGE 1: BUILDER
# ==========================================
FROM --platform=$TARGETOS/$TARGETARCH ghcr.io/2sharkystudios/base:ubuntu AS builder
LABEL author="Kyle Speight" maintainer="chillcog3142@proton.me"
ENV DEBIAN_FRONTEND=noninteractive
# 1. CRITICAL: Install CA Certificates and GPG tools FIRST
# This fixes the "exit code 100" (SSL/Download failure)
RUN apt-get update && apt-get install -y \
ca-certificates \
gnupg \
lsb-release \
wget \
curl \
RUN apt-get update \
&& apt-get install -y ca-certificates gnupg lsb-release wget curl git git-lfs iproute2 libgdiplus tini software-properties-common \
&& rm -rf /var/lib/apt/lists/*
# 2. Install .NET SDK
RUN wget -q https://dot.net/v1/dotnet-install.sh \
&& chmod +x dotnet-install.sh \
&& D_V="$(curl -sSL https://dotnet.microsoft.com/en-us/download/dotnet/9.0 | grep -i '<h3 id="sdk-9.*">SDK 9.*.*</h3>' | head -1 | awk -F\" '{print $3}' | awk '{print $2;}' | sed 's/<\/h3>//g')" \
@@ -22,48 +18,62 @@ RUN wget -q https://dot.net/v1/dotnet-install.sh \
&& ln -s /usr/share/dotnet /usr/bin/dotnet \
&& rm dotnet-install.sh
# 3. Install PowerShell (Using the Ubuntu 22.04 repo)
# We add the repo manually to ensure it's correct
RUN wget -q https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb \
&& dpkg -i packages-microsoft-prod.deb \
&& rm packages-microsoft-prod.deb \
# Force update again to ensure the new repo is picked up
RUN mkdir -p /etc/apt/keyrings \
&& curl -sSL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor -o /etc/apt/keyrings/microsoft-prod.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/microsoft-prod.gpg] https://packages.microsoft.com/repos/microsoft-ubuntu-jammy-prod jammy main" > /etc/apt/sources.list.d/microsoft-prod.list \
&& apt-get update \
&& apt-get install -y powershell
# 4. Install remaining dependencies
RUN apt-get update && apt-get install -y \
git \
git-lfs \
iproute2 \
libgdiplus \
tini \
software-properties-common \
&& apt-get install -y powershell \
&& rm -rf /var/lib/apt/lists/*
# 5. Clone, Build, and Cleanup
RUN mkdir -p /workspace/ /build/ \
&& cd /workspace \
&& git clone https://github.com/2SharkyStudios/SPT-Server-Build.git /workspace/git \
&& cd /workspace/git/ \
&& git lfs pull \
&& cd /workspace/git/SPTarkov.Server/ \
&& dotnet restore \
&& dotnet publish -o /build/ -c Release -p:SptBuildType=RELEASE -p:SptVersion=4.0.11 \
&& rm -rf /workspace/
WORKDIR /home/container/git
RUN git clone https://github.com/2SharkyStudios/SPT-Server-Build.git . \
&& git lfs pull
# 6. Move build output to user home
RUN mv /build/* /home/container/ 2>/dev/null || true \
&& chown -R container:container /home/container/
WORKDIR /home/container/git/SPTarkov.Server/
RUN dotnet restore \
&& dotnet build -o /home/container/build/ -c Release -p:SptBuildType=RELEASE -p:SptVersion=4.0.11
# ==========================================
# STAGE 2: RUNTIME
# ==========================================
FROM --platform=$TARGETOS/$TARGETARCH ghcr.io/2sharkystudios/base:ubuntu AS runtime
LABEL author="Kyle Speight" maintainer="chillcog3142@proton.me"
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y ca-certificates gnupg lsb-release wget curl \
&& rm -rf /var/lib/apt/lists/*
RUN wget -q https://dot.net/v1/dotnet-install.sh \
&& chmod +x dotnet-install.sh \
&& D_V="$(curl -sSL https://dotnet.microsoft.com/en-us/download/dotnet/9.0 | grep -i '<h3 id="sdk-9.*">SDK 9.*.*</h3>' | head -1 | awk -F\" '{print $3}' | awk '{print $2;}' | sed 's/<\/h3>//g')" \
&& ./dotnet-install.sh -i /usr/share -v "$D_V" \
&& ln -s /usr/share/dotnet /usr/bin/dotnet \
&& rm dotnet-install.sh
RUN mkdir -p /etc/apt/keyrings \
&& curl -sSL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor -o /etc/apt/keyrings/microsoft-prod.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/microsoft-prod.gpg] https://packages.microsoft.com/repos/microsoft-ubuntu-jammy-prod jammy main" > /etc/apt/sources.list.d/microsoft-prod.list \
&& apt-get update \
&& apt-get install -y powershell \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update \
&& apt-get install -y iproute2 libgdiplus tini \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /home/container/
COPY --from=builder /home/container/build/ /home/container/
USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
STOPSIGNAL SIGINT
COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
STOPSIGNAL SIGINT
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
CMD ["/entrypoint.sh"]
CMD ["/entrypoint.sh"]