Sign inSign up

structure101/dashboard

By structure101

Updated about 3 years ago

Structure101 Dashboard Application

Image
0

975

structure101/dashboard repository overview

Quick reference

What is Structure101?

Structure101 is a software architecture platform that bridges the architect / programmer divide to deliver the benefits of well-structured codebases with defined and communicated architecture.

Structure101

How to use this image

Run the following commands to run dashboard container

  • docker pull structure101/dashboard:latest

Once the image is pulled run the following to bring up the container

docker run -p 8080:8080 -e SYS_PROPS=<volume that you are mounting> -v<path to S101 repo on the host machine>:<volume that you are mounting> -it <dashboard image>

sample command to bring up the container

docker run -p 8080:8080 -e SYS_PROPS=/var/structure101-repositories/structure101-repository -v /Users/krishnakishore/Documents/work/s101/test-repos/qa-kw-bitcoin-demo/s101-repo/:/var/structure101-repositories/structure101-repository -it structure101/dashboard

How to enable https this image

Here you will find a docker compose file which brings up dashboard image and pass all required info environment variables and volumes. SSL can be enabled by passing required certs to the nginx docker image or any web server.

version: '3'
services:
  dotnetbuild:
    container_name: dotnet-build
    image: structure101/build-dotnet:latest
    volumes:
      - 'path to license file'
      - 'path to S101 repo '
  dashboard:
    container_name: S101-dashboard
    image: structure101/dashboard:latest
    restart: always
    environment:
      - SYS_PROPS=volume that is mounted on image
    volumes:
      - '<path to S101 repo on the host machine>:<volume that you are mounting>’
  proxy:
   container_name: nginx-proxy
   image: nginx:latest
   ports:
    - 80:80
    - 443:443
   volumes:
    - <path to config on the host machine>:<volume where config is mounted>
    - <path to certs on the host machine>:<volume where certs are mounted>
   links:
    - dashboard

Sample docker compose file

version: '3'
services:
  dotnetbuild:
    container_name: dotnet-build
    image: structure101/build-dotnet:latest
    volumes:
      - '/Users/XX/Library/Application Support/Structure101/dotnet:/root/.Structure101/dotnet'
      - '/Users/XX/Documents/work/s101/test-repos/eShopOnWeb/:/root/my-structure101-project/'
  dashboard:
    container_name: S101-dashboard
    image: structure101/dashboard:latest
    restart: always
    environment:
      - SYS_PROPS=/var/structure101-repositories/structure101-repository
    volumes:
      - '/Users/XX/Documents/work/s101/test-repos/eShopOnWeb/101-repo/:/var/structure101-repositories/structure101-repository'
  proxy:
   container_name: nginx-proxy
   image: nginx:latest
   ports:
    - 80:80
    - 443:443
   volumes:
    - ./nginx.conf:/etc/nginx/conf.d/default.conf
    - ./cert:/etc/nginx/certs/
   links:
    - dashboard

Sample nginx reverse proxy config

server {
    listen 80;
    listen  [::]:80;
    server_name  localhost;
    return 301 https://$host$request_uri;
}

server {
        listen 443 ssl;
        server_name localhost;

        ssl_certificate /etc/nginx/certs/nginx.crt;
        ssl_certificate_key /etc/nginx/certs/nginx.key;

        location / {
            proxy_pass http://dashboard:8080/;
            proxy_set_header Host $host:$server_port;
            proxy_set_header X-Forwarded-Host $server_name;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        }
}

Access it from browser using [https://hostip:443]

Tag summary

Content type

Image

Digest

sha256:d65584049

Size

392.2 MB

Last updated

about 3 years ago

docker pull structure101/dashboard