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.
|
2018-04-21 18:04:53 +00:00
|
|
|
# Generic purpose Perkeep image, that builds the server (perkeepd)
|
2018-04-22 19:35:28 +00:00
|
|
|
# and the command-line clients (pk, pk-put, pk-get, and pk-mount).
|
2014-02-09 22:28:05 +00:00
|
|
|
|
2018-05-02 06:01:24 +00:00
|
|
|
# TODO: add the HEIC-supporting imagemagick to this Dockerfile too, in
|
|
|
|
# some way that's minimally gross and not duplicating
|
|
|
|
# misc/docker/heiftojpeg's Dockerfile entirely. Not decided best way.
|
|
|
|
# TODO: likewise, djpeg binary? maybe. https://perkeep.org/issue/1142
|
2014-02-09 22:28:05 +00:00
|
|
|
|
2022-05-03 18:21:58 +00:00
|
|
|
FROM golang:1.18 AS pkbuild
|
2018-05-02 06:01:24 +00:00
|
|
|
|
|
|
|
MAINTAINER Perkeep Authors <perkeep@googlegroups.com>
|
2014-02-09 22:28:05 +00:00
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
2018-05-02 06:01:24 +00:00
|
|
|
|
2022-05-03 18:35:15 +00:00
|
|
|
WORKDIR /go/src/perkeep.org
|
|
|
|
|
|
|
|
COPY go.mod go.sum ./
|
|
|
|
RUN go mod download
|
|
|
|
|
2022-05-03 18:41:32 +00:00
|
|
|
COPY . .
|
2018-05-02 20:35:23 +00:00
|
|
|
|
2021-12-27 20:18:08 +00:00
|
|
|
RUN go run make.go -v
|
2018-05-02 06:01:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2022-05-03 18:56:07 +00:00
|
|
|
FROM gcr.io/distroless/base
|
2014-02-09 22:28:05 +00:00
|
|
|
|
2018-05-02 06:01:24 +00:00
|
|
|
ENV HOME /home/keepy
|
|
|
|
ENV PATH /home/keepy/bin:$PATH
|
2014-02-09 22:28:05 +00:00
|
|
|
|
2018-05-02 06:01:24 +00:00
|
|
|
COPY --from=pkbuild /go/bin/pk* /home/keepy/bin/
|
|
|
|
COPY --from=pkbuild /go/bin/perkeepd /home/keepy/bin/
|
2014-02-09 22:28:05 +00:00
|
|
|
|
|
|
|
EXPOSE 80 443 3179 8080
|
|
|
|
|
2018-05-02 06:01:24 +00:00
|
|
|
WORKDIR /home/keepy
|
2022-05-03 18:56:07 +00:00
|
|
|
CMD ["perkeepd"]
|