Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (23 sloc) 969 Bytes
# Everything about this is kind of gross, but it does get a server running
FROM centos:latest
# OS setup
RUN yum install -y make golang git
RUN mkdir -p /app/dispatchd && mkdir -p /data/dispatchd/
RUN yum install -y python-setuptools.noarch gcc-c++ glibc-headers
RUN easy_install mako
# protobuf
RUN cd /tmp && curl -L -o protobuf-2.6.1.tar.gz
RUN cd /tmp && tar -xzf protobuf-2.6.1.tar.gz
RUN cd /tmp/protobuf-2.6.1/ && ./configure && make install
# Build dispatchd
ENV BUILD_DIR /app/dispatchd/src/
RUN mkdir -p $BUILD_DIR
ENV GOPATH /app/dispatchd
RUN cd $BUILD_DIR && PATH=$PATH:$GOPATH/bin make install
# Runtime configuration
RUN cp $BUILD_DIR/config.default.json /etc/dispatchd.json
CMD ["/app/dispatchd/bin/server", "-config-file=/etc/dispatchd.json", "-persist-dir=/data/dispatchd/"]
You can’t perform that action at this time.