ref: [Install Docker Engine on Ubuntu](https://docs.docker.com/engine/install/ubuntu/)
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu eoan stable"
sudo apt-get install docker-ce docker-ce-cli containerd.io
sudo apt install docker-compose
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
sudo systemctl enable docker
docker-compose -f postgres.yml up
CREATE USER pims WITH
LOGIN
SUPERUSER
NOCREATEDB
NOCREATEROLE
INHERIT
NOREPLICATION
CONNECTION LIMIT -1
PASSWORD 'p1m5';
CREATE DATABASE pims
WITH
OWNER = pims
ENCODING = 'UTF8'
CONNECTION LIMIT = -1;
ALTER DATABASE pims OWNER TO pims;
- install pip and virtualenv
wget https://bootstrap.pypa.io/get-pip.py
python3 get-pip.py
sudo pip install -U pip
sudo pip install virtualenv
git clone <url>
virtualenv pims
cd pims
source bin/activate
pip install django
pip install psycopg2-binary
pip install pika
pip install coverage
python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py createsuperuser
python3 manage.py runserver
cd pims
source bin/activate
python3 manage.py runserver
sudo apt-get install python-dev
sudo pip install https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v1.5/pip/pgadmin4-1.5-py2.py3-none-any.whl