2014-02-09 22:28:05 +00:00
|
|
|
# Build everything at least. This is a work in progress.
|
|
|
|
#
|
|
|
|
# Useful for testing things before a release.
|
|
|
|
#
|
|
|
|
# Will also be used for running the camlistore.org website and public
|
|
|
|
# read-only blobserver.
|
|
|
|
|
|
|
|
FROM ubuntu:12.04
|
|
|
|
|
|
|
|
MAINTAINER camlistore <camlistore@googlegroups.com>
|
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
RUN apt-get update && apt-get upgrade -y
|
|
|
|
RUN apt-get install -y curl make git
|
|
|
|
|
2014-08-15 03:45:58 +00:00
|
|
|
RUN curl -o /tmp/go.tar.gz https://storage.googleapis.com/golang/go1.3.1.linux-amd64.tar.gz
|
2014-02-09 22:28:05 +00:00
|
|
|
RUN tar -C /usr/local -zxvf /tmp/go.tar.gz
|
|
|
|
RUN rm /tmp/go.tar.gz
|
|
|
|
RUN /usr/local/go/bin/go version
|
|
|
|
|
|
|
|
ENV GOROOT /usr/local/go
|
|
|
|
ENV PATH $GOROOT/bin:/gopath/bin:$PATH
|
|
|
|
|
|
|
|
RUN mkdir -p /gopath/src
|
|
|
|
ADD pkg /gopath/src/camlistore.org/pkg
|
|
|
|
ADD cmd /gopath/src/camlistore.org/cmd
|
|
|
|
ADD website /gopath/src/camlistore.org/website
|
|
|
|
ADD third_party /gopath/src/camlistore.org/third_party
|
|
|
|
ADD server /gopath/src/camlistore.org/server
|
|
|
|
ADD dev /gopath/src/camlistore.org/dev
|
2014-11-05 15:28:33 +00:00
|
|
|
ADD depcheck /gopath/src/camlistore.org/depcheck
|
2014-02-09 22:28:05 +00:00
|
|
|
|
|
|
|
RUN adduser --disabled-password --quiet --gecos Camli camli
|
|
|
|
RUN mkdir -p /gopath/bin
|
|
|
|
RUN chown camli.camli /gopath/bin
|
|
|
|
RUN mkdir -p /gopath/pkg
|
|
|
|
RUN chown camli.camli /gopath/pkg
|
|
|
|
USER camli
|
|
|
|
|
|
|
|
ENV GOPATH /gopath
|
|
|
|
|
2014-08-24 03:11:50 +00:00
|
|
|
RUN go install --tags=purego \
|
2014-02-09 22:28:05 +00:00
|
|
|
camlistore.org/server/camlistored \
|
|
|
|
camlistore.org/cmd/camput \
|
|
|
|
camlistore.org/cmd/camget \
|
|
|
|
camlistore.org/cmd/camtool \
|
2014-02-22 02:17:16 +00:00
|
|
|
camlistore.org/website \
|
2014-02-09 22:28:05 +00:00
|
|
|
camlistore.org/dev/devcam
|
|
|
|
|
2014-02-10 02:01:25 +00:00
|
|
|
ENV USER camli
|
|
|
|
ENV HOME /home/camli
|
2014-02-09 22:28:05 +00:00
|
|
|
WORKDIR /home/camli
|
|
|
|
|
|
|
|
EXPOSE 80 443 3179 8080
|
|
|
|
|
|
|
|
CMD /bin/bash
|