Skip to content

Commit

Permalink
docker: Include only necessary files in bootstrap image.
Browse files Browse the repository at this point in the history
The images were getting bloated by vendored files, etc.
  • Loading branch information
enisoc committed Nov 3, 2015
1 parent 3dd746a commit 8c86edd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Godeps/_workspace/pkg
Godeps/_workspace/bin
_test
java/*/target
java/*/bin
php/vendor

8 changes: 7 additions & 1 deletion docker/bootstrap/Dockerfile.common
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,12 @@ ENV CGO_LDFLAGS -L$VTROOT/dist/vt-zookeeper-3.3.5/lib
ENV LD_LIBRARY_PATH $VTROOT/dist/vt-zookeeper-3.3.5/lib

# Copy files needed for bootstrap
COPY . /vt/src/github.com/youtube/vitess
COPY bootstrap.sh dev.env /vt/src/github.com/youtube/vitess/
COPY config /vt/src/github.com/youtube/vitess/config
COPY third_party /vt/src/github.com/youtube/vitess/third_party
COPY tools /vt/src/github.com/youtube/vitess/tools
COPY travis /vt/src/github.com/youtube/vitess/travis
COPY php/composer.* /vt/src/github.com/youtube/vitess/php/

# Install gRPC and protobuf as root
RUN $VTTOP/travis/install_protobuf.sh
Expand All @@ -89,3 +94,4 @@ VOLUME /vt/vtdataroot

# If the user doesn't specify a command, load a shell.
CMD ["/bin/bash"]

0 comments on commit 8c86edd

Please sign in to comment.