Browse code

Add support for an optional ".bashrc" file

If `.bashrc` exists at the root of the source tree, it will be used as the `~/.bashrc` inside the container.

Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>

Tianon Gravi authored on 2015/03/03 02:33:26
Showing 2 changed files
... ...
@@ -30,3 +30,4 @@ docs/VERSION
30 30
 docs/GITCOMMIT
31 31
 docs/changed-files
32 32
 autogen/
33
+.bashrc
... ...
@@ -142,6 +142,9 @@ VOLUME /var/lib/docker
142 142
 WORKDIR /go/src/github.com/docker/docker
143 143
 ENV DOCKER_BUILDTAGS apparmor selinux btrfs_noversion
144 144
 
145
+# Let us use a .bashrc file
146
+RUN ln -sfv $PWD/.bashrc ~/.bashrc
147
+
145 148
 # Install man page generator
146 149
 COPY vendor /go/src/github.com/docker/docker/vendor
147 150
 # (copy vendor/ because go-md2man needs golang.org/x/net)