Skip to content

Commit

Permalink
Add project RADON extensions
Browse files Browse the repository at this point in the history
Signed-off-by:  Lukas Harzenetter <[email protected]>
Co-authored-by: Michael Wurster <[email protected]>
Co-authored-by: Felix Burk <[email protected]>
Co-authored-by: Vladimir Yussupov <[email protected]>
Co-authored-by: Nick Fode <[email protected]>
Co-authored-by: Clemens Lieb <[email protected]>
Co-authored-by: Tobias Mathony <[email protected]>
Co-authored-by: Karoline Saatkamp <[email protected]>
Co-authored-by: Karoline Saatkamp [email protected]
  • Loading branch information
8 people committed Nov 26, 2020
1 parent ed69d86 commit 192fb69
Show file tree
Hide file tree
Showing 1,085 changed files with 38,128 additions and 19,888 deletions.
6 changes: 4 additions & 2 deletions .idea/runConfigurations/Winery_Server.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions .mvn/extensions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Copyright (c) 2020 Contributors to the Eclipse Foundation
~
~ See the NOTICE file(s) distributed with this work for additional
~ information regarding copyright ownership.
~
~ This program and the accompanying materials are made available under the
~ terms of the Eclipse Public License 2.0 which is available at
~ http://www.eclipse.org/legal/epl-2.0, or the Apache Software License 2.0
~ which is available at https://www.apache.org/licenses/LICENSE-2.0.
~
~ SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<extensions xmlns="http://maven.apache.org/EXTENSIONS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/EXTENSIONS/1.0.0 http://maven.apache.org/xsd/core-extensions-1.0.0.xsd">
<extension>
<groupId>com.github.gzm55.maven</groupId>
<artifactId>project-settings-extension</artifactId>
<version>0.1.1</version>
</extension>
</extensions>
36 changes: 36 additions & 0 deletions .mvn/settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Copyright (c) 2020 Contributors to the Eclipse Foundation
~
~ See the NOTICE file(s) distributed with this work for additional
~ information regarding copyright ownership.
~
~ This program and the accompanying materials are made available under the
~ terms of the Eclipse Public License 2.0 which is available at
~ http://www.eclipse.org/legal/epl-2.0, or the Apache Software License 2.0
~ which is available at https://www.apache.org/licenses/LICENSE-2.0.
~
~ SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<settings>
<mirrors>
<mirror>
<id>google-maven-central</id>
<name>GCS Maven Central mirror</name>
<url>https://maven-central.storage-download.googleapis.com/maven2/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>google-maven-central-eu</id>
<name>GCS Maven Central mirror EU</name>
<url>https://maven-central-eu.storage-download.googleapis.com/maven2/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>google-maven-central-asia</id>
<name>GCS Maven Central mirror Asia Pacific</name>
<url>https://maven-central-asia.storage-download.googleapis.com/maven2/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
</settings>
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ ENV WINERY_FEATURE_RADON false
ENV WINERY_FEATURE_SPLITTING false
ENV WINERY_FEATURE_TEST_REFINEMENT false
ENV WINERY_FEATURE_EDMM_MODELING false
ENV WINERY_FEATURE_UPDATE_TEMPLATES false
ENV DOCKERIZE_VERSION v0.6.1
ENV CHE_URL "che.localhost"
ENV CHE_URL_PROTOCOL "http"

RUN rm /dev/random && ln -s /dev/urandom /dev/random \
&& curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash \
Expand Down
4 changes: 2 additions & 2 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Copyright (c) 2017-2020 Clemens Lieb
Copyright (c) 2017 Heiko Nickerl
Copyright (c) 2017 Huabing Zhao
Copyright (c) 2017 Huixin Liu
Copyright (c) 2017-2019 Karoline Saatkamp
Copyright (c) 2017-2020 Karoline Saatkamp
Copyright (c) 2017 Marvin Wohlfarth
Copyright (c) 2017 Michael Falkenthal
Copyright (c) 2017-2020 Michael Wurster
Expand Down Expand Up @@ -77,7 +77,7 @@ Copyright (c) 2019 Markus Schütterle
Copyright (c) 2019 Michael Zimmermann
Copyright (c) 2019 Ruben Verma
Copyright (c) 2019 Sascha Zeller
Copyright (c) 2019 Tobias Mathony
Copyright (c) 2019-2020 Tobias Mathony
Copyright (c) 2019 Yannik Dietrich
Copyright (c) 2019 Yuye Tong
Copyright (c) 2019-2020 Felix Burk
Expand Down
1 change: 1 addition & 0 deletions checkstyle-suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@

<suppressions>
<suppress files="[\\/]gen[\\/]" checks="[a-zA-Z0-9]*"/>
<suppress files="[\\/]target[\\/]" checks="[a-zA-Z0-9]*"/>
</suppressions>
98 changes: 98 additions & 0 deletions deploy/che/devfile-full-pvc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
apiVersion: 1.0.0
metadata:
generateName: radon-workspace-
projects:
- name: radon-particles
source:
type: git
location: https://github.com/radon-h2020/radon-particles
components:
- alias: theia-editor
type: cheEditor
id: eclipse/che-theia/next
- alias: radon-gmt
type: kubernetes
endpoints:
- name: radon-gmt
port: 8080
attributes:
protocol: http
secure: "false"
discoverable: "false"
public: "true"
referenceContent: |
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: projects-volume
labels:
type: local
spec:
storageClassName: manual
capacity:
storage: 2Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/mnt/data"
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: projects
spec:
storageClassName: manual
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: winery-deployment
labels:
app: winery
tier: frontend
spec:
replicas: 1
selector:
matchLabels:
app: winery
tier: frontend
template:
metadata:
labels:
app: winery
tier: frontend
spec:
volumes:
- name: projects-storage
persistentVolumeClaim:
claimName: projects
containers:
- name: winery
image: opentosca/radon-gmt:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
env:
- name: WINERY_FEATURE_RADON
value: "true"
- name: WINERY_FEATURE_UPDATE_TEMPLATES
value: "true"
- name: WINERY_REPOSITORY_PROVIDER
value: "yaml"
- name: WINERY_REPOSITORY_URL
value: "https://github.com/radon-h2020/radon-particles"
- name: WINERY_REPOSITORY_PATH
value: "/projects/radon-particles"
- name: WINERY_CSAR_OUTPUT_PATH
value: "/projects/radon-csars"
- name: CHE_URL_PROTOCOL
value: "http"
volumeMounts:
- mountPath: "/projects"
name: projects-storage
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ components:
env:
- name: WINERY_FEATURE_RADON
value: "true"
- name: WINERY_FEATURE_UPDATE_TEMPLATES
value: "true"
- name: WINERY_REPOSITORY_PROVIDER
value: "yaml"
- name: WINERY_REPOSITORY_URL
Expand All @@ -59,3 +61,5 @@ components:
value: "/projects/radon-particles"
- name: WINERY_CSAR_OUTPUT_PATH
value: "/projects/radon-csars"
- name: CHE_URL_PROTOCOL
value: "http"
75 changes: 75 additions & 0 deletions deploy/che/winery-pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: projects-volume
labels:
type: local
spec:
storageClassName: manual
capacity:
storage: 2Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/mnt/data"
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: projects
spec:
storageClassName: manual
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: winery-deployment
labels:
app: winery
tier: frontend
spec:
replicas: 1
selector:
matchLabels:
app: winery
tier: frontend
template:
metadata:
labels:
app: winery
tier: frontend
spec:
volumes:
- name: projects-storage
persistentVolumeClaim:
claimName: projects
containers:
- name: winery
image: opentosca/radon-gmt:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
env:
- name: WINERY_FEATURE_RADON
value: "true"
- name: WINERY_FEATURE_UPDATE_TEMPLATES
value: "true"
- name: WINERY_REPOSITORY_PROVIDER
value: "yaml"
- name: WINERY_REPOSITORY_URL
value: "https://github.com/radon-h2020/radon-particles"
- name: WINERY_REPOSITORY_PATH
value: "/projects/radon-particles"
- name: WINERY_CSAR_OUTPUT_PATH
value: "/projects/radon-csars"
- name: CHE_URL_PROTOCOL
value: "http"
volumeMounts:
- mountPath: "/projects"
name: projects-storage
4 changes: 4 additions & 0 deletions deploy/che/winery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ spec:
env:
- name: WINERY_FEATURE_RADON
value: "true"
- name: WINERY_FEATURE_UPDATE_TEMPLATES
value: "true"
- name: WINERY_REPOSITORY_PROVIDER
value: "yaml"
- name: WINERY_REPOSITORY_URL
Expand All @@ -35,3 +37,5 @@ spec:
value: "/projects/radon-particles"
- name: WINERY_CSAR_OUTPUT_PATH
value: "/projects/radon-csars"
- name: CHE_URL_PROTOCOL
value: "http"
8 changes: 8 additions & 0 deletions docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
#!/bin/bash

# detect if eclipse che environment is present
if [ ! -z "${CHE_API}" ]; then
cheBaseUrl=$(echo "$CHE_API" | cut -d"/" -f3)
cheUrl=${cheBaseUrl}/dashboard/\#/ide/${CHE_WORKSPACE_NAMESPACE}/${CHE_WORKSPACE_NAME}
export CHE_URL=$cheUrl
fi

mkdir -p .winery
dockerize -template winery.yml.tpl:.winery/winery.yml
if [ -d "${WINERY_REPOSITORY_PATH}" ] && [ "$(ls -A ${WINERY_REPOSITORY_PATH})" ]; then
Expand Down
2 changes: 2 additions & 0 deletions docker/winery.yml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ ui:
splitting: {{ .Env.WINERY_FEATURE_SPLITTING }}
testRefinement: {{ .Env.WINERY_FEATURE_TEST_REFINEMENT }}
edmmModeling: {{ .Env.WINERY_FEATURE_EDMM_MODELING }}
updateTemplates: {{ .Env.WINERY_FEATURE_UPDATE_TEMPLATES }}
endpoints:
container: http://{{ .Env.CONTAINER_HOSTNAME }}:{{ .Env.CONTAINER_PORT }}
workflowmodeler: http://{{ .Env.WORKFLOWMODELER_HOSTNAME }}:{{ .Env.WORKFLOWMODELER_PORT }}/winery-workflowmodeler
topologymodeler: http://{{ .Env.TOPOLOGYMODELER_HOSTNAME }}:{{ .Env.TOPOLOGYMODELER_PORT }}/winery-topologymodeler
repositoryApiUrl: http://{{ .Env.WINERY_HOSTNAME }}:{{ .Env.WINERY_PORT }}/winery
repositoryUiUrl: http://{{ .Env.WINERY_HOSTNAME }}:{{ .Env.WINERY_PORT }}/#
edmmTransformationTool: http://{{ .Env.EDMM_TRANSFORMATION_HOSTNAME }}:{{ .Env.EDMM_TRANSFORMATION_PORT }}/plugins/check-model-support
eclipseChe: {{ .Env.CHE_URL_PROTOCOL }}://{{ .Env.CHE_URL }}
repository:
provider: {{ .Env.WINERY_REPOSITORY_PROVIDER }}
repositoryRoot: {{ .Env.WINERY_REPOSITORY_PATH }}
Expand Down
Loading

0 comments on commit 192fb69

Please sign in to comment.