Skip to content

Commit

Permalink
docker: don't overwrite root fs
Browse files Browse the repository at this point in the history
  • Loading branch information
mreiferson committed Aug 8, 2015
1 parent 925f82a commit 275c3b3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM busybox

ADD dist/docker/bin/ /
ADD dist/docker/bin/ /nsq_bin/
RUN cd / && ln -s /nsq_bin/* . \
&& cd /bin && ln -s /nsq_bin/* .

EXPOSE 4150 4151 4160 4161 4170 4171

Expand Down
8 changes: 6 additions & 2 deletions dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,14 @@ set -e
# build binary distributions for linux/amd64 and darwin/amd64

DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
mkdir -p $DIR/dist
rm -rf $DIR/dist/docker
if [ -e $DIR/dist/docker ]; then
rm -rf $DIR/dist/docker
fi
mkdir -p $DIR/dist/docker

if [ -e $DIR/.godeps ]; then
rm -rf $DIR/.godeps
fi
mkdir -p $DIR/.godeps
export GOPATH=$DIR/.godeps:$GOPATH
GOPATH=$DIR/.godeps gpm install
Expand Down

0 comments on commit 275c3b3

Please sign in to comment.