From b9388c6a4c05fd7496e9b79a2aef4f8742cd6571 Mon Sep 17 00:00:00 2001 From: sido Date: Wed, 28 Feb 2018 19:16:49 +0100 Subject: [PATCH] chore(initial): initial commit --- .gitignore | 2 + README.md | 0 templates/molgenis/0/README.md | 17 +++++ templates/molgenis/0/docker-compose.yml | 22 ++++++ templates/molgenis/0/rancher-compose.yml | 5 ++ templates/molgenis/1/README.md | 18 +++++ templates/molgenis/1/docker-compose.yml | 45 +++++++++++ templates/molgenis/1/rancher-compose.yml | 5 ++ templates/molgenis/2/README.md | 18 +++++ templates/molgenis/2/docker-compose.yml | 85 +++++++++++++++++++++ templates/molgenis/2/rancher-compose.yml | 18 +++++ templates/molgenis/catalogIcon-molgenis.svg | 1 + templates/molgenis/config.yml | 7 ++ 13 files changed, 243 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 templates/molgenis/0/README.md create mode 100644 templates/molgenis/0/docker-compose.yml create mode 100644 templates/molgenis/0/rancher-compose.yml create mode 100644 templates/molgenis/1/README.md create mode 100644 templates/molgenis/1/docker-compose.yml create mode 100644 templates/molgenis/1/rancher-compose.yml create mode 100644 templates/molgenis/2/README.md create mode 100644 templates/molgenis/2/docker-compose.yml create mode 100644 templates/molgenis/2/rancher-compose.yml create mode 100644 templates/molgenis/catalogIcon-molgenis.svg create mode 100644 templates/molgenis/config.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bec99c6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +molgenis-ops-rancher.iml +.idea \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/templates/molgenis/0/README.md b/templates/molgenis/0/README.md new file mode 100644 index 0000000..6550a69 --- /dev/null +++ b/templates/molgenis/0/README.md @@ -0,0 +1,17 @@ +# MOLGENIS +### Flexible software for scientific data +#### Process, manage, query, annotate, integrate, analyse, share + +This template creates a MOLGENIS stack on top of Rancher. It creates 3 docker services: + +- MOLGENIS instance +- Postgress instance +- ElasticSearch instance + +## Usage: + +- Select MOLGENIS from catalog +- Enter the name of the replica set +- Click deploy + +MOLGENIS can now be accessed over the Rancher network. \ No newline at end of file diff --git a/templates/molgenis/0/docker-compose.yml b/templates/molgenis/0/docker-compose.yml new file mode 100644 index 0000000..891cb5e --- /dev/null +++ b/templates/molgenis/0/docker-compose.yml @@ -0,0 +1,22 @@ +app: + image: sidohaakma/molgenis-docker:2.0.0 + ports: + - 8081:8080 + links: + - db + volumes: + - app-data:/opt/molgenis + labels: + io.rancher.container.create_agent: 'true' + io.rancher.scheduler.global: 'true' +db: + build: ./db + expose: + - 5432 + volumes: + - db-data:/var/lib/postgresql/data + labels: + io.rancher.container.create_agent: 'true' +volumes: + db-data: + app-data: diff --git a/templates/molgenis/0/rancher-compose.yml b/templates/molgenis/0/rancher-compose.yml new file mode 100644 index 0000000..b1c3e50 --- /dev/null +++ b/templates/molgenis/0/rancher-compose.yml @@ -0,0 +1,5 @@ +.catalog: + name: molgenis + version: v2.0.0 + description: Molgenis + minimum_rancher_version: v1.6.3 \ No newline at end of file diff --git a/templates/molgenis/1/README.md b/templates/molgenis/1/README.md new file mode 100644 index 0000000..907b6c8 --- /dev/null +++ b/templates/molgenis/1/README.md @@ -0,0 +1,18 @@ +# MOLGENIS +**Flexible software for scientific data** + + +This template creates a MOLGENIS stack on top of Rancher. It creates 3 docker services: + +- MOLGENIS + - Elasticsearch is packaged with MOLGENIS +- Postgress + +**Usage:** + + +- Select MOLGENIS from catalog +- The stack-name must not be altered (this is hardcoded in de docker-compose file) +- Click *Launch* + +MOLGENIS can now be accessed over the Rancher network. \ No newline at end of file diff --git a/templates/molgenis/1/docker-compose.yml b/templates/molgenis/1/docker-compose.yml new file mode 100644 index 0000000..aa5bb23 --- /dev/null +++ b/templates/molgenis/1/docker-compose.yml @@ -0,0 +1,45 @@ +app: + image: sidohaakma/molgenis-docker:4.1.0 + ports: + - 8081:8080 + links: + - db + volumes_from: + - molgenis-data + labels: + io.rancher.sidekicks: molgenis-data + io.rancher.scheduler.global: true + io.rancher.scheduler.affinity:host_label: type=molgenis + io.rancher.scheduler.affinity:container_label: io.rancher.stack.name=molgenis + db: + image: postgres:9.6-alpine + environment: + - POSTGRES_USER=molgenis + - POSTGRES_PASSWORD=molgenis + - POSTGRES_DB=molgenis + expose: + - 5432 + volumes_from: + - postgres-data + labels: + io.rancher.sidekicks: postgres-data + io.rancher.scheduler.global: true + io.rancher.scheduler.affinity:host_label: type=molgenis + io.rancher.scheduler.affinity:container_label: io.rancher.stack.name=molgenis + + postgres-data: + image: busybox + labels: + io.rancher.container.start_once: true + io.rancher.scheduler.affinity:host_label: type=molgenis + io.rancher.scheduler.affinity:container_label: io.rancher.stack.name=molgenis + volumes: + - /var/lib/postgresql/data/pgdata + molgenis-data: + image: busybox + labels: + io.rancher.container.start_once: true + io.rancher.scheduler.affinity:host_label: type=molgenis + io.rancher.scheduler.affinity:container_label: io.rancher.stack.name=molgenis + volumes: + - /opt/molgenis \ No newline at end of file diff --git a/templates/molgenis/1/rancher-compose.yml b/templates/molgenis/1/rancher-compose.yml new file mode 100644 index 0000000..fc27a32 --- /dev/null +++ b/templates/molgenis/1/rancher-compose.yml @@ -0,0 +1,5 @@ +.catalog: + name: molgenis + version: v4.1.0 + description: Molgenis + minimum_rancher_version: v1.6.3 \ No newline at end of file diff --git a/templates/molgenis/2/README.md b/templates/molgenis/2/README.md new file mode 100644 index 0000000..a310f32 --- /dev/null +++ b/templates/molgenis/2/README.md @@ -0,0 +1,18 @@ +# MOLGENIS +**Flexible software for scientific data** + + +This template creates a MOLGENIS stack on top of Rancher. It creates 3 docker services: + +- MOLGENIS +- Postgress +- ElasticSearch + +**Usage:** + + +- Select MOLGENIS from catalog +- The stack-name must not be altered (this is hardcoded in de docker-compose file) +- Click *Launch* + +MOLGENIS can now be accessed over the Rancher network. \ No newline at end of file diff --git a/templates/molgenis/2/docker-compose.yml b/templates/molgenis/2/docker-compose.yml new file mode 100644 index 0000000..ce04dec --- /dev/null +++ b/templates/molgenis/2/docker-compose.yml @@ -0,0 +1,85 @@ + molgenis: + image: sidohaakma/molgenis-docker:5.2.0 + ports: + - 8081:8080 + links: + - postgres + - elasticsearch + volumes_from: + - molgenis-data + labels: + io.rancher.sidekicks: molgenis-data + io.rancher.scheduler.global: true + io.rancher.container.pull_image: always + io.rancher.scheduler.affinity:host_label: type=molgenis + io.rancher.scheduler.affinity:container_label: io.rancher.stack.name=molgenis + postgres: + image: postgres:9.6-alpine + environment: + - POSTGRES_USER=molgenis + - POSTGRES_PASSWORD=molgenis + - POSTGRES_DB=molgenis + - PGDATA=/var/lib/postgresql/data/pgdata + volumes_from: + - postgres-data + ports: + - 5432 + labels: + io.rancher.sidekicks: postgres-data + io.rancher.scheduler.global: true + io.rancher.scheduler.affinity:host_label: type=molgenis + io.rancher.scheduler.affinity:container_label: io.rancher.stack.name=molgenis + elasticsearch: + image: docker.elastic.co/elasticsearch/elasticsearch:5.5.1 + environment: + - "cluster.name=molgenis" + - "bootstrap.memory_lock=true" + - "ES_JAVA_OPTS=-Xms512m -Xmx512m" + - "xpack.security.enabled=false" + ulimits: + memlock: + soft: -1 + hard: -1 +# volumes_from: +# - elasticsearch-data + ports: + - 9200:9200 + - 9300:9300 + labels: + #io.rancher.sidekicks: elasticsearch-data + io.rancher.scheduler.global: true + io.rancher.scheduler.affinity:host_label: type=molgenis + io.rancher.scheduler.affinity:container_label: io.rancher.stack.name=molgenis +# loadbalancer: +# image: rancher/lb-service-haproxy:v0.7.5 +# ports: +# - 80 +# labels: +# io.rancher.scheduler.global: true +# io.rancher.scheduler.affinity:host_label: type=molgenis +# io.rancher.scheduler.affinity:container_label: io.rancher.stack.name=molgenis + + postgres-data: + image: busybox + labels: + io.rancher.container.start_once: true + io.rancher.scheduler.affinity:host_label: type=molgenis + io.rancher.scheduler.affinity:container_label: io.rancher.stack.name=molgenis + volumes: + - /var/lib/postgresql/data/pgdata + molgenis-data: + image: busybox + labels: + io.rancher.container.start_once: true + io.rancher.scheduler.affinity:host_label: type=molgenis + io.rancher.scheduler.affinity:container_label: io.rancher.stack.name=molgenis + volumes: + - /opt/molgenis +# elasticsearch-data: +# image: busybox +# labels: +# io.rancher.container.start_once: true +# io.rancher.scheduler.affinity:host_label: type=molgenis +# io.rancher.scheduler.affinity:container_label: io.rancher.stack.name=molgenis +# volumes: +# - /usr/share/elasticsearch/data diff --git a/templates/molgenis/2/rancher-compose.yml b/templates/molgenis/2/rancher-compose.yml new file mode 100644 index 0000000..1b08e52 --- /dev/null +++ b/templates/molgenis/2/rancher-compose.yml @@ -0,0 +1,18 @@ +.catalog: + name: molgenis + version: v5.0.0 + description: Molgenis + minimum_rancher_version: v1.6.3 +#loadbalancer: +# scale: 1 +# lb_config: +# port_rules: +# - source_port: 80 +# target_port: 8081 +# service: molgenis +# health_check: +# port: 42 +# interval: 2000 +# unhealthy_threshold: 3 +# healthy_threshold: 2 +# response_timeout: 2000 \ No newline at end of file diff --git a/templates/molgenis/catalogIcon-molgenis.svg b/templates/molgenis/catalogIcon-molgenis.svg new file mode 100644 index 0000000..2f861af --- /dev/null +++ b/templates/molgenis/catalogIcon-molgenis.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/templates/molgenis/config.yml b/templates/molgenis/config.yml new file mode 100644 index 0000000..9716f41 --- /dev/null +++ b/templates/molgenis/config.yml @@ -0,0 +1,7 @@ +name: Molgenis +description: | + Molgenis | Flexible software for scientific data +version: v5.0.0 +category: All +maintainer: Molgenis DEV-team and community-members +projectURL: http://molgenis.org \ No newline at end of file