annotate smalt/instructions.sh @ 10:b75227b2833e draft default tip

Uploaded
author triasteran
date Tue, 08 Mar 2022 11:44:09 +0000
parents 81f36745bc9d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9
81f36745bc9d Uploaded
triasteran
parents:
diff changeset
1 # Run docker image 'debian/wheezy' in interactive mode
81f36745bc9d Uploaded
triasteran
parents:
diff changeset
2 sudo docker run -i -t debian:wheezy
81f36745bc9d Uploaded
triasteran
parents:
diff changeset
3
81f36745bc9d Uploaded
triasteran
parents:
diff changeset
4 # Run the below in this image
81f36745bc9d Uploaded
triasteran
parents:
diff changeset
5
81f36745bc9d Uploaded
triasteran
parents:
diff changeset
6 apt-get update
81f36745bc9d Uploaded
triasteran
parents:
diff changeset
7 apt-get install python
81f36745bc9d Uploaded
triasteran
parents:
diff changeset
8 apt-get install wget
81f36745bc9d Uploaded
triasteran
parents:
diff changeset
9 apt-get install mercurial
81f36745bc9d Uploaded
triasteran
parents:
diff changeset
10
81f36745bc9d Uploaded
triasteran
parents:
diff changeset
11 mkdir tool
81f36745bc9d Uploaded
triasteran
parents:
diff changeset
12 cd tool
81f36745bc9d Uploaded
triasteran
parents:
diff changeset
13
81f36745bc9d Uploaded
triasteran
parents:
diff changeset
14 wget ftp://ftp.sanger.ac.uk/pub4/resources/software/smalt/smalt-0.7.3.tgz
81f36745bc9d Uploaded
triasteran
parents:
diff changeset
15 tar -xvvzf smalt-0.7.3.tgz
81f36745bc9d Uploaded
triasteran
parents:
diff changeset
16
81f36745bc9d Uploaded
triasteran
parents:
diff changeset
17 # because the smalt_wrapper.py finds the binary name based on `uname -i` which is unknown in docker
81f36745bc9d Uploaded
triasteran
parents:
diff changeset
18 mv smalt-0.7.3/smalt_x86_64 smalt_unknown
81f36745bc9d Uploaded
triasteran
parents:
diff changeset
19
81f36745bc9d Uploaded
triasteran
parents:
diff changeset
20 hg clone https://toolshed.g2.bx.psu.edu/repos/cjav/smalt smalt_deps
81f36745bc9d Uploaded
triasteran
parents:
diff changeset
21 cp smalt_deps/smalt_wrapper.py .
81f36745bc9d Uploaded
triasteran
parents:
diff changeset
22
81f36745bc9d Uploaded
triasteran
parents:
diff changeset
23 # add smalt tools to PATH (probably different ways to do this)
81f36745bc9d Uploaded
triasteran
parents:
diff changeset
24 ln -s /tool/smalt_unknown /usr/bin
81f36745bc9d Uploaded
triasteran
parents:
diff changeset
25 ln -s /tool/smalt_wrapper.py /usr/bin
81f36745bc9d Uploaded
triasteran
parents:
diff changeset
26
81f36745bc9d Uploaded
triasteran
parents:
diff changeset
27 # make smalt_wrapper executable
81f36745bc9d Uploaded
triasteran
parents:
diff changeset
28 chmod a+x /tool/smalt_wrapper.py
81f36745bc9d Uploaded
triasteran
parents:
diff changeset
29
81f36745bc9d Uploaded
triasteran
parents:
diff changeset
30 # exit out of docker image and run the below to commit to new container. replace the number '07b...' with container id for the above docker container.
81f36745bc9d Uploaded
triasteran
parents:
diff changeset
31 sudo docker commit -m "make smalt_wrapper executable" -a "Aaron Petkau" 07b937918961 apetkau/smalt:v3
81f36745bc9d Uploaded
triasteran
parents:
diff changeset
32
81f36745bc9d Uploaded
triasteran
parents:
diff changeset
33 # push to dockerhub
81f36745bc9d Uploaded
triasteran
parents:
diff changeset
34 # please see instructions at http://docs.docker.com/userguide/dockerimages/#push-an-image-to-docker-hub