# HG changeset patch
# User gga
# Date 1562578490 14400
# Node ID 0e5b44c358d1846e78d5cb4072b1b53ae29ce4f0
# Parent de04361b6ba37d86d131d34cbf2d215ec38672f6
planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/chado commit 0b135f1ea2623ea68e41ac88e13d99e6b4ad8bea
diff -r de04361b6ba3 -r 0e5b44c358d1 macros.xml
--- a/macros.xml Tue Mar 05 05:14:07 2019 -0500
+++ b/macros.xml Mon Jul 08 05:34:50 2019 -0400
@@ -2,12 +2,16 @@
- python-chado
+ python-chado
jq
+ postgresql
+ pglite
+ 11.2
+
@@ -16,7 +20,7 @@
- 2.2.5
+ 2.2.6
@@ -32,19 +36,6 @@
- '.auth.yml' &&
- echo "local:" >> '.auth.yml' &&
- echo " dbhost: \"\$GALAXY_CHADO_DBHOST\"" >> '.auth.yml' &&
- echo " dbname: \"\$GALAXY_CHADO_DBNAME\"" >> '.auth.yml' &&
- echo " dbpass: \"\$GALAXY_CHADO_DBPASS\"" >> '.auth.yml' &&
- echo " dbuser: \"\$GALAXY_CHADO_DBUSER\"" >> '.auth.yml' &&
- echo " dbschema: \"\$GALAXY_CHADO_DBSCHEMA\"" >> '.auth.yml' &&
- echo " dbport: \"\$GALAXY_CHADO_DBPORT\"" >> '.auth.yml' &&
-
- CHAKIN_GLOBAL_CONFIG_PATH='.auth.yml'
- ]]>
-
@@ -83,4 +74,63 @@
label="Sequence type of the parent"
help="this should be a Sequence Ontology term" />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ '.auth.yml' &&
+ echo "local:" >> '.auth.yml' &&
+ echo " dbhost: \"\$GALAXY_CHADO_DBHOST\"" >> '.auth.yml' &&
+ echo " dbname: \"\$GALAXY_CHADO_DBNAME\"" >> '.auth.yml' &&
+ echo " dbpass: \"\$GALAXY_CHADO_DBPASS\"" >> '.auth.yml' &&
+ echo " dbuser: \"\$GALAXY_CHADO_DBUSER\"" >> '.auth.yml' &&
+ echo " dbschema: \"\$GALAXY_CHADO_DBSCHEMA\"" >> '.auth.yml' &&
+ echo " dbport: \"\$GALAXY_CHADO_DBPORT\"" >> '.auth.yml' &&
+
+ export CHAKIN_GLOBAL_CONFIG_PATH='.auth.yml'
+ ; fi
+ ]]>
+
+ /dev/null &&
+ . '$__tool_directory__/prepare_psql.sh' '$psql_target.schema'
+ #else
+ @AUTH@
+ #end if
+ ]]>
+
+
+
+ /dev/null
+ ;
+ ## Make sure psql is stopped even if loading script failed
+ pglite stop -d ./postgresql || true
+ #end if
+ ]]>
diff -r de04361b6ba3 -r 0e5b44c358d1 organism_delete_all_organisms.xml
--- a/organism_delete_all_organisms.xml Tue Mar 05 05:14:07 2019 -0500
+++ b/organism_delete_all_organisms.xml Mon Jul 08 05:34:50 2019 -0400
@@ -6,7 +6,7 @@
'$results'
+
+&& @ZIP_PSQL@
]]>
-
+
+
-
-
+
+
+
+ psql_target['method'] == "pgtools"
+
Delete all organisms
diff -r de04361b6ba3 -r 0e5b44c358d1 prepare_psql.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/prepare_psql.sh Mon Jul 08 05:34:50 2019 -0400
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+export PWD=`pwd` &&
+sed -i.bak "s|unix_socket_directories.*|unix_socket_directories = '$PWD/postgresql/'|" ./postgresql/db/postgresql.conf &&
+
+pglite start -d ./postgresql &&
+
+timeout 60 bash -c 'until pglite status -d ./postgresql | grep -F -q "server is running"; do sleep 1; done' &&
+pglite status -d ./postgresql &&
+timeout 60 bash -c 'until ls -la ./postgresql | grep -F -q ".s.PGSQL.5432"; do sleep 1; done' &&
+pglite status -d ./postgresql &&
+
+echo "__default: local" > '.auth.yml' &&
+echo "local:" >> '.auth.yml' &&
+echo " dbhost: \"xxx\"" >> '.auth.yml' &&
+echo " dbname: \"xxx\"" >> '.auth.yml' &&
+echo " dbpass: \"xxx\"" >> '.auth.yml' &&
+echo " dbuser: \"xxx\"" >> '.auth.yml' &&
+echo " dbschema: \"$1\"" >> '.auth.yml' &&
+echo " dbport: \"xxx\"" >> '.auth.yml' &&
+echo " dburl: \"$(pglite url -d ./postgresql)\"" >> '.auth.yml' &&
+
+export CHAKIN_GLOBAL_CONFIG_PATH='.auth.yml'