Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CONF
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UvA
CONF
Commits
c17fa743
Commit
c17fa743
authored
Sep 03, 2020
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added mongo-express
parent
6a145d00
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
196 additions
and
117 deletions
+196
-117
ansible_service.py
deployer/service/ansible_service.py
+8
-10
docker-compose-test.yml
docker-compose/docker-compose-test.yml
+25
-25
docker-compose.yml
docker-compose/docker-compose.yml
+94
-80
nginx.conf
docker-compose/nginx.conf
+7
-1
mongo-express-deployment.yaml
k8s/CONF/DBs/mongo-express-deployment.yaml
+41
-0
mongo-express-service.yaml
k8s/CONF/DBs/mongo-express-service.yaml
+20
-0
conf-namespace.yaml
k8s/CONF/namespace/conf-namespace.yaml
+0
-0
ToscaTemplateApiController.java
.../java/nl/uva/sne/drip/api/ToscaTemplateApiController.java
+1
-1
No files found.
deployer/service/ansible_service.py
View file @
c17fa743
...
...
@@ -62,8 +62,6 @@ class AnsibleService:
environment_id
=
self
.
semaphore_helper
.
create_environment
(
project_id
,
name
,
env_vars
)
arguments
=
None
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
:
attributes
=
vm
.
node_template
.
attributes
if
attributes
[
'role'
]
==
'master'
:
...
...
docker-compose/docker-compose-test.yml
View file @
c17fa743
version
:
'
3'
services
:
nginx
:
image
:
nginx
volumes
:
-
./nginx.conf:/etc/nginx/nginx.conf
-
./cert.pem:/etc/nginx/cert.pem
-
./privkey.pem:/etc/nginx/privkey.pem
#- ./www:/data/www
ports
:
-
"
80:80"
-
"
443:443"
#
nginx:
#
image: nginx
#
volumes:
#
- ./nginx.conf:/etc/nginx/nginx.conf
#
- ./cert.pem:/etc/nginx/cert.pem
#
- ./privkey.pem:/etc/nginx/privkey.pem
#
#
- ./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"
#
rabbit:
#
image: rabbitmq:3.8-management
#
ports:
#
- "5671-5672:5671-5672"
#
- "15672:15672"
#
- "4369:4369"
#
- "15671:15671"
mysql
:
image
:
mysql:5.7
...
...
@@ -49,18 +49,18 @@ services:
depends_on
:
-
mysql
mongo
:
image
:
mongo:4
ports
:
-
"
27017:27017"
#
mongo:
#
image: mongo:4
#
ports:
#
- "27017:27017"
sure-tosca
:
image
:
qcdis/sure-tosca
ports
:
-
"
8081:8081"
#
sure-tosca:
#
image: qcdis/sure-tosca
#
ports:
#
- "8081:8081"
...
...
docker-compose/docker-compose.yml
View file @
c17fa743
version
:
'
3'
services
:
nginx
:
image
:
nginx
volumes
:
-
./nginx.conf:/etc/nginx/nginx.conf
-
./cert.pem:/etc/nginx/cert.pem
-
./privkey.pem:/etc/nginx/privkey.pem
#- ./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
#nginx:
#image: nginx
#volumes:
#- ./nginx.conf:/etc/nginx/nginx.conf
#- ./cert.pem:/etc/nginx/cert.pem
#- ./privkey.pem:/etc/nginx/privkey.pem
##- ./www:/data/www
#ports:
#- "3306:3306"
#- "80:80"
#- "443:443"
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
#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:
##- "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
:
image
:
mongo:4
ports
:
-
"
27017:27017"
manager
:
mongo-express
:
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
:
-
rabbit
-
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
:
-
"
8080:8080"
-
"
8082:8082"
sure-tosca
:
image
:
qcdis/sure-tosca
ports
:
-
"
8081:8081"
planner
:
depends_on
:
-
rabbit
-
sure-tosca
image
:
qcdis/planner
environment
:
RABBITMQ_HOST
:
rabbit
#manager:
#depends_on:
#- rabbit
#- 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: top_secret
#ports:
#- "8080:8080"
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
:
123
#sure-tosca:
#image: qcdis/sure-tosca
#ports:
#- "8081:8081"
#planner:
#depends_on:
#- rabbit
#- sure-tosca
#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:
#depends_on:
...
...
docker-compose/nginx.conf
View file @
c17fa743
...
...
@@ -97,5 +97,11 @@ http {
proxy_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
;
}
}
}
k8s/CONF/DBs/mongo-express-deployment.yaml
0 → 100644
View file @
c17fa743
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
:
{}
k8s/CONF/DBs/mongo-express-service.yaml
0 → 100644
View file @
c17fa743
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
:
{}
k8s/CONF/conf-namespace.yaml
→
k8s/CONF/
namespace/
conf-namespace.yaml
View file @
c17fa743
File moved
manager/src/main/java/nl/uva/sne/drip/api/ToscaTemplateApiController.java
View file @
c17fa743
...
...
@@ -131,7 +131,7 @@ public class ToscaTemplateApiController implements ToscaTemplateApi {
// String accept = request.getHeader("Accept");
// if (accept != null && accept.contains("application/json")) {
List
<
String
>
ids
=
toscaTemplateService
.
getAllIds
();
return
new
ResponseEntity
<>(
ids
,
HttpStatus
.
NOT_IMPLEMENTED
);
return
new
ResponseEntity
<>(
ids
,
HttpStatus
.
OK
);
// } else {
// return new ResponseEntity<>(HttpStatus.NOT_ACCEPTABLE);
// }
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment