This repository provides a central location that contains sub-modules related to the programmatic environment for the Nebraska GenCyber Camp
- Docker (https://www.docker.com/)
You need to build the docker image from the provided DockerFile using Docker Compose. To do this, ensure docker is running, and then:
git clone --recursive https://github.com/MLHale/nebraska-gencyber-dev-env.git
cd nebraska-gencyber-dev-env
docker-compose build
This creates a few docker containers with all of the requisite installed dependencies to run the dev environment.
First, upon initial install, you need to do some basic setup.
We need to initialize the Django database in postgres
docker-compose run django bash
python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser --username admin --email admin
exit
Specify a password for admin. In development, use admin1234 for simplicity.
docker-compose up
You can export data from postgres using the script:
docker-compose run db pg_dump -U postgres postgres | gzip > database-backup/backupfile-name.gz
docker-compose run db pg_dump -U postgres postgres | gzip > database-backup/restorefile-name.gz