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 2017 The Perkeep Authors.
|
2014-02-08 21:58:20 +00:00
|
|
|
|
2017-05-31 18:10:20 +00:00
|
|
|
FROM openjdk:8-jdk
|
2014-02-08 21:58:20 +00:00
|
|
|
|
2017-05-31 18:10:20 +00:00
|
|
|
MAINTAINER camlistore <camlistore@googlegroups.com>
|
2014-02-22 02:17:59 +00:00
|
|
|
|
2017-05-31 18:10:20 +00:00
|
|
|
RUN echo "Adding gopher user and group" \
|
|
|
|
&& groupadd --system --gid 1000 gopher \
|
|
|
|
&& useradd --system --gid gopher --uid 1000 --shell /bin/bash --create-home gopher \
|
|
|
|
&& mkdir /home/gopher/.gradle \
|
|
|
|
&& chown --recursive gopher:gopher /home/gopher
|
|
|
|
|
|
|
|
# To enable running android tools such as aapt
|
|
|
|
RUN apt-get update && apt-get -y upgrade
|
|
|
|
RUN apt-get install -y lib32z1 lib32stdc++6
|
|
|
|
# For Go:
|
|
|
|
RUN apt-get -y --no-install-recommends install curl gcc
|
|
|
|
RUN apt-get -y --no-install-recommends install ca-certificates libc6-dev git
|
|
|
|
|
|
|
|
USER gopher
|
|
|
|
VOLUME "/home/gopher/.gradle"
|
|
|
|
ENV GOPHER /home/gopher
|
|
|
|
|
|
|
|
# Get android sdk, ndk, and rest of the stuff needed to build the android app.
|
|
|
|
WORKDIR $GOPHER
|
|
|
|
RUN mkdir android-sdk
|
|
|
|
ENV ANDROID_HOME $GOPHER/android-sdk
|
|
|
|
WORKDIR $ANDROID_HOME
|
|
|
|
RUN curl -O https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip
|
|
|
|
RUN echo '444e22ce8ca0f67353bda4b85175ed3731cae3ffa695ca18119cbacef1c1bea0 sdk-tools-linux-3859397.zip' | sha256sum -c
|
|
|
|
RUN unzip sdk-tools-linux-3859397.zip
|
|
|
|
RUN echo y | $ANDROID_HOME/tools/bin/sdkmanager --update
|
2018-02-02 20:34:10 +00:00
|
|
|
RUN echo y | $ANDROID_HOME/tools/bin/sdkmanager 'platforms;android-27'
|
|
|
|
RUN echo y | $ANDROID_HOME/tools/bin/sdkmanager 'build-tools;27.0.0'
|
2017-05-31 18:10:20 +00:00
|
|
|
RUN echo y | $ANDROID_HOME/tools/bin/sdkmanager 'extras;android;m2repository'
|
|
|
|
RUN echo y | $ANDROID_HOME/tools/bin/sdkmanager 'ndk-bundle'
|
2014-02-09 01:07:56 +00:00
|
|
|
|
2016-05-13 19:06:23 +00:00
|
|
|
# Get Go stable release
|
2017-05-31 18:10:20 +00:00
|
|
|
WORKDIR $GOPHER
|
2018-09-20 01:03:19 +00:00
|
|
|
RUN curl -O https://storage.googleapis.com/golang/go1.11.linux-amd64.tar.gz
|
|
|
|
RUN echo 'b3fcf280ff86558e0559e185b601c9eade0fd24c900b4c63cd14d1d38613e499 go1.11.linux-amd64.tar.gz' | sha256sum -c
|
|
|
|
RUN tar -xzf go1.11.linux-amd64.tar.gz
|
2017-05-31 18:10:20 +00:00
|
|
|
ENV GOPATH $GOPHER
|
|
|
|
ENV GOROOT $GOPHER/go
|
|
|
|
ENV PATH $PATH:$GOROOT/bin:$GOPHER/bin
|
|
|
|
|
|
|
|
# Get gomobile
|
|
|
|
RUN go get -u golang.org/x/mobile/cmd/gomobile
|
|
|
|
WORKDIR $GOPATH/src/golang.org/x/mobile/cmd/gomobile
|
2018-02-02 20:34:10 +00:00
|
|
|
RUN git reset --hard 069be623eb8e75049d64f1419849b3e92aab1c81
|
2017-05-31 18:10:20 +00:00
|
|
|
RUN go install
|
|
|
|
|
|
|
|
# init gomobile
|
|
|
|
RUN gomobile init -ndk $ANDROID_HOME/ndk-bundle
|
|
|
|
|
|
|
|
CMD ["/bin/bash"]
|