Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Install a new VM with docker/docker-compose. Create a new docker-compose.yaml file similar to this:

Code Block
languageyml
version: '3.7'

...


services:
 

...

 cnaas_front:
   

...

 image: docker.sunet.se/cnaas/front:latest
 

...

   ports:

...


      - 443:4443
   

...

 environment:

...


      - 

...

CNAAS_API_

...

URL=
      - CNAAS_

...

AUTH_URL=

...


      - CNAAS_

...

FRONT_URL=
    volumes:
      - type: volume
        source: cnaas-front-cert
        target: /opt/cnaas/cert
volumes:
  cnaas-front-cert:
    external: true

Insert URL to API and AUTH like: https://cnaas-nms-vm.myorg.com/ and httpsand https://cnaas-auth-vm.myorg.com/

GITREPO_ETC is not used yet.

Start the container and start a shell running inside the container. Create the file .env in /opt/cnaas with the following contents:

API_URL=CNAAS_FRONT_URL should be the URL to the WebUI (this VM), for example: https://cnaas-front-vm.myorg.com/

Run the following commands to rebuild the WebUI for your URL path:

Before starting the VM you need to create the external volume for saving the SSL certificates:

docker volume create cnaas-front-cert

You can use docker cp to copy a properly signed certificate into /opt/cnaas/cert/cnaasfront_combined.crt and cnaasfront.keynpm run-script build