Rename import paths from camlistore.org to perkeep.org.
Part of the project renaming, issue #981.
After this, users will need to mv their $GOPATH/src/camlistore.org to
$GOPATH/src/perkeep.org. Sorry.
This doesn't yet rename the tools like camlistored, camput, camget,
camtool, etc.
Also, this only moves the lru package to internal. More will move to
internal later.
Also, this doesn't yet remove the "/pkg/" directory. That'll likely
happen later.
This updates some docs, but not all.
devcam test now passes again, even with Go 1.10 (which requires vet
checks are clean too). So a bunch of vet tests are fixed in this CL
too, and a bunch of other broken tests are now fixed (introduced from
the past week of merging the CL backlog).
Change-Id: If580db1691b5b99f8ed6195070789b1f44877dd4
2018-01-01 22:41:41 +00:00
|
|
|
# Copyright 2014 The Perkeep Authors.
|
|
|
|
# Generic purpose Perkeep image, that builds the server (camlistored)
|
2016-02-10 00:28:01 +00:00
|
|
|
# and the command-line clients (camput, camget, camtool, and cammount).
|
2014-02-09 22:28:05 +00:00
|
|
|
|
2016-02-10 00:28:01 +00:00
|
|
|
# See misc/docker/go to generate camlistore/go
|
|
|
|
FROM camlistore/go
|
2014-02-09 22:28:05 +00:00
|
|
|
|
|
|
|
MAINTAINER camlistore <camlistore@googlegroups.com>
|
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
2016-02-10 00:28:01 +00:00
|
|
|
RUN apt-get -y --no-install-recommends install adduser
|
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
|
|
|
|
|
2016-02-10 00:28:01 +00:00
|
|
|
RUN mkdir -p /gopath/src
|
Rename import paths from camlistore.org to perkeep.org.
Part of the project renaming, issue #981.
After this, users will need to mv their $GOPATH/src/camlistore.org to
$GOPATH/src/perkeep.org. Sorry.
This doesn't yet rename the tools like camlistored, camput, camget,
camtool, etc.
Also, this only moves the lru package to internal. More will move to
internal later.
Also, this doesn't yet remove the "/pkg/" directory. That'll likely
happen later.
This updates some docs, but not all.
devcam test now passes again, even with Go 1.10 (which requires vet
checks are clean too). So a bunch of vet tests are fixed in this CL
too, and a bunch of other broken tests are now fixed (introduced from
the past week of merging the CL backlog).
Change-Id: If580db1691b5b99f8ed6195070789b1f44877dd4
2018-01-01 22:41:41 +00:00
|
|
|
ADD internal /gopath/src/perkeep.org/internal
|
|
|
|
ADD app /gopath/src/perkeep.org/app
|
|
|
|
ADD dev /gopath/src/perkeep.org/dev
|
|
|
|
ADD cmd /gopath/src/perkeep.org/cmd
|
|
|
|
ADD vendor /gopath/src/perkeep.org/vendor
|
|
|
|
ADD server /gopath/src/perkeep.org/server
|
|
|
|
ADD pkg /gopath/src/perkeep.org/pkg
|
|
|
|
ADD make.go /gopath/src/perkeep.org/make.go
|
|
|
|
RUN echo 'dev' > /gopath/src/perkeep.org/VERSION
|
2016-02-10 00:28:01 +00:00
|
|
|
|
|
|
|
ENV GOROOT /usr/local/go
|
|
|
|
ENV PATH $GOROOT/bin:/gopath/bin:$PATH
|
2014-02-09 22:28:05 +00:00
|
|
|
ENV GOPATH /gopath
|
2016-02-10 00:28:01 +00:00
|
|
|
ENV CGO_ENABLED 0
|
2017-02-28 00:39:35 +00:00
|
|
|
ENV CAMLI_GOPHERJS_GOROOT /usr/local/go
|
2014-02-09 22:28:05 +00:00
|
|
|
|
Rename import paths from camlistore.org to perkeep.org.
Part of the project renaming, issue #981.
After this, users will need to mv their $GOPATH/src/camlistore.org to
$GOPATH/src/perkeep.org. Sorry.
This doesn't yet rename the tools like camlistored, camput, camget,
camtool, etc.
Also, this only moves the lru package to internal. More will move to
internal later.
Also, this doesn't yet remove the "/pkg/" directory. That'll likely
happen later.
This updates some docs, but not all.
devcam test now passes again, even with Go 1.10 (which requires vet
checks are clean too). So a bunch of vet tests are fixed in this CL
too, and a bunch of other broken tests are now fixed (introduced from
the past week of merging the CL backlog).
Change-Id: If580db1691b5b99f8ed6195070789b1f44877dd4
2018-01-01 22:41:41 +00:00
|
|
|
WORKDIR /gopath/src/perkeep.org
|
2016-06-09 14:20:31 +00:00
|
|
|
RUN go run make.go
|
Rename import paths from camlistore.org to perkeep.org.
Part of the project renaming, issue #981.
After this, users will need to mv their $GOPATH/src/camlistore.org to
$GOPATH/src/perkeep.org. Sorry.
This doesn't yet rename the tools like camlistored, camput, camget,
camtool, etc.
Also, this only moves the lru package to internal. More will move to
internal later.
Also, this doesn't yet remove the "/pkg/" directory. That'll likely
happen later.
This updates some docs, but not all.
devcam test now passes again, even with Go 1.10 (which requires vet
checks are clean too). So a bunch of vet tests are fixed in this CL
too, and a bunch of other broken tests are now fixed (introduced from
the past week of merging the CL backlog).
Change-Id: If580db1691b5b99f8ed6195070789b1f44877dd4
2018-01-01 22:41:41 +00:00
|
|
|
RUN cp -a /gopath/src/perkeep.org/bin/* /gopath/bin/
|
2014-02-09 22:28:05 +00:00
|
|
|
|
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
|