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
|
|
|
|
2018-05-02 06:01:24 +00:00
|
|
|
FROM buildpack-deps:stretch-scm AS pkbuild
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
# gcc for cgo, sqlite
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
|
|
g++ \
|
|
|
|
gcc \
|
|
|
|
libc6-dev \
|
|
|
|
make \
|
|
|
|
pkg-config \
|
2021-01-24 01:36:42 +00:00
|
|
|
libsqlite3-dev
|
2018-05-02 06:01:24 +00:00
|
|
|
|
2021-01-24 01:36:42 +00:00
|
|
|
ENV GOLANG_VERSION 1.15.7
|
2018-05-02 06:01:24 +00:00
|
|
|
|
|
|
|
WORKDIR /usr/local
|
2018-12-31 18:21:50 +00:00
|
|
|
RUN wget -O go.tgz https://dl.google.com/go/go${GOLANG_VERSION}.linux-amd64.tar.gz
|
2021-01-24 01:36:42 +00:00
|
|
|
RUN echo "0d142143794721bb63ce6c8a6180c4062bcf8ef4715e7d6d6609f3a8282629b3 go.tgz" | sha256sum -c -
|
2018-05-02 06:01:24 +00:00
|
|
|
RUN tar -zxvf go.tgz
|
2016-02-10 00:28:01 +00:00
|
|
|
|
|
|
|
ENV GOROOT /usr/local/go
|
2018-05-02 06:01:24 +00:00
|
|
|
ENV GOPATH /go
|
|
|
|
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
|
|
|
|
|
|
|
|
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
|
|
|
|
WORKDIR $GOPATH
|
|
|
|
|
|
|
|
# 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-01-24 01:36:42 +00:00
|
|
|
ADD go.mod /go/src/perkeep.org/go.mod
|
|
|
|
ADD go.sum /go/src/perkeep.org/go.sum
|
2018-05-02 06:01:24 +00:00
|
|
|
|
|
|
|
WORKDIR /go/src/perkeep.org
|
2018-05-02 20:35:23 +00:00
|
|
|
|
2018-05-02 06:01:24 +00:00
|
|
|
RUN go run make.go --sqlite=true -v
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 \
|
|
|
|
libsqlite3-dev && rm -rf /var/lib/apt/lists/*
|
|
|
|
|
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
|