Make sure you have venv on your machine for creating virtual environments
sudo apt-get install python3-venv
Navigate to the folder where you want to hold application (example, ~/django)
mkdir ~/django && cd ~/django
Download the repository, create a virtual environment, install pre-reqs
git clone git@gitlab.conted.ox.ac.uk:django/redpot-unchained.git
cd redpot-unchained
sudo apt install $(cat ./dependencies.txt)
python3 -m venv .venv
source .venv/bin/activate
pip3 install -r requirements.txt
Get a copy of the secrets file, containing dev database login details, etc.
scp <your_username>@deltamap:/home/www-data/django/redpot/secrets.env .
Start up the server
python3 manage.py runserver 0.0.0.0:8080
View the application in browser at http://<your_server>:8080
or localhost:8080
First, install docker and docker-compose
Navigate to the folder where you want to hold application (example, ~/docker)
mkdir ~/docker && cd ~/docker
Download the repository
git clone git@gitlab.conted.ox.ac.uk:django/redpot-unchained.git
cd redpot-unchained
Get a copy of the dev secrets file, containing dev database login details, ldap, etc.
scp <your_username>@deltamap:/home/www-data/django/redpot/secrets.env .
Build and start the container
sudo docker-compose up --build -d django
Build and start the containers
sudo docker-compose up --build -d
Create the empty database
sudo docker-compose exec mssql /opt/mssql-tools/bin/sqlcmd -U sa -P Test@only -Q "CREATE DATABASE redpot;"
Create the database structure
sudo docker-compose exec django python manage.py migrate
Create a superuser
sudo docker-compose exec django python manage.py createsuperuser
Choose username, email, and password when prompted. Now you can login!
View the application in browser at http://<your_server>:8000
or localhost:8000
You're now running redpot!