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:
...
@@ -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'
:
...
...
docker-compose/docker-compose-test.yml
View file @
c17fa743
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"
...
...
docker-compose/docker-compose.yml
View file @
c17fa743
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:
...
...
docker-compose/nginx.conf
View file @
c17fa743
...
@@ -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
;
}
}
}
}
}
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 {
...
@@ -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);
// }
// }
...
...
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