Skip to content

Commit

Permalink
#4: Install scripts restructured.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bystroushaak committed Mar 16, 2016
1 parent 7e1a264 commit 0e9d5ff
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 32 deletions.
32 changes: 0 additions & 32 deletions resolver/docker/scripts/install_resolver.sh

This file was deleted.

19 changes: 19 additions & 0 deletions resolver/docker/scripts/install_resolver2_root.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#! /usr/bin/env bash

cp /tmp/czidlo/*.war /usr/share/tomcat7/webapps

cat > /usr/share/tomcat7/conf/context.xml <<EOF
<Context antiJARLocking="true" path="/api">
<Resource auth="Container"
driverClassName="org.postgresql.Driver"
maxActive="100" maxIdle="30" maxWait="200"
name="jdbc/postgres"
username="testuser"
password="testpass"
type="javax.sql.DataSource"
url="jdbc:postgresql://localhost:5432/czidlo_core"
/>
</Context>
EOF

# systemctl restart tomcat
9 changes: 9 additions & 0 deletions resolver/docker/scripts/install_resolver_postgres.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#! /usr/bin/env bash

mkdir /tmp/czidlo
cd /tmp/czidlo

wget https://github.com/NLCR/CZIDLO/releases/download/v4.3.alpha/CZIDLO_4.3.alpha-installation.zip.zip
unzip CZIDLO_4.3.alpha-installation.zip.zip

psql -a -f initDatabase_4.3.alpha.sql

0 comments on commit 0e9d5ff

Please sign in to comment.