@@ -23,6 +23,7 @@ Set up aliases in `.*rc` file:
23
23
```
24
24
alias mountbox="${HOME}/.docker-box/docker-box-static-mount.sh"
25
25
alias box="${HOME}/.docker-box/docker-box.sh"
26
+ alias boxed="${HOME}/.docker-box/docker-box-script.sh"
26
27
alias dr="${HOME}/.docker-box/docker-box-run.sh"
27
28
```
28
29
@@ -34,19 +35,21 @@ For example:
34
35
```
35
36
alias mountbox="DOCKER_BOX_APPS_PATH=${HOME}/.docker-box-apps ${HOME}/.docker-box/docker-box-static-mount.sh"
36
37
alias box="DOCKER_BOX_APPS_PATH=${HOME}/.docker-box-apps ${HOME}/.docker-box/docker-box.sh"
38
+ alias boxed="DOCKER_BOX_APPS_PATH=${HOME}/.docker-box-apps ${HOME}/.docker-box/docker-box-script.sh"
37
39
alias dr="${HOME}/.docker-box/docker-box-run.sh"
38
40
```
39
41
40
42
## Usage
41
43
42
- There are three different use-cases currently to share data between your
44
+ There are four different use-cases currently to share data between your
43
45
sandboxed app (= the untrusted thing you want to run) and the host (= your
44
- computer). If you have installed the three aliases as mentioned above, those
46
+ computer). If you have installed the four aliases as mentioned above, those
45
47
will match:
46
48
47
49
1 . Having the current working directory in your container (= ` box ` )
48
- 2 . Have a static mount in your container (= ` mountbox ` )
49
- 3 . Run the current directory like a docker container (for development) (= ` dr ` )
50
+ 2 . Having the current working directory in your container and run it non-interactively (= ` boxed ` )
51
+ 3 . Have a static mount in your container (= ` mountbox ` )
52
+ 4 . Run the current directory like a docker container (for development) (= ` dr ` )
50
53
51
54
### 1. Mount the current working directory into ` /app `
52
55
@@ -57,7 +60,17 @@ box youtube-dl ...
57
60
Would download the URL you passed as argument into the current directory
58
61
through ` youtube-dl ` .
59
62
60
- ### 2. Mount a static sandbox directory into ` /app `
63
+ ### 1. Mount the current working directory into ` /app `
64
+
65
+ ```
66
+ boxed pdf-document-feeder my-scanned-document.pdf my-scanned-document-sorted.pdf
67
+ ```
68
+
69
+ Would sort ` my-scanned-document.pdf ` when you used a PDF feeder without duplex
70
+ to scan it. It will not attach a terminal to it, so it could run, for example,
71
+ in Automator scripts.
72
+
73
+ ### 3. Mount a static sandbox directory into ` /app `
61
74
62
75
```
63
76
mountbox youtube-dl ...
@@ -66,7 +79,7 @@ mountbox youtube-dl ...
66
79
This will use the ` sandbox ` subdirectory below the ` docker-box ` scripts, thus
67
80
downloading into that directory when using the ` youtube-dl ` docker-box-app.
68
81
69
- ### 3 . Directly run the current directory with a Dockerfile inside a container
82
+ ### 4 . Directly run the current directory with a Dockerfile inside a container
70
83
71
84
```
72
85
dr cargo run --help
0 commit comments