Add special Dockerfile for tiny coordinator (<10Mib) and worker (<150Mib) containers

This commit is contained in:
Sergey Stepanov 2023-04-24 21:04:37 +03:00 committed by sergystepanov
parent b227260060
commit 1dc0cabc2b
9 changed files with 146 additions and 122 deletions

View file

@ -1,28 +0,0 @@
#!/usr/bin/env bash
deps="$1"
echo This script should install application dependencies for Debian-based systems
if [ $(id -u) -ne 0 ]
then
echo "error: run with sudo or root"
exit 1
fi
apt-get -qq update
if [ "$deps" = "x11-only" ]; then
apt-get -qq install --no-install-recommends -y \
ca-certificates \
libgl1-mesa-dri \
xvfb
else
apt-get -qq install --no-install-recommends -y \
ca-certificates \
libvpx7 \
libx264-164 \
libopus0 \
libgl1-mesa-dri \
xvfb
fi
apt-get clean
apt-get autoremove

14
scripts/mkdirs.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/sh
app="$1"
echo Making application runtime directories
mkdir -p ./assets/cache
mkdir -p ./assets/games
mkdir -p ./.cr
if [ "$app" = "worker" ]; then
mkdir -p ./assets/cores
mkdir -p ./libretro
fi