mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-01-23 10:35:44 +00:00
Add special Dockerfile for tiny coordinator (<10Mib) and worker (<150Mib) containers
This commit is contained in:
parent
b227260060
commit
1dc0cabc2b
9 changed files with 146 additions and 122 deletions
|
|
@ -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
14
scripts/mkdirs.sh
Executable 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
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue