Commit c17fa743 authored by Spiros Koulouzis's avatar Spiros Koulouzis

added mongo-express

parent 6a145d00
...@@ -62,8 +62,6 @@ class AnsibleService: ...@@ -62,8 +62,6 @@ class AnsibleService:
environment_id = self.semaphore_helper.create_environment(project_id, name, env_vars) environment_id = self.semaphore_helper.create_environment(project_id, name, env_vars)
arguments = None arguments = None
if application.name == 'gluster_fs' or application.name == 'glusterfs' or application.name == 'tic': if application.name == 'gluster_fs' or application.name == 'glusterfs' or application.name == 'tic':
arguments = '["-u","vm_user"]'
if playbook_name == '013.mount_fs.yml' or playbook_name == '002.setup_glusterfs_infra.yml':
for vm in vms: for vm in vms:
attributes = vm.node_template.attributes attributes = vm.node_template.attributes
if attributes['role'] == 'master': if attributes['role'] == 'master':
......
version: '3' version: '3'
services: services:
nginx: #nginx:
image: nginx #image: nginx
volumes: #volumes:
- ./nginx.conf:/etc/nginx/nginx.conf #- ./nginx.conf:/etc/nginx/nginx.conf
- ./cert.pem:/etc/nginx/cert.pem #- ./cert.pem:/etc/nginx/cert.pem
- ./privkey.pem:/etc/nginx/privkey.pem #- ./privkey.pem:/etc/nginx/privkey.pem
#- ./www:/data/www ##- ./www:/data/www
ports: #ports:
- "80:80" #- "80:80"
- "443:443" #- "443:443"
rabbit: #rabbit:
image: rabbitmq:3.8-management #image: rabbitmq:3.8-management
ports: #ports:
- "5671-5672:5671-5672" #- "5671-5672:5671-5672"
- "15672:15672" #- "15672:15672"
- "4369:4369" #- "4369:4369"
- "15671:15671" #- "15671:15671"
mysql: mysql:
image: mysql:5.7 image: mysql:5.7
...@@ -49,18 +49,18 @@ services: ...@@ -49,18 +49,18 @@ services:
depends_on: depends_on:
- mysql - mysql
mongo: #mongo:
image: mongo:4 #image: mongo:4
ports: #ports:
- "27017:27017" #- "27017:27017"
sure-tosca: #sure-tosca:
image: qcdis/sure-tosca #image: qcdis/sure-tosca
ports: #ports:
- "8081:8081" #- "8081:8081"
......
version: '3' version: '3'
services: services:
nginx: #nginx:
image: nginx #image: nginx
volumes: #volumes:
- ./nginx.conf:/etc/nginx/nginx.conf #- ./nginx.conf:/etc/nginx/nginx.conf
- ./cert.pem:/etc/nginx/cert.pem #- ./cert.pem:/etc/nginx/cert.pem
- ./privkey.pem:/etc/nginx/privkey.pem #- ./privkey.pem:/etc/nginx/privkey.pem
#- ./www:/data/www ##- ./www:/data/www
ports:
- "80:80"
- "443:443"
rabbit:
image: rabbitmq:3.8-management
ports:
- "5671-5672:5671-5672"
- "15672:15672"
- "4369:4369"
- "15671:15671"
mysql:
image: mysql:5.7
volumes:
- ./mysql.cnf:/etc/mysql/mysql.conf.d/mysqld.cnf
environment:
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
MYSQL_DATABASE: semaphore
MYSQL_USER: semaphore
MYSQL_PASSWORD: semaphore
#ports: #ports:
#- "3306:3306" #- "80:80"
#- "443:443"
semaphore: #rabbit:
image: qcdis/docker_ansible_semaphore #image: rabbitmq:3.8-management
environment: #ports:
SEMAPHORE_DB_USER: semaphore #- "5671-5672:5671-5672"
SEMAPHORE_DB_PASS: semaphore #- "15672:15672"
SEMAPHORE_DB_HOST: mysql #- "4369:4369"
SEMAPHORE_DB_PORT: 3306 #- "15671:15671"
SEMAPHORE_DB: semaphore
SEMAPHORE_PLAYBOOK_PATH: /etc/semaphore #mysql:
SEMAPHORE_ADMIN_PASSWORD: password #image: mysql:5.7
SEMAPHORE_ADMIN_NAME: "Developer" #volumes:
SEMAPHORE_ADMIN_EMAIL: admin@localhost #- ./mysql.cnf:/etc/mysql/mysql.conf.d/mysqld.cnf
SEMAPHORE_ADMIN: admin #environment:
SEMAPHORE_WEB_ROOT: http://0.0.0.0:3000 #MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
ports: #MYSQL_DATABASE: semaphore
- "3000:3000" #MYSQL_USER: semaphore
depends_on: #MYSQL_PASSWORD: semaphore
- mysql ##ports:
##- "3306:3306"
#semaphore:
#image: qcdis/docker_ansible_semaphore
#environment:
#SEMAPHORE_DB_USER: semaphore
#SEMAPHORE_DB_PASS: semaphore
#SEMAPHORE_DB_HOST: mysql
#SEMAPHORE_DB_PORT: 3306
#SEMAPHORE_DB: semaphore
#SEMAPHORE_PLAYBOOK_PATH: /etc/semaphore
#SEMAPHORE_ADMIN_PASSWORD: password
#SEMAPHORE_ADMIN_NAME: "Developer"
#SEMAPHORE_ADMIN_EMAIL: admin@localhost
#SEMAPHORE_ADMIN: admin
#SEMAPHORE_WEB_ROOT: http://0.0.0.0:3000
#ports:
#- "3000:3000"
#depends_on:
#- mysql
mongo: mongo:
image: mongo:4 image: mongo:4
ports: ports:
- "27017:27017" - "27017:27017"
mongo-express:
manager: image: mongo-express
environment:
- ME_CONFIG_MONGODB_SERVER=mongo
- ME_CONFIG_MONGODB_PORT=27017
- ME_CONFIG_BASICAUTH_USERNAME=user
- ME_CONFIG_BASICAUTH_PASSWORD=pass
- ME_CONFIG_SITE_BASEURL=/mongo-express
- VCAP_APP_PORT=8082
depends_on: depends_on:
- rabbit
- mongo - mongo
- sure-tosca
image: qcdis/manager
environment:
RABBITMQ_HOST: rabbit
MONGO_HOST: mongo
SURE_TOSCA_BASE_PATH: http://sure-tosca:8081/tosca-sure/1.0.0
CREDENTIAL_SECRET: 123
ports: ports:
- "8080:8080" - "8082:8082"
sure-tosca:
image: qcdis/sure-tosca
ports:
- "8081:8081"
planner: #manager:
depends_on: #depends_on:
- rabbit #- rabbit
- sure-tosca #- mongo
image: qcdis/planner #- sure-tosca
environment: #image: qcdis/manager
RABBITMQ_HOST: rabbit #environment:
#RABBITMQ_HOST: rabbit
#MONGO_HOST: mongo
#SURE_TOSCA_BASE_PATH: http://sure-tosca:8081/tosca-sure/1.0.0
#CREDENTIAL_SECRET: top_secret
#ports:
#- "8080:8080"
provisioner: #sure-tosca:
depends_on: #image: qcdis/sure-tosca
- rabbit #ports:
- sure-tosca #- "8081:8081"
image: qcdis/provisioner
environment: #planner:
RABBITMQ_HOST: rabbit #depends_on:
SURE_TOSCA_BASE_PATH: http://sure-tosca:8081/tosca-sure/1.0.0 #- rabbit
CLOUD_STORM_SECRET: 456 #- sure-tosca
CREDENTIAL_SECRET: 123 #image: qcdis/planner
#environment:
#RABBITMQ_HOST: rabbit
#provisioner:
#depends_on:
#- rabbit
#- sure-tosca
#image: qcdis/provisioner
#environment:
#RABBITMQ_HOST: rabbit
#SURE_TOSCA_BASE_PATH: http://sure-tosca:8081/tosca-sure/1.0.0
#CLOUD_STORM_SECRET: 456
#CREDENTIAL_SECRET: top_secret
#deployer: #deployer:
#depends_on: #depends_on:
......
...@@ -97,5 +97,11 @@ http { ...@@ -97,5 +97,11 @@ http {
proxy_buffering off; proxy_buffering off;
proxy_request_buffering off; proxy_request_buffering off;
} }
location /mongo-express {
proxy_pass http://mongo-express:8082;
proxy_set_header Host $host;
proxy_set_header X-Real_IP $remote_addr;
}
} }
} }
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
namespace: conf
annotations:
kompose.cmd: kompose convert
kompose.version: 1.16.0 (0c01309)
creationTimestamp: null
labels:
io.kompose.service: mongo-express
name: mongo-express
spec:
replicas: 1
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
io.kompose.service: mongo-express
spec:
containers:
- env:
- name: ME_CONFIG_BASICAUTH_PASSWORD
value: pass
- name: ME_CONFIG_BASICAUTH_USERNAME
value: user
- name: ME_CONFIG_MONGODB_PORT
value: "27017"
- name: ME_CONFIG_MONGODB_SERVER
value: mongo
- name: ME_CONFIG_SITE_BASEURL
value: /mongo-express
- name: VCAP_APP_PORT
value: "8082"
image: mongo-express
name: mongo-express
ports:
- containerPort: 8082
resources: {}
restartPolicy: Always
status: {}
apiVersion: v1
kind: Service
metadata:
namespace: conf
annotations:
kompose.cmd: kompose convert
kompose.version: 1.16.0 (0c01309)
creationTimestamp: null
labels:
io.kompose.service: mongo-express
name: mongo-express
spec:
ports:
- name: "8082"
port: 8082
targetPort: 8082
selector:
io.kompose.service: mongo-express
status:
loadBalancer: {}
...@@ -131,7 +131,7 @@ public class ToscaTemplateApiController implements ToscaTemplateApi { ...@@ -131,7 +131,7 @@ public class ToscaTemplateApiController implements ToscaTemplateApi {
// String accept = request.getHeader("Accept"); // String accept = request.getHeader("Accept");
// if (accept != null && accept.contains("application/json")) { // if (accept != null && accept.contains("application/json")) {
List<String> ids = toscaTemplateService.getAllIds(); List<String> ids = toscaTemplateService.getAllIds();
return new ResponseEntity<>(ids, HttpStatus.NOT_IMPLEMENTED); return new ResponseEntity<>(ids, HttpStatus.OK);
// } else { // } else {
// return new ResponseEntity<>(HttpStatus.NOT_ACCEPTABLE); // return new ResponseEntity<>(HttpStatus.NOT_ACCEPTABLE);
// } // }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment