Browse Source

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 10 years ago
parent
commit
c62230a879
2 changed files with 4 additions and 0 deletions
  1. 1 0
      .gitignore
  2. 3 0
      Dockerfile

+ 1 - 0
.gitignore

@@ -30,3 +30,4 @@ docs/VERSION
 docs/GITCOMMIT
 docs/changed-files
 autogen/
+.bashrc

+ 3 - 0
Dockerfile

@@ -142,6 +142,9 @@ VOLUME /var/lib/docker
 WORKDIR /go/src/github.com/docker/docker
 ENV DOCKER_BUILDTAGS apparmor selinux btrfs_noversion
 
+# Let us use a .bashrc file
+RUN ln -sfv $PWD/.bashrc ~/.bashrc
+
 # Install man page generator
 COPY vendor /go/src/github.com/docker/docker/vendor
 # (copy vendor/ because go-md2man needs golang.org/x/net)