Skip to content

Commit ed45321

Browse files
committed
Expose only $PWD
1 parent c8e439c commit ed45321

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ Of course, you can put the directory with the wrappers in your `$PATH`.
2424

2525
## Notes
2626

27-
* Only `/home` is made available in the docker container. If you need another
27+
* Only `$PWD` is made available in the docker container. If you need another
2828
directory, edit the `irb` and `ruby` wrappers.
2929
* You can also use the `run.sh` script to get a `/bin/bash` shell in the container.
30-
* Things in the container run as `root`, so be careful!
30+
* Things in the container run as `root`, so be careful! Because only `$PWD` is available
31+
it can only mess up `$PWD`, but still...

irb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22

3-
docker run -t -i -v /home:/home addestino/railsday /bin/bash -c "cd $PWD; /usr/bin/irb $*"
3+
docker run -t -i -v $PWD:$PWD -w=$PWD addestino/railsday /usr/bin/irb $*

ruby

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22

3-
docker run -t -i -v /home:/home addestino/railsday /bin/bash -c "cd $PWD; /usr/bin/ruby $*"
3+
docker run -t -i -v $PWD:$PWD -w=$PWD addestino/railsday /usr/bin/ruby $*

run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22

3-
docker run -t -i -v /home:/home addestino/railsday /bin/bash
3+
docker run -t -i -v $PWD:$PWD -w=$PWD addestino/railsday /bin/bash

0 commit comments

Comments
 (0)