forked from InformaticsMatters/pipelines
-
Notifications
You must be signed in to change notification settings - Fork 0
/
execute
executable file
·32 lines (31 loc) · 1.26 KB
/
execute
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/bash
echo
echo "PIPELINES"
echo "---------"
echo "You have just run the built-in 'execute' command. Congratulations!"
echo ""
echo "In order to use this container productively you need to provide your own"
echo "'execute' script or command and any corresponding data files."
echo ""
echo "You could mount a volume into this container that contains an executable"
echo "file named 'execute', which contains the command you wish to run,"
echo "and also include any additional data files. When you run the container,"
echo "adjust the default container WORKDIR by using the docker '-w' option,"
echo "specifying the mounted path of the volume as its value. As an example,"
echo "if you've placed an 'execute' and its data in the current working"
echo "directory you could run the container like this: -"
echo ""
echo " $ docker run --rm \\"
echo " -v \$PWD:/squonk/work/docker \\"
echo " -w=\"/squonk/work/docker\" \\"
echo " $PIPELINE"
echo ""
echo "Alternatively you can run interactive commands by over-riding the"
echo "built-in container 'CMD' (which is './execute'). To enter the"
echo "container's shell (bash) using the default 'WORKDIR' you can run: -"
echo ""
echo " $ docker run --rm \\"
echo " -it \\"
echo " $PIPELINE \\"
echo " bash"
echo