annotate toolfactory/maketf.sh @ 0:f288fab71d8b draft default tip

Uploaded
author fubar2
date Mon, 26 Apr 2021 04:18:54 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
f288fab71d8b Uploaded
fubar2
parents:
diff changeset
1 # if a new ubuntu image, will need a port mapped and add some basics first
f288fab71d8b Uploaded
fubar2
parents:
diff changeset
2 # apt update ; apt install -y python3-dev python3-venv python3-wheel nano curl wget git python3-setuptools
f288fab71d8b Uploaded
fubar2
parents:
diff changeset
3 TARGDIR="/galaxy-central"
f288fab71d8b Uploaded
fubar2
parents:
diff changeset
4 PDIR="/planemo"
f288fab71d8b Uploaded
fubar2
parents:
diff changeset
5 git clone --recursive https://github.com/fubar2/planemo.git $PDIR
f288fab71d8b Uploaded
fubar2
parents:
diff changeset
6 mkdir -p $TARGDIR
f288fab71d8b Uploaded
fubar2
parents:
diff changeset
7 curl -L -s https://github.com/galaxyproject/galaxy/archive/dev.tar.gz | tar xzf - --strip-components=1 -C $TARGDIR
f288fab71d8b Uploaded
fubar2
parents:
diff changeset
8 cd $PDIR
f288fab71d8b Uploaded
fubar2
parents:
diff changeset
9 mkdir mytools
f288fab71d8b Uploaded
fubar2
parents:
diff changeset
10 python3 -m venv .venv
f288fab71d8b Uploaded
fubar2
parents:
diff changeset
11 . .venv/bin/activate
f288fab71d8b Uploaded
fubar2
parents:
diff changeset
12 python3 setup.py build
f288fab71d8b Uploaded
fubar2
parents:
diff changeset
13 python3 setup.py install
f288fab71d8b Uploaded
fubar2
parents:
diff changeset
14 planemo conda_init --conda_prefix $PDIR/con
f288fab71d8b Uploaded
fubar2
parents:
diff changeset
15 /planemo/con/bin/conda init
f288fab71d8b Uploaded
fubar2
parents:
diff changeset
16 . ~/.bashrc
f288fab71d8b Uploaded
fubar2
parents:
diff changeset
17 /planemo/con/bin/conda activate base
f288fab71d8b Uploaded
fubar2
parents:
diff changeset
18 /planemo/con/bin/conda install -y -c bioconda -c conda-forge configparser galaxyxml
f288fab71d8b Uploaded
fubar2
parents:
diff changeset
19 # without this, planemo does not work in docker... No clue why but planemo goes all pear shaped
f288fab71d8b Uploaded
fubar2
parents:
diff changeset
20 # but pip reports that it's missing - installing it explicitly seems to do some kind of magic
f288fab71d8b Uploaded
fubar2
parents:
diff changeset
21 echo "Starting first run. This takes ages and includes building the Galaxy client. Be patient. Do something else for 20 minutes"
f288fab71d8b Uploaded
fubar2
parents:
diff changeset
22 . $PDIR/.venv/bin/activate
f288fab71d8b Uploaded
fubar2
parents:
diff changeset
23 planemo tool_factory --galaxy_root $TARGDIR --port 9090 --host 0.0.0.0 --conda_dependency_resolution --conda_auto_install
f288fab71d8b Uploaded
fubar2
parents:
diff changeset
24 # planemo tool_factory --galaxy_root $TARGDIR --port 8080 --host 0.0.0.0 --conda_dependency_resolution --conda_auto_install
f288fab71d8b Uploaded
fubar2
parents:
diff changeset
25 #planemo tool_factory --galaxy_root $TARGDIR --conda_prefix $PDIR/con --port 9090 --host 0.0.0.0
f288fab71d8b Uploaded
fubar2
parents:
diff changeset
26 # planemo serve --galaxy_root /galaxy-central/ --conda_prefix /planemo/con --port 8080 --host 0.0.0.0 --conda_dependency_resolution --conda_auto_install /planemo/.venv/lib/python3.8/site-packages/planemo-0.74.1-py3.8.egg/planemo_ext/tool_factory_2
f288fab71d8b Uploaded
fubar2
parents:
diff changeset
27 # planemo serve --galaxy_root /galaxy-central/ --port 8080 --host 0.0.0.0 --conda_dependency_resolution --conda_auto_install /planemo/.venv/lib/python3.8/site-packages/planemo-0.74.1-py3.8.egg/planemo_ext/tool_factory_2
f288fab71d8b Uploaded
fubar2
parents:
diff changeset
28 # planemo serve --galaxy_root $TARGDIR --port 8080 --host 0.0.0.0 --conda_dependency_resolution --conda_auto_install /usr/local/lib/python3.6/dist-packages/planemo-0.74.1-py3.6.egg/planemo_ext/tool_factory_2/
f288fab71d8b Uploaded
fubar2
parents:
diff changeset
29
f288fab71d8b Uploaded
fubar2
parents:
diff changeset
30 # host is needed to get -p 9090:9090 to work in docker. Default 127.0.0.1 doesn't redirect :(ls -l /tmp