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
172aff81
Commit
172aff81
authored
Jun 26, 2019
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
create tosca application and types
parent
4d447307
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
180 additions
and
2 deletions
+180
-2
Dockerfile
Dockerfiles/manager/Dockerfile
+1
-1
Dockerfile
Dockerfiles/provisioner/Dockerfile
+1
-1
application_example.yaml
TOSCA/application_example.yaml
+47
-0
interfaces.yaml
TOSCA/types/interfaces.yaml
+0
-0
nodes.yaml
TOSCA/types/nodes.yaml
+131
-0
No files found.
Dockerfiles/manager/Dockerfile
View file @
172aff81
...
...
@@ -5,7 +5,7 @@ MAINTAINER S. Koulouzis "S.Koulouzis@uva.nl"
# ARG RABBITMQ_HOST=127.0.0.1
# ARG MONOG_HOST=127.0.0.1
ARG
RELESE_VERSION=0.2
ARG
RELESE_VERSION=0.2
.5
ARG
CERTS=/etc/grid-security/certificates
...
...
Dockerfiles/provisioner/Dockerfile
View file @
172aff81
...
...
@@ -6,7 +6,7 @@ MAINTAINER Huan "h.zhou@uva.nl"
# ARG RABBITMQ_HOST=127.0.0.1
# ARG MONOG_HOST=127.0.0.1
ARG
RELESE_VERSION=0.2
ARG
RELESE_VERSION=0.2
.5
ARG
CERTS=/etc/grid-security/certificates
WORKDIR
/root/
...
...
TOSCA/application_example.yaml
0 → 100644
View file @
172aff81
tosca_definitions_version
:
tosca_simple_yaml_1_0
imports
:
-
types/nodes.yaml
-
types/interfaces.yaml
repositories
:
docker_hub
:
https://hub.docker.com/
topology_template
:
wordpres
:
type
:
tosca.nodes.Container.Application.Docker
properties
:
ports
:
-
"
8000:80"
environment
:
WORDPRESS_DB_HOST
:
mysql-db:3306
WORDPRESS_DB_USER
:
wordpress
WORDPRESS_DB_PASSWORD
:
wordpress
WORDPRESS_DB_NAME
:
wordpress
artifacts
:
image
:
type
:
tosca.artifacts.Deployment.Image.Container.Docker
file
:
wordpress:latest
repository
:
docker_hub
requirements
:
-
db
:
node
:
mysql-db
relationship
:
type
:
tosca.relationships.ConnectsTo
mysql-db
:
type
:
tosca.nodes.Container.Application.Docker
properties
:
volumes
:
-
db_data:/var/lib/mysql
environment
:
MYSQL_ROOT_PASSWORD
:
somewordpress
MYSQL_DATABASE
:
wordpress
MYSQL_USER
:
wordpress
MYSQL_PASSWORD
:
wordpress
artifacts
:
image
:
type
:
tosca.artifacts.Deployment.Image.Container.Docker
file
:
mysql:5.7
repository
:
docker_hub
TOSCA/types/interfaces.yaml
0 → 100644
View file @
172aff81
TOSCA/types/nodes.yaml
0 → 100644
View file @
172aff81
tosca_definitions_version
:
tosca_simple_yaml_1_0
node_types
:
tosca.nodes.Container.Application.Docker
:
derived_from
:
tosca.nodes.Container
description
:
description of container
properties
:
ports
:
description
:
ports to be forwarded
type
:
list
required
:
false
entrypoint
:
description
:
command
type
:
string
required
:
false
cmd
:
description
:
cmd
type
:
string
required
:
false
environment
:
description
:
environment variables
type
:
map
required
:
false
volumes
:
description
:
volume
type
:
list
required
:
false
capabilities
:
service
:
type
:
tosca.capabilities.Container.Docker
requirements
:
-
host
:
capability
:
tosca.capabilities.Container.Orchestrator.Docker
node
:
tosca.nodes.Container.Orchestrator.Docker
relationship
:
tosca.relationships.HostedOn
tosca.nodes.Container.Orchestrator.Docker.Swarm
:
derived_from
:
tosca.nodes.Container.Orchestrator.Docker
description
:
The swarm Docker Orchestrator
interfaces
:
Ansible
:
type
:
tosca.interfaces.Ansible
tosca.nodes.Container.Orchestrator.Docker
:
derived_from
:
tosca.nodes.Container.Orchestrator
description
:
Docker Orchestrator
capabilities
:
host
:
type
:
tosca.capabilities.Container.Orchestrator.Docker
requirements
:
-
host
:
capability
:
tosca.capabilities.Compute.Cluster
node
:
tosca.nodes.Compute.VM.Cluster
relationship
:
tosca.relationships.HostedOn
tosca.nodes.Compute.VM.Cluster
:
derived_from
:
description
:
A cluster of VM able
properties
:
vms
:
description
:
a list of VMs in the cluster. At lest one of them must be the master
type
:
list
required
:
true
capabilities
:
host
:
type
:
tosca.capabilities.Compute.Cluster
tosca.nodes.Compute.VM
:
derived_from
:
tosca.nodes.Compute
description
:
VM
properties
:
name
:
description
:
host name
type
:
string
required
:
true
user_names
:
description
:
list of user name
type
:
list
required
:
true
id
:
description
:
vm id
type
:
string
required
:
true
num_of_cpu
:
description
:
number of cpu
type
:
int
required
:
true
mem_size
:
description
:
ram size in MB
type
:
int
required
:
true
disk_size
:
description
:
disk size in MB
type
:
int
required
:
true
ip_addresses
:
description
:
available IP addresses
type
:
int
required
:
true
role
:
description
:
available IP addresses
type
:
string
required
:
true
os_type
:
description
:
OS example
:
Ubuntu 16.04
type
:
string
required
:
true
capabilities
:
host
:
type
:
tosca.capabilities.Compute
tosca.nodes.Compute.VM.ExoGENI
:
derived_from
:
tosca.nodes.Compute.VM
description
:
VM
properties
:
domain
:
description
:
site where the VM is hosted, example
:
RENCI (Chapel Hill, NC USA) XO Rack
type
:
string
required
:
true
state
:
description
:
the state of the VM, running, paused, stopped
type
:
string
required
:
true
ssh_key_pair_id
:
description
:
the id of the ssh key
type
:
string
required
:
true
capabilities
:
host
:
type
:
tosca.capabilities.Scale
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