Mercurial > repos > bgruening > pg_dump
annotate macros.xml @ 0:68988da52803 draft default tip
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
author | bgruening |
---|---|
date | Wed, 24 Apr 2019 06:10:53 -0400 |
parents | |
children |
rev | line source |
---|---|
0
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
1 <?xml version="1.0"?> |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
2 <macros> |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
3 <xml name="inputs_outputs"> |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
4 <inputs> |
68988da52803
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" /> |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
6 <yield /> |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
7 </inputs> |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
8 <outputs> |
68988da52803
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}" /> |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
10 </outputs> |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
11 </xml> |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
12 |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
13 <xml name="requirements"> |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
14 <requirements> |
68988da52803
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> |
68988da52803
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> |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
17 </requirements> |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
18 </xml> |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
19 |
68988da52803
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> |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
21 |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
22 <token name="@HELP_FOOTER@"> |
68988da52803
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. |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
24 </token> |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
25 |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
26 <token name="@UNTAR_INFILE@"><![CDATA[ |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
27 tar -xjvf '$infile' && |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
28 export PWD=`pwd` && |
68988da52803
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 |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
30 ]]> |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
31 </token> |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
32 |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
33 <token name="@PG_SETUP@"><![CDATA[ |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
34 pglite setup -d ./postgresql && |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
35 @PG_START@ |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
36 ]]> |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
37 </token> |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
38 |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
39 <token name="@PSQL@"><![CDATA[ |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
40 psql "\$(pglite url -d ./postgresql)" |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
41 ]]> |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
42 </token> |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
43 |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
44 <token name="@STATUS_RUNNING@"><![CDATA[ |
68988da52803
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' && |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
46 pglite status -d ./postgresql && |
68988da52803
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' |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
48 && pglite status -d ./postgresql |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
49 ]]> |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
50 </token> |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
51 |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
52 <token name="@STOPPED@"><![CDATA[ |
68988da52803
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' |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
54 ]]> |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
55 </token> |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
56 |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
57 <token name="@PG_START@"><![CDATA[ |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
58 pglite start -d ./postgresql && |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
59 @STATUS_RUNNING@ |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
60 ]]> |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
61 </token> |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
62 |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
63 <token name="@PG_STOP@"><![CDATA[ |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
64 pglite stop -d ./postgresql && |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
65 @STOPPED@ |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
66 ]]> |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
67 </token> |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
68 |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
69 <token name="@ARCHIVE_DATABASE@"><![CDATA[ |
68988da52803
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 |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
71 ]]> |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
72 </token> |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
73 <xml name="citations"> |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
74 <citations></citations> |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
75 </xml> |
68988da52803
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
bgruening
parents:
diff
changeset
|
76 </macros> |