Skip to content

AERPAW-Platform-Control/deploy-portal-services

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deploy Portal Services

THIS DOCUMENT IS A WORK IN PROGRESS

About

AERPAW Ops consists of 3 separate repositories for UI components deployed under a unified docker compose definition at a single URL endpoint

Configuration

Directories for storing application data (preferably outside of repo, say in /var)

/var/aerpaw/data
  |_ django_data    # Django data (contents created at runtime)
      |_ static     # Static files - served by Nginx directly
      |_ media      # Media files - served by Nginx directly
  |_ gateway_data   # Gateway data (contents added by user)
      |_ .bssw      # See gateway repo for details
  |_ gitea_data     # Gitea data (contents created at runtime)
  |_ jenkins_home   # Jenkins data (contents created at runtime)
  |_ logs           # Log output from all apps
  |_ pg_data        # Postgres data (contents created at runtime)

Deploy

Start all containers

docker-compose pull
docker-compose build
docker-compose up -d

Create initial account in Django

### from within the aerpaw-portal container ###
python manage.py createsuperuser

Example Output

$ docker exec -ti aerpaw-portal /bin/bash
root@0a0246a2d761:/code# source .venv/bin/activate
(.venv) root@0a0246a2d761:/code# python manage.py createsuperuser
Username: admin
Email address: [email protected]
Password:
Password (again):
Superuser created successfully.
(.venv) root@0a0246a2d761:/code# exit
exit

Create initial account in Gitea

cd scripts/
./gitea-create-user.sh

Example Output

$ ./gitea-create-user.sh
[email protected]
GITEA_ADMIN_ID=aerpaw
GITEA_ADMIN_PASSWORD=password123!
GITEA_APP_NAME=AERPAW Experimeter Gitea
GITEA_DISABLE_REGISTRATION=true
GITEA_INSTALL_LOCK=true
GITEA_ROOT_URL=https://127.0.0.1:8443/gitea/
GITEA_SSH_AGENT_PORT=3022
GITEA_USER_GID=1000
GITEA_USER_UID=1000
LOCAL_GITEA_DATA=./data/gitea_data
2021/07/01 08:27:08 ...dules/setting/git.go:101:newGit() [I] Git Version: 2.30.2, Wire Protocol Version 2 Enabled
New user 'aerpaw' has been successfully created!
2021/07/01 08:27:09 ...dules/setting/git.go:101:newGit() [I] Git Version: 2.30.2, Wire Protocol Version 2 Enabled
ID   Username Email            IsActive IsAdmin
1    aerpaw   [email protected] true     true

Jenkins configuration

Create API Token

Example API Token

token name: aerpaw-api
token value: 1189521f4d3a05c7df2b6244b630ac75a9

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages