ScoringEngine for Red/White/Blue Team Competitions. Download Docker. If you are on Mac or Windows, Docker Compose will be automatically installed.
On Linux, make sure you have the latest version of Compose. If you’re using Docker for Windows on Windows 10 pro or later, you must also switch to Linux containers.
docker-compose build
docker-compose up
If you want to delete the database before starting, set the SCORINGENGINE_OVERWRITE_DB environment variable:
SCORINGENGINE_OVERWRITE_DB=true docker-compose up
We also provide the ability to run it in an ‘example’ mode. This means only the web ui runs, and the database is prepopulated with example data. Set the SCORINGENGINE_EXAMPLE environment variable to true:
SCORINGENGINE_EXAMPLE=true docker-compose up
The app will be running at http://localhost
Log in with any of the following logins at http://localhost:
whiteteamuser:testpass 
team1user1:testpass 
team2user1:testpass 
team2user2:testpass 
redteamuser:testpass
Installation
Note :It takes a minute or 2 for all of the containers to start up and get going!
TestBed Environment
make rebuild-testbed-new
This command will build, stop any pre-existing scoring engine containers, and start a new environment. As part of the environment, multiple containers will be used as part of the testbed environment.
Environment Variables
We use certain environment variables to control the functionality of certain docker containers.
You can set each environment variable before each command executed, for example:
SCORINGENGINE_EXAMPLE=true make rebuild-new
Production Environment
Modify the bin/competition.yaml file to configure the engine according to your competition environment. Then, run the following make command to build, and run the scoring engine.
Warning: This will delete the previous database, exclude the ‘new’ part from the command to not rebuild the db.
make rebuild-new
Then, to ‘pause’ the scoring engine (Ex: At the end of the day):
docker-compose -f docker-compose.yml stop engine
To ‘unpause’ the engine:
docker-compose -f docker-compose.yml start engine
Also Read – Lazydocker : The Lazier Way To Manage Everything Docker
Manual Setup
Note: Currently, the only OS we have documentation on is Ubuntu 16.04.
apt-get update 
apt-get install -y python3.5 wget git python3.5-dev build-essential libmysqlclient-dev 
useradd -m engine
wget -O /root/get-pip.py https://bootstrap.pypa.io/get-pip.py 
python3.5 /root/get-pip.py 
rm /root/get-pip.py 
pip install virtualenv 
su engine 
cd ~/ 
mkdir /home/engine/scoring_engine 
virtualenv -p /usr/bin/python3.5 /home/engine/scoring_engine/env 
git clone https://github.com/scoringengine/scoringengine /home/engine/scoring_engine/src
source /home/engine/scoring_engine/env/bin/activate pip install -e /home/engine/scoring_engine/src/
cp /home/engine/scoring_engine/src/engine.conf.inc /home/engine/scoring_engine/src/engine.conf 
vi /home/engine/scoring_engine/src/engine.conf 
mkdir /var/log/scoring_engine 
chown -R syslog:adm /var/log/scoring_engine 
cp /home/engine/scoring_engine/src/configs/rsyslog.conf /etc/rsyslog.d/10-scoring_engine.conf
systemctl restart rsyslog
In the rapidly expanding Internet of Things (IoT) ecosystem, billions of devices are constantly exchanging…
Have you ever come across a picture on the internet and wondered where it came…
Overview WhatsMyName is a free, community-driven OSINT tool designed to identify where a username exists…
Managing disk usage is a crucial task for Linux users and administrators alike. Understanding which…
Efficient disk space management is vital in Linux, especially for system administrators who manage servers…
Knowing how to check directory sizes in Linux is essential for managing disk space and…