Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
miwurster committed Jan 10, 2020
1 parent cbef103 commit 37e501a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Definitions xmlns="http://docs.oasis-open.org/tosca/ns/2011/12" xmlns:winery="http://www.opentosca.org/winery/extensions/tosca/2013/02/12" xmlns:selfservice="http://www.eclipse.org/winery/model/selfservice" xmlns:testwineryopentoscaorg="http://test.winery.opentosca.org" targetNamespace="https://edmm.uni-stuttgart.de/artifacttemplates" id="winery-defs-for_ateIgeneral1-MySQL_Database-Configure">
<ArtifactTemplate xmlns:atyIgeneral="https://edmm.uni-stuttgart.de/artifacttypes" name="MySQL_Database-Configure" type="atyIgeneral:Archive" id="MySQL_Database-Configure">
<ArtifactReferences>
<ArtifactReference reference="artifacttemplates/https%253A%252F%252Fedmm.uni-stuttgart.de%252Fartifacttemplates/MySQL-DB-Configure/files/configure.sh"/>
</ArtifactReferences>
</ArtifactTemplate>
</Definitions>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
application/vnd.oasis.tosca.definitions
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
if [[ -d "/docker-entrypoint-initdb.d" ]]; then
find . -type f -name '*.sql' -exec cp {} /docker-entrypoint-initdb.d \;
else
file_name=$(find . -type f -name '*.sql')
cat $file_name | mysql -u root --password=${DBMS_ROOT_PASSWORD}
fi
exit 0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
text/x-sh

0 comments on commit 37e501a

Please sign in to comment.