Installation/Setup (Devel system)
Prepare your local system:
$ sudo zypper in docker docker-compose gcc python3-devel jq make
Check out the sources:
$ git clone git@github.com:openSUSE/orthos2.git $ cd orthos2/
Create the virtual Python environment, activate it and update pip
$ python3 -m venv .venv $ . .venv/bin/activate $ pip install --upgrade pip Collecting pip ...
Install the required Python modules for development:
$ pip install -r requirements-devel.txt -r docs/requirements.docs.txt Collecting django ...
Generate the required secrets to bring up the Docker Compose Stack:
$ python3 docker/manage-secrets.py
Setting up the SSC credentials for docker:
(if you don’t use Docker click here for more information)
Create a file for credentials (line for line):
$ cat <<EOF > ./docker/secrets/SCCcredentials username=SCC_xxx password=xxx system_token=xxx EOF
Run the test server:
$ make up-dev
If you wish to test for the production environment instead, use the
Makefiletarget below. It automatically provisions a NetBox API token as thedocker/secrets/NetboxTokenDocker secret before starting the stack, so no manual steps are needed:$ make up-testing
Edit your
/etc/hostsfile and include the following line:127.0.0.1 authentik.orthos2.test orthos2.orthos2.test cobbler.orthos2.test netbox.orthos2.test testmachine.orthos2.test
- Open your browser and go to http://orthos2.orthos2.test.
- Now you have to change the URL from:
- to:
LogIn: you can find the login password for the admin user in
./docker/orthos/orthos2dev.envEnjoy.