Skip to content
This repository has been archived by the owner on Jul 25, 2020. It is now read-only.

Check downloaded archive with GPG. #12

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ ADD nginx_ssl.conf /root/
ADD nginx.conf /root/

ENV DEBIAN_FRONTEND noninteractive
ENV OWNCLOUD_VERSION 8.0.3
RUN dpkg-divert --local --rename --add /sbin/initctl && ln -sf /bin/true /sbin/initctl

RUN export LANG=C.UTF-8 ;\
Expand All @@ -15,7 +16,15 @@ RUN export LANG=C.UTF-8 ;\
RUN apt-get update && \
apt-get install -y php5-cli php5-gd php5-pgsql php5-sqlite php5-mysqlnd php5-curl php5-intl php5-mcrypt php5-ldap php5-gmp php5-apcu php5-imagick php5-fpm smbclient nginx wget

ADD https://download.owncloud.org/community/owncloud-8.0.3.tar.bz2 /tmp/oc.tar.bz2
RUN mkdir /tmp/gpg && \
chmod 700 /tmp/gpg
## https://owncloud.org/owncloud.asc
ADD owncloud.asc /tmp/gpg/owncloud.asc
ADD https://download.owncloud.org/community/owncloud-$OWNCLOUD_VERSION.tar.bz2 /tmp/oc.tar.bz2
ADD https://download.owncloud.org/community/owncloud-$OWNCLOUD_VERSION.tar.bz2.asc /tmp/oc.tar.bz2.asc
RUN gpg --homedir /tmp/gpg --import /tmp/gpg/owncloud.asc && \
gpg --homedir /tmp/gpg --verify /tmp/oc.tar.bz2.asc && \
rm -r /tmp/oc.tar.bz2.asc /tmp/gpg
RUN mkdir -p /var/www/owncloud /owncloud /var/log/cron && \
tar -C /var/www/ -xf /tmp/oc.tar.bz2 && \
chown -R www-data:www-data /var/www/owncloud && \
Expand Down
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.PHONY: verify-gpg-public-keys
verify-gpg-public-keys: owncloud.asc

## Always renew
.PHONY: owncloud.asc
owncloud.asc:
wget --output-document "$@" "https://owncloud.org/$@"
git diff --exit-code -- owncloud.asc && echo 'OK' || echo 'Not OK'
52 changes: 52 additions & 0 deletions owncloud.asc
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2.0.19 (GNU/Linux)

mQINBFJcGnwBEACREiisqNAOlZhflsGCN+Pf7s/s3YuaXG8rJ4SPp4HdOc5nTLHt
6naWzj53tODA9mQ8ELe1F3GF3lYl9epR85FWwebZnXV7la0Y0PBNCOYKKzPTgmW9
U0tsqcRTtNtA6LrbpWqqBaJxTlDr1lX01pvt1pjeHN1bPX6ox/2wbFr4jMrr1sdU
QYF+/VFdtikeKYJzGqRFjdLqqmFmlBUzzg8ogSUNUmJZkRPSIJadi4QQA63+MaEL
ik/sczFYAMwOuyQUdh1/rEgbHk9RmD1aMkvGCuXbDXlVpU9HI5bqFxyFoJ925FWq
WZ4yIwzN+QNUXNQmTh/nw7hsxczD6YVWvvfMa7XovnueeuhmVvM9EcYF0gEotRI0
b1P1jie9eQXSgJAFgrl7TEHvK5IRLu9iarVfYlpApgHKE8NrYKS5+WRTvrFou2sg
Q0Fj8nX+xSkfnjIdZJCkTfPsZ48U07jrqT8wBZhVBaChZVBJzyOCnmLTpJdAk0kf
doXYlJHvVAhl3eGrocrQ8p2cLLaialh07EKjRC/frfRqx7D2LNYrTRd59u8eivLX
Y3Afl/XmawvD/+80ekKNg04M9tK+jwqjVyNekVuVLrUKU71t6UaAK1cdgyGlFk1T
QGSv8faQ9tR/LKX8uh4pYFNNZUG3MQW4wZxEq2RJzrP+exlzYXiQPuCSuwARAQAB
tBxvd25DbG91ZCA8aW5mb0Bvd25jbG91ZC5jb20+iQI+BBMBAgAoBQJSXBp8AhsD
BQkDwmcABgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgAAKCRAtXV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