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
|
|
|
|
|
2018-05-02 06:01:24 +00:00
|
|
|
# Add each directory separately, so our context doesn't include the
|
|
|
|
# Dockerfile itself, to permit quicker iteration with docker's
|
|
|
|
# caching.
|
2018-05-02 20:35:23 +00:00
|
|
|
ADD .git /go/src/perkeep.org/.git
|
|
|
|
add app /go/src/perkeep.org/app
|
2018-05-02 06:01:24 +00:00
|
|
|
ADD clients /go/src/perkeep.org/clients
|
|
|
|
ADD cmd /go/src/perkeep.org/cmd
|
|
|
|
ADD config /go/src/perkeep.org/config
|
|
|
|
ADD dev /go/src/perkeep.org/dev
|
|
|
|
ADD doc /go/src/perkeep.org/doc
|
|
|
|
ADD internal /go/src/perkeep.org/internal
|
|
|
|
ADD pkg /go/src/perkeep.org/pkg
|
|
|
|
ADD server /go/src/perkeep.org/server
|
|
|
|
ADD website /go/src/perkeep.org/website
|
|
|
|
ADD make.go /go/src/perkeep.org/make.go
|
2018-05-02 20:35:23 +00:00
|
|
|
ADD VERSION /go/src/perkeep.org/VERSION
|
|
|
|
|
2021-12-27 20:18:08 +00:00
|
|
|
RUN go run make.go -v
|
2018-05-02 06:01:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FROM debian:stretch
|
2014-02-09 22:28:05 +00:00
|
|
|
|
2018-05-02 20:35:23 +00:00
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
2021-12-04 20:41:19 +00:00
|
|
|
libsqlite3-dev ca-certificates && rm -rf /var/lib/apt/lists/*
|
2018-05-02 20:35:23 +00:00
|
|
|
|
2018-05-02 06:01:24 +00:00
|
|
|
RUN mkdir -p /home/keepy/bin
|
|
|
|
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
|
2014-02-09 22:28:05 +00:00
|
|
|
CMD /bin/bash
|