Sign inSign up

openmbeeguest/mms-repo

By openmbeeguest

•Updated almost 5 years ago

mms-repo component of the openmbee project

Image
3

2.3K

openmbeeguest/mms-repo repository overview

This is the MMS-REPO component of the Model Management System: https://github.com/Open-MBEE⁠

⁠MMS docker compose

A Docker compose file to get mms running on http://localhost:8080⁠

⁠To use:

  • Install Docker
  • create the required data volumes as describe below
  • Save contents of docker compose file below as docker-compose.yml
  • switch to the same folder that has docker-compose.yml
  • Run the command: docker-compose up -d (the -d option will hide all the stdout messages generated by the containers. Remove the -d option to see the real-time​ message logs)
  • connect to http://localhost:8080/alfresco⁠ to see if things are running. It will take a minute for all the containers to spin up. Be patient.
  • View Editor is here: http://localhost:8080/alfresco/mmsapp/mms.html#/login⁠
    • login with admin:admin

To be useful you probably want MagicDraw, the MDK plugin, and a model. Installing and using those items is out of scope here. The MDK plugin version for MagicDraw is 3.3.6 and can be found here: https://bintray.com/openmbee/maven/mdk/3.3.6⁠

Run the following commands to create the required data volumes:

docker volume create alf_logs
docker volume create alfresco-data-volume
docker volume create postgres-data-volume
docker volume create activemq-data-volume
docker volume create activemq-log-volume
docker volume create activemq-conf-volume
docker volume create elastic-data-volume
docker volume create nginx-external-volume

begin docker compose file

version: '3.1'

# Generated on 04-03-2019

services:
  alfresco:
    image: openmbeeguest/mms-repo:3.4.2-SNAPSHOT
    container_name: v342-mms
    environment:
      - CATALINA_OPTS=-Xmx1G -XX:+UseConcMarkSweepGC
      - MMS_DB_USER=mms
      - MMS_DB_PASSWORD=mmspass
      - MMS_DB=mms
      - ALFRESCO_DB_USER=mms
      - ALFRESCO_DB_PASSWORD=mmspass
      - ALFRESCO_DB=alfresco
    depends_on:
      - postgresql
      - activemq
      - elastic
      - solr
    networks:
      - internal
    ports:
      - 8080:8080
    volumes:
      - alf_logs:/usr/local/tomcat/logs
      - alfresco-data-volume:/opt/alf_data
    tmpfs:
      - /tmp
      - /usr/local/tomcat/temp/
      - /usr/local/tomcat/work/

  solr:
    image: openmbeeguest/mms-solr:3.4.2-SNAPSHOT
    container_name: v342-solr
    environment:
      CATALINA_OPTS: "-Xmx1G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:G1HeapRegionSize=8m -XX:MaxGCPauseMillis=200"
    networks:
      - internal
    volumes:
      - alf_logs:/usr/local/tomcat/logs/
      - alfresco-data-volume:/opt/alf_data
    tmpfs:
      - /tmp
      - /usr/local/tomcat/temp/
      - /usr/local/tomcat/work/

  activemq:
    image: openmbeeguest/mms-activemq:3.4.2-SNAPSHOT
    container_name: v342-activemq
    ports:
      - 61616:61616
      - 61614:61614
      - 8161:8161
    volumes:
      - activemq-data-volume:/data/activemq
      - activemq-log-volume:/var/log/activemq
      - activemq-conf-volume:/opt/activemq/conf
    environment:
      - ACTIVEMQ_ADMIN_LOGIN admin
      - ACTIVEMQ_ADMIN_PASSWORD admin
    networks:
      - internal

  elastic:
    image: openmbeeguest/mms-elastic:3.4.2-SNAPSHOT
    container_name: v342-elastic
    environment:
      CLEAN: 'false'
    ports:
      - 9200:9200
    volumes:
      - elastic-data-volume:/tmp/elasticsearch/nodes
    networks:
      - internal

  postgresql:
    image: openmbeeguest/mms-postgres:3.4.2-SNAPSHOT
    container_name: v342-postgres
    volumes:
       - postgres-data-volume:/var/lib/postgresql/data
    environment:
      - MMS_DB_USER=mms
      - MMS_DB_PASSWORD=mmspass
      - MMS_DB=mms
      - ALFRESCO_DB_USER=mms
      - ALFRESCO_DB_PASSWORD=mmspass
      - ALFRESCO_DB=alfresco
    networks:
      - internal

volumes:
  alf_logs:
    external: true
  alfresco-data-volume:
    external: true
  postgres-data-volume:
    external: true
  activemq-data-volume:
    external: true
  activemq-log-volume:
    external: true
  activemq-conf-volume:
    external: true
  elastic-data-volume:
    external: true
  nginx-external-volume:
    external: true

networks:
  internal:

Tag summary

Content type

Image

Digest

Size

677.5 MB

Last updated

almost 5 years ago

docker pull openmbeeguest/mms-repo:3.4.2-20190514