Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
Add docker utility script
Browse files Browse the repository at this point in the history
  • Loading branch information
marqdevx committed Oct 17, 2023
1 parent 49d5b7a commit 9b88d5d
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions docker-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Script to install needed stuff to compile metamod addon

# docker pull registry.gitlab.steamos.cloud/steamrt/scout/sdk
# docker run -v D:\repos:/dockerVolume -it <imageID>

export HL2SDKCS2='/dockerVolume/mm-cs2-scrim/sdk'
export MMSOURCE_DEV='/dockerVolume/metamod-source'
export CC=clang
export CXX=clang++

echo --------------------------------------------------------------------------
echo Starting steam sniper compilator for metamod
echo

apt-get update
apt-get install python3-setuptools -y
apt-get install clang -y
apt-get install python3 -y
apt-get install gcc -y

cd "/dockerVolume/ambuild"
python3 setup.py install

cd "/dockerVolume/mm-cs2-scrim"
mkdir build
cd build

python3 ../configure.py --sdks cs2 --targets x86_64
ambuild


# Copy files to the deploy folder
todaysDate=$(date +%d-%b-%H_%M)
#mkdir ../../dockerVolume/$todaysDate
#DEPLOY_FOLDER=../../dockerVolume/$todaysDate

echo finished
echo $todaysDate

0 comments on commit 9b88d5d

Please sign in to comment.