Jelajahi Sumber

Merge pull request #30 from bcwaldon/docker-builder

docker: replace docker build
Eugene Yakubovich 10 tahun lalu
induk
melakukan
7e1527f0fe
2 mengubah file dengan 6 tambahan dan 9 penghapusan
  1. 0 9
      Dockerfile
  2. 6 0
      README.md

+ 0 - 9
Dockerfile

@@ -1,9 +0,0 @@
-FROM ubuntu:12.04
-# Let's install go just like Docker (from source).
-RUN apt-get update -q
-RUN DEBIAN_FRONTEND=noninteractive apt-get install -qy build-essential curl git linux-libc-dev
-RUN curl -s https://storage.googleapis.com/golang/go1.3.1.src.tar.gz | tar -v -C /usr/local -xz
-RUN cd /usr/local/go/src && ./make.bash --no-clean 2>&1
-ENV PATH /usr/local/go/bin:$PATH
-ADD . /opt/rudder
-RUN cd /opt/rudder && ./build

+ 6 - 0
README.md

@@ -22,6 +22,12 @@ of etcd which maintains the overlay to actual IP mappings.
 * Step 2: Git clone the Rudder repo: ```git clone git@github.com:coreos/rudder.git```
 * Step 3: Run the build script: ```cd rudder; ./build```
 
+Alternatively, you can build rudder in a docker container with the following command. Replace $SRC with the absolute path to your rudder source code:
+
+```
+docker run -v $SRC:/opt/rudder -i -t google/golang /bin/bash -c "cd /opt/rudder && ./build"
+```
+
 ## Configuration
 
 Rudder reads its configuration from etcd. By default, it will read the configuration