Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
tosca-definitions-dch
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SustainLife
tosca-definitions-dch
Commits
f77c44ba
Commit
f77c44ba
authored
Jul 07, 2019
by
Philip Schildkamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tee appendage, finalize MCD
parent
14be7d86
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
109 additions
and
82 deletions
+109
-82
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/CouchDBMS-IA-Configure_1.6.1-w1-wip1/files/configure.sh
...s/CouchDBMS-IA-Configure_1.6.1-w1-wip1/files/configure.sh
+7
-4
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/CouchDBMS-IA-Configure_1.6.1-w1-wip1/source/configure.sh
.../CouchDBMS-IA-Configure_1.6.1-w1-wip1/source/configure.sh
+7
-4
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/CouchDBMS-IA-Configure_2.3.1-w1-wip1/files/configure.sh
...s/CouchDBMS-IA-Configure_2.3.1-w1-wip1/files/configure.sh
+9
-2
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/CouchDBMS-IA-Configure_2.3.1-w1-wip1/source/configure.sh
.../CouchDBMS-IA-Configure_2.3.1-w1-wip1/source/configure.sh
+9
-2
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/CouchDBMS-IA-Install_2.3.1-w1-wip1/files/install.sh
...lates/CouchDBMS-IA-Install_2.3.1-w1-wip1/files/install.sh
+1
-1
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/CouchDBMS-IA-Install_2.3.1-w1-wip1/source/install.sh
...ates/CouchDBMS-IA-Install_2.3.1-w1-wip1/source/install.sh
+1
-1
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/Elasticsearch-IA-Configure_1.7.6-w1-wip1/files/configure.sh
...asticsearch-IA-Configure_1.7.6-w1-wip1/files/configure.sh
+11
-2
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/Elasticsearch-IA-Configure_1.7.6-w1-wip1/source/configure.sh
...sticsearch-IA-Configure_1.7.6-w1-wip1/source/configure.sh
+11
-2
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/Elasticsearch-IA-Configure_7.1.1-w1-wip1/files/configure.sh
...asticsearch-IA-Configure_7.1.1-w1-wip1/files/configure.sh
+9
-3
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/Elasticsearch-IA-Configure_7.1.1-w1-wip1/source/configure.sh
...sticsearch-IA-Configure_7.1.1-w1-wip1/source/configure.sh
+9
-3
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/Elasticsearch-IA-Install_7.1.1-w1-wip1/files/install.sh
...s/Elasticsearch-IA-Install_7.1.1-w1-wip1/files/install.sh
+1
-1
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/Elasticsearch-IA-Install_7.1.1-w1-wip1/source/install.sh
.../Elasticsearch-IA-Install_7.1.1-w1-wip1/source/install.sh
+1
-1
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/MusicalCompetitionsApp-IA-ConnectTo_0.0.1-w1-wip1/files/connectTo.sh
...etitionsApp-IA-ConnectTo_0.0.1-w1-wip1/files/connectTo.sh
+2
-8
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/MusicalCompetitionsApp-IA-ConnectTo_0.0.1-w1-wip1/source/connectTo.sh
...titionsApp-IA-ConnectTo_0.0.1-w1-wip1/source/connectTo.sh
+2
-8
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/MusicalCompetitionsApp-IA-Install_0.0.1-w1-wip1/files/install.sh
...CompetitionsApp-IA-Install_0.0.1-w1-wip1/files/install.sh
+2
-2
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/MusicalCompetitionsApp-IA-Install_0.0.1-w1-wip1/source/install.sh
...ompetitionsApp-IA-Install_0.0.1-w1-wip1/source/install.sh
+2
-2
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/MusicalCompetitionsApp-IA-Start_0.0.1-w1-wip1/files/start.sh
...icalCompetitionsApp-IA-Start_0.0.1-w1-wip1/files/start.sh
+5
-1
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/MusicalCompetitionsApp-IA-Start_0.0.1-w1-wip1/source/start.sh
...calCompetitionsApp-IA-Start_0.0.1-w1-wip1/source/start.sh
+5
-1
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/MusicalCompetitionsDatabase-DA-Nginx_0.0.1-w1-wip1/files/MusicalCompetitionsDatabase.nginx
...inx_0.0.1-w1-wip1/files/MusicalCompetitionsDatabase.nginx
+11
-30
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/Nginx-IA-Configure_1.14.0-w1-wip1/files/configure.sh
...ates/Nginx-IA-Configure_1.14.0-w1-wip1/files/configure.sh
+1
-1
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/Nginx-IA-Configure_1.14.0-w1-wip1/source/configure.sh
...tes/Nginx-IA-Configure_1.14.0-w1-wip1/source/configure.sh
+1
-1
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/Nodejs-IA-Install_10.16.0-w1-wip1/files/install.sh
...plates/Nodejs-IA-Install_10.16.0-w1-wip1/files/install.sh
+1
-1
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/Nodejs-IA-Install_10.16.0-w1-wip1/source/install.sh
...lates/Nodejs-IA-Install_10.16.0-w1-wip1/source/install.sh
+1
-1
No files found.
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/CouchDBMS-IA-Configure_1.6.1-w1-wip1/files/configure.sh
View file @
f77c44ba
...
...
@@ -12,15 +12,18 @@ fn_pkginfo() {
fn_configure
()
{
test
-d
"
$CONFIGURE_CONFDIR
"
||
return
1
sudo tee
"
$CONFIGURE_CONFDIR
/local.d/10-admins.ini"
\
sudo tee
-a
"
$CONFIGURE_CONFDIR
/local.d/10-admins.ini"
\
<<<
"[admins]"
$'
\n
'
"
$DBMSUser
=
$DBMSPassword
"
sudo tee
"
$CONFIGURE_CONFDIR
/local.d/10
-bindings.ini"
\
sudo tee
-a
"
$CONFIGURE_CONFDIR
/local.d/15
-bindings.ini"
\
<<<
"[httpd]"
$'
\n
'
"bind_address = 0.0.0.0"
$'
\n
'
"port =
$DBMSPort
"
sudo tee
-a
"
$CONFIGURE_CONFDIR
/local.d/20-cors.ini"
\
<<<
"[httpd]"
$'
\n
'
"enable_cors = true"
$'
\n
'
"[cors]"
$'
\n
'
"origins = *"
sudo mkdir
"/run/
$CONFIGURE_PACKAGE
"
sudo chown
couchdb:couchdb
"/run/
$CONFIGURE_PACKAGE
"
sudo chown
couchdb:couchdb
"
$CONFIGURE_CONFDIR
/local.d/"
*
sudo chown
"
$CONFIGURE_PACKAGE
"
:
"
$CONFIGURE_PACKAGE
"
\
"/run/
$CONFIGURE_PACKAGE
"
"
$CONFIGURE_CONFDIR
/local.d/"
*
}
# env
...
...
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/CouchDBMS-IA-Configure_1.6.1-w1-wip1/source/configure.sh
View file @
f77c44ba
...
...
@@ -12,15 +12,18 @@ fn_pkginfo() {
fn_configure
()
{
test
-d
"
$CONFIGURE_CONFDIR
"
||
return
1
sudo tee
"
$CONFIGURE_CONFDIR
/local.d/10-admins.ini"
\
sudo tee
-a
"
$CONFIGURE_CONFDIR
/local.d/10-admins.ini"
\
<<<
"[admins]"
$'
\n
'
"
$DBMSUser
=
$DBMSPassword
"
sudo tee
"
$CONFIGURE_CONFDIR
/local.d/10
-bindings.ini"
\
sudo tee
-a
"
$CONFIGURE_CONFDIR
/local.d/15
-bindings.ini"
\
<<<
"[httpd]"
$'
\n
'
"bind_address = 0.0.0.0"
$'
\n
'
"port =
$DBMSPort
"
sudo tee
-a
"
$CONFIGURE_CONFDIR
/local.d/20-cors.ini"
\
<<<
"[httpd]"
$'
\n
'
"enable_cors = true"
$'
\n
'
"[cors]"
$'
\n
'
"origins = *"
sudo mkdir
"/run/
$CONFIGURE_PACKAGE
"
sudo chown
couchdb:couchdb
"/run/
$CONFIGURE_PACKAGE
"
sudo chown
couchdb:couchdb
"
$CONFIGURE_CONFDIR
/local.d/"
*
sudo chown
"
$CONFIGURE_PACKAGE
"
:
"
$CONFIGURE_PACKAGE
"
\
"/run/
$CONFIGURE_PACKAGE
"
"
$CONFIGURE_CONFDIR
/local.d/"
*
}
# env
...
...
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/CouchDBMS-IA-Configure_2.3.1-w1-wip1/files/configure.sh
View file @
f77c44ba
...
...
@@ -12,11 +12,18 @@ fn_pkginfo() {
fn_configure
()
{
test
-d
"
$CONFIGURE_CONFDIR
"
||
return
1
sudo tee
"
$CONFIGURE_CONFDIR
/local.d/10-admins.ini"
\
sudo tee
-a
"
$CONFIGURE_CONFDIR
/local.d/10-admins.ini"
\
<<<
"[admins]"
$'
\n
'
"
$DBMSUser
=
$DBMSPassword
"
sudo tee
"
$CONFIGURE_CONFDIR
/local.d/10-bindings.ini"
\
sudo tee
-a
"
$CONFIGURE_CONFDIR
/local.d/10-bindings.ini"
\
<<<
"[chttpd]"
$'
\n
'
"bind_address = 0.0.0.0"
$'
\n
'
"port =
$DBMSPort
"
sudo tee
-a
"
$CONFIGURE_CONFDIR
/local.d/10-cors.ini"
\
<<<
"[chttpd]"
$'
\n
'
"enable_cors = true"
$'
\n
'
"[cors]"
$'
\n
'
"origins = *"
sudo mkdir
"/run/
$CONFIGURE_PACKAGE
"
sudo chown
"
$CONFIGURE_PACKAGE
"
:
"
$CONFIGURE_PACKAGE
"
\
"/run/
$CONFIGURE_PACKAGE
"
"
$CONFIGURE_CONFDIR
/local.d/"
*
}
# env
...
...
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/CouchDBMS-IA-Configure_2.3.1-w1-wip1/source/configure.sh
View file @
f77c44ba
...
...
@@ -12,11 +12,18 @@ fn_pkginfo() {
fn_configure
()
{
test
-d
"
$CONFIGURE_CONFDIR
"
||
return
1
sudo tee
"
$CONFIGURE_CONFDIR
/local.d/10-admins.ini"
\
sudo tee
-a
"
$CONFIGURE_CONFDIR
/local.d/10-admins.ini"
\
<<<
"[admins]"
$'
\n
'
"
$DBMSUser
=
$DBMSPassword
"
sudo tee
"
$CONFIGURE_CONFDIR
/local.d/10-bindings.ini"
\
sudo tee
-a
"
$CONFIGURE_CONFDIR
/local.d/10-bindings.ini"
\
<<<
"[chttpd]"
$'
\n
'
"bind_address = 0.0.0.0"
$'
\n
'
"port =
$DBMSPort
"
sudo tee
-a
"
$CONFIGURE_CONFDIR
/local.d/10-cors.ini"
\
<<<
"[chttpd]"
$'
\n
'
"enable_cors = true"
$'
\n
'
"[cors]"
$'
\n
'
"origins = *"
sudo mkdir
"/run/
$CONFIGURE_PACKAGE
"
sudo chown
"
$CONFIGURE_PACKAGE
"
:
"
$CONFIGURE_PACKAGE
"
\
"/run/
$CONFIGURE_PACKAGE
"
"
$CONFIGURE_CONFDIR
/local.d/"
*
}
# env
...
...
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/CouchDBMS-IA-Install_2.3.1-w1-wip1/files/install.sh
View file @
f77c44ba
...
...
@@ -23,7 +23,7 @@ fn_pkgrepo() {
curl
-s
"
$INSTALL_REPOKEY
"
|
sudo
apt-key add -
sudo tee
"/etc/apt/sources.list.d/
$INSTALL_PACKAGE
.list"
\
sudo tee
-a
"/etc/apt/sources.list.d/
$INSTALL_PACKAGE
.list"
\
<<<
"deb
$INSTALL_REPOURL
$DISTRIB_CODENAME
main"
sudo
apt-get
-qy
update
...
...
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/CouchDBMS-IA-Install_2.3.1-w1-wip1/source/install.sh
View file @
f77c44ba
...
...
@@ -23,7 +23,7 @@ fn_pkgrepo() {
curl
-s
"
$INSTALL_REPOKEY
"
|
sudo
apt-key add -
sudo tee
"/etc/apt/sources.list.d/
$INSTALL_PACKAGE
.list"
\
sudo tee
-a
"/etc/apt/sources.list.d/
$INSTALL_PACKAGE
.list"
\
<<<
"deb
$INSTALL_REPOURL
$DISTRIB_CODENAME
main"
sudo
apt-get
-qy
update
...
...
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/Elasticsearch-IA-Configure_1.7.6-w1-wip1/files/configure.sh
View file @
f77c44ba
...
...
@@ -12,8 +12,17 @@ fn_pkginfo() {
fn_configure
()
{
test
-d
"
$CONFIGURE_CONFDIR
"
||
return
1
sudo tee
"
$CONFIGURE_CONFDIR
/elasticsearch.yml"
<<<
"http.port:
$APIPort
"
sudo tee
"
$CONFIGURE_CONFDIR
/elasticsearch.yml"
<<<
"network.host: 0.0.0.0"
sudo tee
-a
"
$CONFIGURE_CONFDIR
/elasticsearch.yml"
\
<<<
"http.cors.allow-origin: '*'"
sudo tee
-a
"
$CONFIGURE_CONFDIR
/elasticsearch.yml"
\
<<<
"http.cors.enabled: true"
sudo tee
-a
"
$CONFIGURE_CONFDIR
/elasticsearch.yml"
\
<<<
"http.port:
$APIPort
"
sudo tee
-a
"
$CONFIGURE_CONFDIR
/elasticsearch.yml"
\
<<<
"network.host: 0.0.0.0"
}
# env
...
...
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/Elasticsearch-IA-Configure_1.7.6-w1-wip1/source/configure.sh
View file @
f77c44ba
...
...
@@ -12,8 +12,17 @@ fn_pkginfo() {
fn_configure
()
{
test
-d
"
$CONFIGURE_CONFDIR
"
||
return
1
sudo tee
"
$CONFIGURE_CONFDIR
/elasticsearch.yml"
<<<
"http.port:
$APIPort
"
sudo tee
"
$CONFIGURE_CONFDIR
/elasticsearch.yml"
<<<
"network.host: 0.0.0.0"
sudo tee
-a
"
$CONFIGURE_CONFDIR
/elasticsearch.yml"
\
<<<
"http.cors.allow-origin: '*'"
sudo tee
-a
"
$CONFIGURE_CONFDIR
/elasticsearch.yml"
\
<<<
"http.cors.enabled: true"
sudo tee
-a
"
$CONFIGURE_CONFDIR
/elasticsearch.yml"
\
<<<
"http.port:
$APIPort
"
sudo tee
-a
"
$CONFIGURE_CONFDIR
/elasticsearch.yml"
\
<<<
"network.host: 0.0.0.0"
}
# env
...
...
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/Elasticsearch-IA-Configure_7.1.1-w1-wip1/files/configure.sh
View file @
f77c44ba
...
...
@@ -12,13 +12,19 @@ fn_pkginfo() {
fn_configure
()
{
test
-d
"
$CONFIGURE_CONFDIR
"
||
return
1
sudo tee
"
$CONFIGURE_CONFDIR
/elasticsearch.yml"
\
sudo tee
-a
"
$CONFIGURE_CONFDIR
/elasticsearch.yml"
\
<<<
"http.cors.allow-origin: '*'"
sudo tee
-a
"
$CONFIGURE_CONFDIR
/elasticsearch.yml"
\
<<<
"http.cors.enabled: true"
sudo tee
-a
"
$CONFIGURE_CONFDIR
/elasticsearch.yml"
\
<<<
"discovery.type: single-node"
sudo tee
"
$CONFIGURE_CONFDIR
/elasticsearch.yml"
\
sudo tee
-a
"
$CONFIGURE_CONFDIR
/elasticsearch.yml"
\
<<<
"http.port:
$APIPort
"
sudo tee
"
$CONFIGURE_CONFDIR
/elasticsearch.yml"
\
sudo tee
-a
"
$CONFIGURE_CONFDIR
/elasticsearch.yml"
\
<<<
"network.host: 0.0.0.0"
}
...
...
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/Elasticsearch-IA-Configure_7.1.1-w1-wip1/source/configure.sh
View file @
f77c44ba
...
...
@@ -12,13 +12,19 @@ fn_pkginfo() {
fn_configure
()
{
test
-d
"
$CONFIGURE_CONFDIR
"
||
return
1
sudo tee
"
$CONFIGURE_CONFDIR
/elasticsearch.yml"
\
sudo tee
-a
"
$CONFIGURE_CONFDIR
/elasticsearch.yml"
\
<<<
"http.cors.allow-origin: '*'"
sudo tee
-a
"
$CONFIGURE_CONFDIR
/elasticsearch.yml"
\
<<<
"http.cors.enabled: true"
sudo tee
-a
"
$CONFIGURE_CONFDIR
/elasticsearch.yml"
\
<<<
"discovery.type: single-node"
sudo tee
"
$CONFIGURE_CONFDIR
/elasticsearch.yml"
\
sudo tee
-a
"
$CONFIGURE_CONFDIR
/elasticsearch.yml"
\
<<<
"http.port:
$APIPort
"
sudo tee
"
$CONFIGURE_CONFDIR
/elasticsearch.yml"
\
sudo tee
-a
"
$CONFIGURE_CONFDIR
/elasticsearch.yml"
\
<<<
"network.host: 0.0.0.0"
}
...
...
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/Elasticsearch-IA-Install_7.1.1-w1-wip1/files/install.sh
View file @
f77c44ba
...
...
@@ -22,7 +22,7 @@ fn_pkgrepo() {
curl
-s
"
$INSTALL_REPOKEY
"
|
sudo
apt-key add -
sudo tee
"/etc/apt/sources.list.d/
$INSTALL_PACKAGE
.list"
\
sudo tee
-a
"/etc/apt/sources.list.d/
$INSTALL_PACKAGE
.list"
\
<<<
"deb
$INSTALL_REPOURL
stable main"
sudo
apt-get
-qy
update
...
...
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/Elasticsearch-IA-Install_7.1.1-w1-wip1/source/install.sh
View file @
f77c44ba
...
...
@@ -22,7 +22,7 @@ fn_pkgrepo() {
curl
-s
"
$INSTALL_REPOKEY
"
|
sudo
apt-key add -
sudo tee
"/etc/apt/sources.list.d/
$INSTALL_PACKAGE
.list"
\
sudo tee
-a
"/etc/apt/sources.list.d/
$INSTALL_PACKAGE
.list"
\
<<<
"deb
$INSTALL_REPOURL
stable main"
sudo
apt-get
-qy
update
...
...
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/MusicalCompetitionsApp-IA-ConnectTo_0.0.1-w1-wip1/files/connectTo.sh
View file @
f77c44ba
...
...
@@ -5,14 +5,12 @@ fn_pkginfo() {
CONNECT_PACKAGE
=
"musical-competitions"
CONNECT_VERSION
=
"0.0.1"
# ----------------------------------------------------------------------------
INSTALL_APIHOST
=
"http://
$VMIP
:
$APIPort
"
INSTALL_DBMSAPI
=
"http://
$DBMSUser
:
$DBMSPassword
@
$VMIP
:
$DBMSPort
"
INSTALL_EXECDIR
=
"/opt/
$INSTALL_PACKAGE
/
$INSTALL_VERSION
"
CONNECT_EXECDIR
=
"/opt/
$CONNECT_PACKAGE
/
$CONNECT_VERSION
"
}
# connect
fn_connect
()
{
exec
>
>
"
$INSTALL_EXECDIR
/
$ChannelType
.env"
exec
>
>(
sudo tee
-a
"
$CONNECT_EXECDIR
/
$ChannelType
.env"
)
case
"
$ChannelType
"
in
"CouchDB"
)
...
...
@@ -20,15 +18,11 @@ fn_connect() {
echo
"DBMSPort=
$DBMSPort
"
echo
"DBUser=
$DBUser
"
echo
"DBPassword=
$DBPassword
"
sed
-i
"s/
\(\"
couchdb
\"
:
\)
.*/
\1
\"
$INSTALL_DBMSAPI
\"
/"
\
"
$INSTALL_EXECDIR
/package.json"
;;
"Elasticsearch"
)
echo
"VMIP=
$VMIP
"
echo
"APIPort=
$APIPort
"
echo
"IndexName=
$IndexName
"
sed
-i
"s/
\(\"
elasticsearch
\"
:
\)
.*/
\1
\"
$INSTALL_APIHOST
\"
/"
\
"
$INSTALL_EXECDIR
/package.json"
;;
esac
}
...
...
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/MusicalCompetitionsApp-IA-ConnectTo_0.0.1-w1-wip1/source/connectTo.sh
View file @
f77c44ba
...
...
@@ -5,14 +5,12 @@ fn_pkginfo() {
CONNECT_PACKAGE
=
"musical-competitions"
CONNECT_VERSION
=
"0.0.1"
# ----------------------------------------------------------------------------
INSTALL_APIHOST
=
"http://
$VMIP
:
$APIPort
"
INSTALL_DBMSAPI
=
"http://
$DBMSUser
:
$DBMSPassword
@
$VMIP
:
$DBMSPort
"
INSTALL_EXECDIR
=
"/opt/
$INSTALL_PACKAGE
/
$INSTALL_VERSION
"
CONNECT_EXECDIR
=
"/opt/
$CONNECT_PACKAGE
/
$CONNECT_VERSION
"
}
# connect
fn_connect
()
{
exec
>
>
"
$INSTALL_EXECDIR
/
$ChannelType
.env"
exec
>
>(
sudo tee
-a
"
$CONNECT_EXECDIR
/
$ChannelType
.env"
)
case
"
$ChannelType
"
in
"CouchDB"
)
...
...
@@ -20,15 +18,11 @@ fn_connect() {
echo
"DBMSPort=
$DBMSPort
"
echo
"DBUser=
$DBUser
"
echo
"DBPassword=
$DBPassword
"
sed
-i
"s/
\(\"
couchdb
\"
:
\)
.*/
\1
\"
$INSTALL_DBMSAPI
\"
/"
\
"
$INSTALL_EXECDIR
/package.json"
;;
"Elasticsearch"
)
echo
"VMIP=
$VMIP
"
echo
"APIPort=
$APIPort
"
echo
"IndexName=
$IndexName
"
sed
-i
"s/
\(\"
elasticsearch
\"
:
\)
.*/
\1
\"
$INSTALL_APIHOST
\"
/"
\
"
$INSTALL_EXECDIR
/package.json"
;;
esac
}
...
...
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/MusicalCompetitionsApp-IA-Install_0.0.1-w1-wip1/files/install.sh
View file @
f77c44ba
...
...
@@ -6,7 +6,7 @@ fn_pkginfo() {
INSTALL_VERSION
=
"0.0.1"
# ----------------------------------------------------------------------------
INSTALL_EXECDIR
=
"/opt/
$INSTALL_PACKAGE
/
$INSTALL_VERSION
"
INSTALL_GITREPO
=
"https://github.com/
amarcic
/PreisausschreibenApp"
INSTALL_GITREPO
=
"https://github.com/
schlusslicht
/PreisausschreibenApp"
}
# install
...
...
@@ -25,5 +25,5 @@ source /etc/lsb-release
sudo
apt-get
-qy
update
# flow
fn_pkginfo
&&
fn_
pkgrepo
&&
fn_
install
\
fn_pkginfo
&&
fn_install
\
||
echo
"ERROR=INSTALL:
$INSTALL_PACKAGE
"
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/MusicalCompetitionsApp-IA-Install_0.0.1-w1-wip1/source/install.sh
View file @
f77c44ba
...
...
@@ -6,7 +6,7 @@ fn_pkginfo() {
INSTALL_VERSION
=
"0.0.1"
# ----------------------------------------------------------------------------
INSTALL_EXECDIR
=
"/opt/
$INSTALL_PACKAGE
/
$INSTALL_VERSION
"
INSTALL_GITREPO
=
"https://github.com/
amarcic
/PreisausschreibenApp"
INSTALL_GITREPO
=
"https://github.com/
schlusslicht
/PreisausschreibenApp"
}
# install
...
...
@@ -25,5 +25,5 @@ source /etc/lsb-release
sudo
apt-get
-qy
update
# flow
fn_pkginfo
&&
fn_
pkgrepo
&&
fn_
install
\
fn_pkginfo
&&
fn_install
\
||
echo
"ERROR=INSTALL:
$INSTALL_PACKAGE
"
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/MusicalCompetitionsApp-IA-Start_0.0.1-w1-wip1/files/start.sh
View file @
f77c44ba
...
...
@@ -14,10 +14,14 @@ fn_start() {
test
-f
"
$START_EXECDIR
/Elasticsearch.env"
||
return
1
source
"
$START_EXECDIR
/CouchDB.env"
export
COUCH
=
"http://
$DBMSUser
:
$DBMSPassword
@
$VMIP
:
$DBMSPort
"
export
COUCH
=
"http://
$VMIP
:
$DBMSPort
"
sudo sed
-i
"s#
\(\"
couchdb
\"
:
\)
\"
http.*#
\1
\"
$COUCH
/
\"
,#"
\
"
$START_EXECDIR
/package.json"
source
"
$START_EXECDIR
/Elasticsearch.env"
export
ELASTIC
=
"http://
$VMIP
:
$APIPort
"
sudo sed
-i
"s#
\(\"
elasticsearch
\"
:
\)
\"
http.*#
\1
\"
$ELASTIC
/
\"
,#"
\
"
$START_EXECDIR
/package.json"
(
cd
"
$START_EXECDIR
/utils"
&&
sudo
./syncCouchElastic.sh
)
(
cd
"
$START_EXECDIR
"
&&
sudo
npm run build
)
...
...
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/MusicalCompetitionsApp-IA-Start_0.0.1-w1-wip1/source/start.sh
View file @
f77c44ba
...
...
@@ -14,10 +14,14 @@ fn_start() {
test
-f
"
$START_EXECDIR
/Elasticsearch.env"
||
return
1
source
"
$START_EXECDIR
/CouchDB.env"
export
COUCH
=
"http://
$DBMSUser
:
$DBMSPassword
@
$VMIP
:
$DBMSPort
"
export
COUCH
=
"http://
$VMIP
:
$DBMSPort
"
sudo sed
-i
"s#
\(\"
couchdb
\"
:
\)
\"
http.*#
\1
\"
$COUCH
/
\"
,#"
\
"
$START_EXECDIR
/package.json"
source
"
$START_EXECDIR
/Elasticsearch.env"
export
ELASTIC
=
"http://
$VMIP
:
$APIPort
"
sudo sed
-i
"s#
\(\"
elasticsearch
\"
:
\)
\"
http.*#
\1
\"
$ELASTIC
/
\"
,#"
\
"
$START_EXECDIR
/package.json"
(
cd
"
$START_EXECDIR
/utils"
&&
sudo
./syncCouchElastic.sh
)
(
cd
"
$START_EXECDIR
"
&&
sudo
npm run build
)
...
...
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/MusicalCompetitionsDatabase-DA-Nginx_0.0.1-w1-wip1/files/MusicalCompetitionsDatabase.nginx
View file @
f77c44ba
user www-data;
pid /run/nginx.pid;
worker_processes auto;
error_log /proc/1/fd/1 warn;
pcre_jit on;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
server {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
...
...
@@ -25,19 +9,16 @@ http {
proxy_max_temp_file_size 0;
client_max_body_size 0;
server {
listen 80 default_server;
root /opt/musical-competitions/0.0.1/dist;
listen 80 default_server;
root /opt/musical-competitions/0.0.1/dist;
location / {
return 307 /app;
}
location /app {
try_files $uri $uri/ /index.html$is_args$args;
}
location /assets {
try_files $uri =404;
}
location = / {
return 307 ./app;
}
location /app {
try_files $uri $uri/ /index.html$is_args$args;
}
location /assets {
alias /opt/musical-competitions/0.0.1/dist;
}
}
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/Nginx-IA-Configure_1.14.0-w1-wip1/files/configure.sh
View file @
f77c44ba
...
...
@@ -16,7 +16,7 @@ fn_configure() {
while
read
-rd
';'
TUPLE
;
do
FILE
=
"
${
TUPLE
#*,
}
"
test
"
${
FILE
%.
$CONFIGURE_PACKAGE
}
"
==
"
$FILE
"
&&
continue
sudo
cp
"
$CONFIGURE_CSARDIR
/
$FILE
"
"
$CONFIGURE_CONFDIR
"
sudo
mv
"
$CONFIGURE_CSARDIR
/
$FILE
"
"
$CONFIGURE_CONFDIR
"
done
<<<
"
$DAs
"
}
...
...
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/Nginx-IA-Configure_1.14.0-w1-wip1/source/configure.sh
View file @
f77c44ba
...
...
@@ -16,7 +16,7 @@ fn_configure() {
while
read
-rd
';'
TUPLE
;
do
FILE
=
"
${
TUPLE
#*,
}
"
test
"
${
FILE
%.
$CONFIGURE_PACKAGE
}
"
==
"
$FILE
"
&&
continue
sudo
cp
"
$CONFIGURE_CSARDIR
/
$FILE
"
"
$CONFIGURE_CONFDIR
"
sudo
mv
"
$CONFIGURE_CSARDIR
/
$FILE
"
"
$CONFIGURE_CONFDIR
"
done
<<<
"
$DAs
"
}
...
...
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/Nodejs-IA-Install_10.16.0-w1-wip1/files/install.sh
View file @
f77c44ba
...
...
@@ -22,7 +22,7 @@ fn_pkgrepo() {
curl
-s
"
$INSTALL_REPOKEY
"
|
sudo
apt-key add -
sudo tee
"/etc/apt/sources.list.d/
$INSTALL_PACKAGE
.list"
\
sudo tee
-a
"/etc/apt/sources.list.d/
$INSTALL_PACKAGE
.list"
\
<<<
"deb
$INSTALL_REPOURL
$DISTRIB_CODENAME
main"
sudo
apt-get
-qy
update
...
...
artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/Nodejs-IA-Install_10.16.0-w1-wip1/source/install.sh
View file @
f77c44ba
...
...
@@ -22,7 +22,7 @@ fn_pkgrepo() {
curl
-s
"
$INSTALL_REPOKEY
"
|
sudo
apt-key add -
sudo tee
"/etc/apt/sources.list.d/
$INSTALL_PACKAGE
.list"
\
sudo tee
-a
"/etc/apt/sources.list.d/
$INSTALL_PACKAGE
.list"
\
<<<
"deb
$INSTALL_REPOURL
$DISTRIB_CODENAME
main"
sudo
apt-get
-qy
update
...
...
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