Mercurial > repos > bgruening > pg_import
annotate macros.xml @ 0:2c43bac3579f draft default tip
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
author | bgruening |
---|---|
date | Wed, 24 Apr 2019 06:11:25 -0400 |
parents | |
children |
rev | line source |
---|---|
0
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
1 <?xml version="1.0"?> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
2 <macros> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
3 <xml name="inputs_outputs"> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
4 <inputs> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
5 <param format="tabular" help="" label="Input tabular dataset" name="in_file" type="data" /> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
6 <yield /> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
7 </inputs> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
8 <outputs> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
9 <data format="tabular" name="out_file" label="${tool.name} on ${on_string}" /> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
10 </outputs> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
11 </xml> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
12 |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
13 <xml name="requirements"> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
14 <requirements> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
15 <requirement type="package" version="@PG_VERSION@">postgresql</requirement> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
16 <requirement type="package" version="0.1">pglite</requirement> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
17 </requirements> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
18 </xml> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
19 |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
20 <token name="@PG_VERSION@">11.2</token> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
21 |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
22 <token name="@HELP_FOOTER@"> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
23 The postgresql tools, are using a postgresql database in user-space. Databases are packed into a tarball and stored in the user-history. |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
24 </token> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
25 |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
26 <token name="@UNTAR_INFILE@"><![CDATA[ |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
27 tar -xjvf '$infile' && |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
28 export PWD=`pwd` && |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
29 sed -i.bak "s|unix_socket_directories.*|unix_socket_directories = '\$PWD/postgresql/'|" ./postgresql/db/postgresql.conf |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
30 ]]> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
31 </token> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
32 |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
33 <token name="@PG_SETUP@"><![CDATA[ |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
34 pglite setup -d ./postgresql && |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
35 @PG_START@ |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
36 ]]> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
37 </token> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
38 |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
39 <token name="@PSQL@"><![CDATA[ |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
40 psql "\$(pglite url -d ./postgresql)" |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
41 ]]> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
42 </token> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
43 |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
44 <token name="@STATUS_RUNNING@"><![CDATA[ |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
45 timeout 60 bash -c 'until pglite status -d ./postgresql | grep -F -q "server is running"; do sleep 1; done' && |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
46 pglite status -d ./postgresql && |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
47 timeout 60 bash -c 'until ls -la ./postgresql | grep -F -q ".s.PGSQL.5432"; do sleep 1; done' |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
48 && pglite status -d ./postgresql |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
49 ]]> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
50 </token> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
51 |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
52 <token name="@STOPPED@"><![CDATA[ |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
53 timeout 60 bash -c 'until pglite status -d ./postgresql | grep -F -q "no server running"; do sleep 1; done' |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
54 ]]> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
55 </token> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
56 |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
57 <token name="@PG_START@"><![CDATA[ |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
58 pglite start -d ./postgresql && |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
59 @STATUS_RUNNING@ |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
60 ]]> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
61 </token> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
62 |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
63 <token name="@PG_STOP@"><![CDATA[ |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
64 pglite stop -d ./postgresql && |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
65 @STOPPED@ |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
66 ]]> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
67 </token> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
68 |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
69 <token name="@ARCHIVE_DATABASE@"><![CDATA[ |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
70 tar -cvjf postgresql_out.tar.bz2 postgresql |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
71 ]]> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
72 </token> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
73 <xml name="citations"> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
74 <citations></citations> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
75 </xml> |
2c43bac3579f
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
76 </macros> |