mirror of
https://github.com/friendica/docker
synced 2024-11-15 18:59:27 +01:00
Friendica Release 2022.02
This commit is contained in:
parent
a06442fb86
commit
e5f935f6ec
|
@ -1,54 +0,0 @@
|
|||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
# just check if we execute apache or php-fpm
|
||||
if (expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]) && [ "${FRIENDICA_UPGRADE:-false}" = "true" ]; then
|
||||
curl -fsSL -o "/usr/src/friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256" "https://files.friendi.ca/friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256"
|
||||
curl -fsSL -o "/usr/src/friendica-addons-${FRIENDICA_ADDONS}.tar.gz.sum256" "https://files.friendi.ca/friendica-full-${FRIENDICA_ADDONS}.tar.gz.sum256"
|
||||
|
||||
# Don't download already latest sources
|
||||
if [ -f "/usr/src/friendica.tar.gz.sum256" ] && [ -f "/usr/src/friendica-addons.tar.gz.sum256" ] && \
|
||||
cmp -s "/usr/src/friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256" "/usr/src/friendica.tar.gz.sum256" && \
|
||||
cmp -s "/usr/src/friendica-addons-${FRIENDICA_ADDONS}.tar.gz.sum256" "/usr/src/friendica-addons.tar.gz.sum256"; then
|
||||
echo "Already latest sources - skipped download"
|
||||
else
|
||||
|
||||
echo "Download sources for ${FRIENDICA_VERSION} (Addon: ${FRIENDICA_ADDONS})"
|
||||
|
||||
# Removing the whole directory first
|
||||
rm -fr /usr/src/friendica
|
||||
export GNUPGHOME="$(mktemp -d)"
|
||||
|
||||
gpg --batch --logger-fd=1 --no-tty --quiet --keyserver keyserver.ubuntu.com --recv-keys 08656443618E6567A39524083EE197EF3F9E4287
|
||||
|
||||
curl -fsSL -o friendica-full-${FRIENDICA_VERSION}.tar.gz "https://files.friendi.ca/friendica-full-${FRIENDICA_VERSION}.tar.gz"
|
||||
curl -fsSL -o friendica-full-${FRIENDICA_VERSION}.tar.gz.asc "https://files.friendi.ca/friendica-full-${FRIENDICA_VERSION}.tar.gz.asc";
|
||||
gpg --batch --logger-fd=1 --no-tty --quiet --verify friendica-full-${FRIENDICA_VERSION}.tar.gz.asc friendica-full-${FRIENDICA_VERSION}.tar.gz
|
||||
echo "Core sources (${FRIENDICA_VERSION}) verified"
|
||||
|
||||
tar -xzf friendica-full-${FRIENDICA_VERSION}.tar.gz -C /usr/src/
|
||||
rm friendica-full-${FRIENDICA_VERSION}.tar.gz friendica-full-${FRIENDICA_VERSION}.tar.gz.asc
|
||||
mv -f /usr/src/friendica-full-${FRIENDICA_VERSION}/ /usr/src/friendica
|
||||
echo "Core sources (${FRIENDICA_VERSION}) extracted"
|
||||
|
||||
chmod 777 /usr/src/friendica/view/smarty3
|
||||
|
||||
curl -fsSL -o friendica-addons-${FRIENDICA_ADDONS}.tar.gz "https://files.friendi.ca/friendica-addons-${FRIENDICA_ADDONS}.tar.gz"
|
||||
curl -fsSL -o friendica-addons-${FRIENDICA_ADDONS}.tar.gz.asc "https://files.friendi.ca/friendica-addons-${FRIENDICA_ADDONS}.tar.gz.asc"
|
||||
gpg --batch --logger-fd=1 --no-tty --quiet --verify friendica-addons-${FRIENDICA_ADDONS}.tar.gz.asc friendica-addons-${FRIENDICA_ADDONS}.tar.gz
|
||||
echo "Addon sources (${FRIENDICA_ADDONS}) verified"
|
||||
|
||||
mkdir -p /usr/src/friendica/addon
|
||||
tar -xzf friendica-addons-${FRIENDICA_ADDONS}.tar.gz -C /usr/src/friendica/addon --strip-components=1
|
||||
rm friendica-addons-${FRIENDICA_ADDONS}.tar.gz friendica-addons-${FRIENDICA_ADDONS}.tar.gz.asc
|
||||
echo "Addon sources (${FRIENDICA_ADDONS}) extracted"
|
||||
|
||||
gpgconf --kill all
|
||||
rm -rf "$GNUPGHOME"
|
||||
|
||||
mv -f /usr/src/friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256 /usr/src/friendica.tar.gz.sum256
|
||||
mv -f /usr/src/friendica-addons-${FRIENDICA_ADDONS}.tar.gz.sum256 /usr/src/friendica-addons.tar.gz.sum256
|
||||
fi
|
||||
fi
|
||||
|
||||
exec /entrypoint.sh "$@"
|
|
@ -1,54 +0,0 @@
|
|||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
# just check if we execute apache or php-fpm
|
||||
if (expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]) && [ "${FRIENDICA_UPGRADE:-false}" = "true" ]; then
|
||||
curl -fsSL -o "/usr/src/friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256" "https://files.friendi.ca/friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256"
|
||||
curl -fsSL -o "/usr/src/friendica-addons-${FRIENDICA_ADDONS}.tar.gz.sum256" "https://files.friendi.ca/friendica-full-${FRIENDICA_ADDONS}.tar.gz.sum256"
|
||||
|
||||
# Don't download already latest sources
|
||||
if [ -f "/usr/src/friendica.tar.gz.sum256" ] && [ -f "/usr/src/friendica-addons.tar.gz.sum256" ] && \
|
||||
cmp -s "/usr/src/friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256" "/usr/src/friendica.tar.gz.sum256" && \
|
||||
cmp -s "/usr/src/friendica-addons-${FRIENDICA_ADDONS}.tar.gz.sum256" "/usr/src/friendica-addons.tar.gz.sum256"; then
|
||||
echo "Already latest sources - skipped download"
|
||||
else
|
||||
|
||||
echo "Download sources for ${FRIENDICA_VERSION} (Addon: ${FRIENDICA_ADDONS})"
|
||||
|
||||
# Removing the whole directory first
|
||||
rm -fr /usr/src/friendica
|
||||
export GNUPGHOME="$(mktemp -d)"
|
||||
|
||||
gpg --batch --logger-fd=1 --no-tty --quiet --keyserver keyserver.ubuntu.com --recv-keys 08656443618E6567A39524083EE197EF3F9E4287
|
||||
|
||||
curl -fsSL -o friendica-full-${FRIENDICA_VERSION}.tar.gz "https://files.friendi.ca/friendica-full-${FRIENDICA_VERSION}.tar.gz"
|
||||
curl -fsSL -o friendica-full-${FRIENDICA_VERSION}.tar.gz.asc "https://files.friendi.ca/friendica-full-${FRIENDICA_VERSION}.tar.gz.asc";
|
||||
gpg --batch --logger-fd=1 --no-tty --quiet --verify friendica-full-${FRIENDICA_VERSION}.tar.gz.asc friendica-full-${FRIENDICA_VERSION}.tar.gz
|
||||
echo "Core sources (${FRIENDICA_VERSION}) verified"
|
||||
|
||||
tar -xzf friendica-full-${FRIENDICA_VERSION}.tar.gz -C /usr/src/
|
||||
rm friendica-full-${FRIENDICA_VERSION}.tar.gz friendica-full-${FRIENDICA_VERSION}.tar.gz.asc
|
||||
mv -f /usr/src/friendica-full-${FRIENDICA_VERSION}/ /usr/src/friendica
|
||||
echo "Core sources (${FRIENDICA_VERSION}) extracted"
|
||||
|
||||
chmod 777 /usr/src/friendica/view/smarty3
|
||||
|
||||
curl -fsSL -o friendica-addons-${FRIENDICA_ADDONS}.tar.gz "https://files.friendi.ca/friendica-addons-${FRIENDICA_ADDONS}.tar.gz"
|
||||
curl -fsSL -o friendica-addons-${FRIENDICA_ADDONS}.tar.gz.asc "https://files.friendi.ca/friendica-addons-${FRIENDICA_ADDONS}.tar.gz.asc"
|
||||
gpg --batch --logger-fd=1 --no-tty --quiet --verify friendica-addons-${FRIENDICA_ADDONS}.tar.gz.asc friendica-addons-${FRIENDICA_ADDONS}.tar.gz
|
||||
echo "Addon sources (${FRIENDICA_ADDONS}) verified"
|
||||
|
||||
mkdir -p /usr/src/friendica/addon
|
||||
tar -xzf friendica-addons-${FRIENDICA_ADDONS}.tar.gz -C /usr/src/friendica/addon --strip-components=1
|
||||
rm friendica-addons-${FRIENDICA_ADDONS}.tar.gz friendica-addons-${FRIENDICA_ADDONS}.tar.gz.asc
|
||||
echo "Addon sources (${FRIENDICA_ADDONS}) extracted"
|
||||
|
||||
gpgconf --kill all
|
||||
rm -rf "$GNUPGHOME"
|
||||
|
||||
mv -f /usr/src/friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256 /usr/src/friendica.tar.gz.sum256
|
||||
mv -f /usr/src/friendica-addons-${FRIENDICA_ADDONS}.tar.gz.sum256 /usr/src/friendica-addons.tar.gz.sum256
|
||||
fi
|
||||
fi
|
||||
|
||||
exec /entrypoint.sh "$@"
|
|
@ -1,54 +0,0 @@
|
|||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
# just check if we execute apache or php-fpm
|
||||
if (expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]) && [ "${FRIENDICA_UPGRADE:-false}" = "true" ]; then
|
||||
curl -fsSL -o "/usr/src/friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256" "https://files.friendi.ca/friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256"
|
||||
curl -fsSL -o "/usr/src/friendica-addons-${FRIENDICA_ADDONS}.tar.gz.sum256" "https://files.friendi.ca/friendica-full-${FRIENDICA_ADDONS}.tar.gz.sum256"
|
||||
|
||||
# Don't download already latest sources
|
||||
if [ -f "/usr/src/friendica.tar.gz.sum256" ] && [ -f "/usr/src/friendica-addons.tar.gz.sum256" ] && \
|
||||
cmp -s "/usr/src/friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256" "/usr/src/friendica.tar.gz.sum256" && \
|
||||
cmp -s "/usr/src/friendica-addons-${FRIENDICA_ADDONS}.tar.gz.sum256" "/usr/src/friendica-addons.tar.gz.sum256"; then
|
||||
echo "Already latest sources - skipped download"
|
||||
else
|
||||
|
||||
echo "Download sources for ${FRIENDICA_VERSION} (Addon: ${FRIENDICA_ADDONS})"
|
||||
|
||||
# Removing the whole directory first
|
||||
rm -fr /usr/src/friendica
|
||||
export GNUPGHOME="$(mktemp -d)"
|
||||
|
||||
gpg --batch --logger-fd=1 --no-tty --quiet --keyserver keyserver.ubuntu.com --recv-keys 08656443618E6567A39524083EE197EF3F9E4287
|
||||
|
||||
curl -fsSL -o friendica-full-${FRIENDICA_VERSION}.tar.gz "https://files.friendi.ca/friendica-full-${FRIENDICA_VERSION}.tar.gz"
|
||||
curl -fsSL -o friendica-full-${FRIENDICA_VERSION}.tar.gz.asc "https://files.friendi.ca/friendica-full-${FRIENDICA_VERSION}.tar.gz.asc";
|
||||
gpg --batch --logger-fd=1 --no-tty --quiet --verify friendica-full-${FRIENDICA_VERSION}.tar.gz.asc friendica-full-${FRIENDICA_VERSION}.tar.gz
|
||||
echo "Core sources (${FRIENDICA_VERSION}) verified"
|
||||
|
||||
tar -xzf friendica-full-${FRIENDICA_VERSION}.tar.gz -C /usr/src/
|
||||
rm friendica-full-${FRIENDICA_VERSION}.tar.gz friendica-full-${FRIENDICA_VERSION}.tar.gz.asc
|
||||
mv -f /usr/src/friendica-full-${FRIENDICA_VERSION}/ /usr/src/friendica
|
||||
echo "Core sources (${FRIENDICA_VERSION}) extracted"
|
||||
|
||||
chmod 777 /usr/src/friendica/view/smarty3
|
||||
|
||||
curl -fsSL -o friendica-addons-${FRIENDICA_ADDONS}.tar.gz "https://files.friendi.ca/friendica-addons-${FRIENDICA_ADDONS}.tar.gz"
|
||||
curl -fsSL -o friendica-addons-${FRIENDICA_ADDONS}.tar.gz.asc "https://files.friendi.ca/friendica-addons-${FRIENDICA_ADDONS}.tar.gz.asc"
|
||||
gpg --batch --logger-fd=1 --no-tty --quiet --verify friendica-addons-${FRIENDICA_ADDONS}.tar.gz.asc friendica-addons-${FRIENDICA_ADDONS}.tar.gz
|
||||
echo "Addon sources (${FRIENDICA_ADDONS}) verified"
|
||||
|
||||
mkdir -p /usr/src/friendica/addon
|
||||
tar -xzf friendica-addons-${FRIENDICA_ADDONS}.tar.gz -C /usr/src/friendica/addon --strip-components=1
|
||||
rm friendica-addons-${FRIENDICA_ADDONS}.tar.gz friendica-addons-${FRIENDICA_ADDONS}.tar.gz.asc
|
||||
echo "Addon sources (${FRIENDICA_ADDONS}) extracted"
|
||||
|
||||
gpgconf --kill all
|
||||
rm -rf "$GNUPGHOME"
|
||||
|
||||
mv -f /usr/src/friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256 /usr/src/friendica.tar.gz.sum256
|
||||
mv -f /usr/src/friendica-addons-${FRIENDICA_ADDONS}.tar.gz.sum256 /usr/src/friendica-addons.tar.gz.sum256
|
||||
fi
|
||||
fi
|
||||
|
||||
exec /entrypoint.sh "$@"
|
|
@ -162,18 +162,51 @@ RUN set -ex;\
|
|||
|
||||
# 39 = LOG_PID | LOG_ODELAY | LOG_CONS | LOG_PERROR
|
||||
ENV FRIENDICA_SYSLOG_FLAGS 39
|
||||
ENV FRIENDICA_VERSION "2021.12-rc"
|
||||
ENV FRIENDICA_ADDONS "2021.12-rc"
|
||||
ENV FRIENDICA_VERSION "2022.02"
|
||||
ENV FRIENDICA_ADDONS "2022.02"
|
||||
ENV FRIENDICA_DOWNLOAD_SHA256 "032be1a8c7e1a82d34eebc95b5bd2f2564a9114834eff45e6b4daa240eab22e8"
|
||||
ENV FRIENDICA_DOWNLOAD_ADDONS_SHA256 "146240e7215d15d743bee4e0d3c084315b5a1778493f400284e80ff84e3cd1ce"
|
||||
|
||||
RUN set -ex; \
|
||||
fetchDeps=" \
|
||||
gnupg \
|
||||
"; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends $fetchDeps;
|
||||
apt-get install -y --no-install-recommends $fetchDeps; \
|
||||
\
|
||||
export GNUPGHOME="$(mktemp -d)"; \
|
||||
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 08656443618E6567A39524083EE197EF3F9E4287; \
|
||||
\
|
||||
curl -fsSL -o friendica-full-${FRIENDICA_VERSION}.tar.gz \
|
||||
"https://files.friendi.ca/friendica-full-${FRIENDICA_VERSION}.tar.gz"; \
|
||||
curl -fsSL -o friendica-full-${FRIENDICA_VERSION}.tar.gz.asc \
|
||||
"https://files.friendi.ca/friendica-full-${FRIENDICA_VERSION}.tar.gz.asc"; \
|
||||
gpg --batch --verify friendica-full-${FRIENDICA_VERSION}.tar.gz.asc friendica-full-${FRIENDICA_VERSION}.tar.gz; \
|
||||
echo "${FRIENDICA_DOWNLOAD_SHA256} *friendica-full-${FRIENDICA_VERSION}.tar.gz" | sha256sum -c; \
|
||||
tar -xzf friendica-full-${FRIENDICA_VERSION}.tar.gz -C /usr/src/; \
|
||||
rm friendica-full-${FRIENDICA_VERSION}.tar.gz friendica-full-${FRIENDICA_VERSION}.tar.gz.asc; \
|
||||
mv -f /usr/src/friendica-full-${FRIENDICA_VERSION}/ /usr/src/friendica; \
|
||||
chmod 777 /usr/src/friendica/view/smarty3; \
|
||||
\
|
||||
curl -fsSL -o friendica-addons-${FRIENDICA_ADDONS}.tar.gz \
|
||||
"https://files.friendi.ca/friendica-addons-${FRIENDICA_ADDONS}.tar.gz"; \
|
||||
curl -fsSL -o friendica-addons-${FRIENDICA_ADDONS}.tar.gz.asc \
|
||||
"https://files.friendi.ca/friendica-addons-${FRIENDICA_ADDONS}.tar.gz.asc"; \
|
||||
gpg --batch --verify friendica-addons-${FRIENDICA_ADDONS}.tar.gz.asc friendica-addons-${FRIENDICA_ADDONS}.tar.gz; \
|
||||
echo "${FRIENDICA_DOWNLOAD_ADDONS_SHA256} *friendica-addons-${FRIENDICA_ADDONS}.tar.gz" | sha256sum -c; \
|
||||
mkdir -p /usr/src/friendica/proxy; \
|
||||
mkdir -p /usr/src/friendica/addon; \
|
||||
tar -xzf friendica-addons-${FRIENDICA_ADDONS}.tar.gz -C /usr/src/friendica/addon --strip-components=1; \
|
||||
rm friendica-addons-${FRIENDICA_ADDONS}.tar.gz friendica-addons-${FRIENDICA_ADDONS}.tar.gz.asc; \
|
||||
\
|
||||
gpgconf --kill all; \
|
||||
rm -rf "$GNUPGHOME"; \
|
||||
\
|
||||
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY *.sh upgrade.exclude /
|
||||
COPY config/* /usr/src/friendica/config/
|
||||
|
||||
ENTRYPOINT ["/entrypoint-dev.sh"]
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
CMD ["apache2-foreground"]
|
|
@ -134,16 +134,48 @@ VOLUME /var/www/html
|
|||
|
||||
# 39 = LOG_PID | LOG_ODELAY | LOG_CONS | LOG_PERROR
|
||||
ENV FRIENDICA_SYSLOG_FLAGS 39
|
||||
ENV FRIENDICA_VERSION "2021.12-dev"
|
||||
ENV FRIENDICA_ADDONS "2021.12-dev"
|
||||
ENV FRIENDICA_VERSION "2022.02"
|
||||
ENV FRIENDICA_ADDONS "2022.02"
|
||||
ENV FRIENDICA_DOWNLOAD_SHA256 "032be1a8c7e1a82d34eebc95b5bd2f2564a9114834eff45e6b4daa240eab22e8"
|
||||
ENV FRIENDICA_DOWNLOAD_ADDONS_SHA256 "146240e7215d15d743bee4e0d3c084315b5a1778493f400284e80ff84e3cd1ce"
|
||||
|
||||
RUN set -ex; \
|
||||
apk add --no-cache --virtual .fetch-deps \
|
||||
gnupg \
|
||||
;
|
||||
; \
|
||||
\
|
||||
export GNUPGHOME="$(mktemp -d)"; \
|
||||
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 08656443618E6567A39524083EE197EF3F9E4287; \
|
||||
\
|
||||
curl -fsSL -o friendica-full-${FRIENDICA_VERSION}.tar.gz \
|
||||
"https://files.friendi.ca/friendica-full-${FRIENDICA_VERSION}.tar.gz"; \
|
||||
curl -fsSL -o friendica-full-${FRIENDICA_VERSION}.tar.gz.asc \
|
||||
"https://files.friendi.ca/friendica-full-${FRIENDICA_VERSION}.tar.gz.asc"; \
|
||||
gpg --batch --verify friendica-full-${FRIENDICA_VERSION}.tar.gz.asc friendica-full-${FRIENDICA_VERSION}.tar.gz; \
|
||||
echo "${FRIENDICA_DOWNLOAD_SHA256} *friendica-full-${FRIENDICA_VERSION}.tar.gz" | sha256sum -c; \
|
||||
tar -xzf friendica-full-${FRIENDICA_VERSION}.tar.gz -C /usr/src/; \
|
||||
rm friendica-full-${FRIENDICA_VERSION}.tar.gz friendica-full-${FRIENDICA_VERSION}.tar.gz.asc; \
|
||||
mv -f /usr/src/friendica-full-${FRIENDICA_VERSION}/ /usr/src/friendica; \
|
||||
chmod 777 /usr/src/friendica/view/smarty3; \
|
||||
\
|
||||
curl -fsSL -o friendica-addons-${FRIENDICA_ADDONS}.tar.gz \
|
||||
"https://files.friendi.ca/friendica-addons-${FRIENDICA_ADDONS}.tar.gz"; \
|
||||
curl -fsSL -o friendica-addons-${FRIENDICA_ADDONS}.tar.gz.asc \
|
||||
"https://files.friendi.ca/friendica-addons-${FRIENDICA_ADDONS}.tar.gz.asc"; \
|
||||
gpg --batch --verify friendica-addons-${FRIENDICA_ADDONS}.tar.gz.asc friendica-addons-${FRIENDICA_ADDONS}.tar.gz; \
|
||||
echo "${FRIENDICA_DOWNLOAD_ADDONS_SHA256} *friendica-addons-${FRIENDICA_ADDONS}.tar.gz" | sha256sum -c; \
|
||||
mkdir -p /usr/src/friendica/proxy; \
|
||||
mkdir -p /usr/src/friendica/addon; \
|
||||
tar -xzf friendica-addons-${FRIENDICA_ADDONS}.tar.gz -C /usr/src/friendica/addon --strip-components=1; \
|
||||
rm friendica-addons-${FRIENDICA_ADDONS}.tar.gz friendica-addons-${FRIENDICA_ADDONS}.tar.gz.asc; \
|
||||
\
|
||||
gpgconf --kill all; \
|
||||
rm -rf "$GNUPGHOME"; \
|
||||
\
|
||||
apk del .fetch-deps
|
||||
|
||||
COPY *.sh upgrade.exclude /
|
||||
COPY config/* /usr/src/friendica/config/
|
||||
|
||||
ENTRYPOINT ["/entrypoint-dev.sh"]
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
CMD ["php-fpm"]
|
|
@ -153,18 +153,51 @@ VOLUME /var/www/html
|
|||
|
||||
# 39 = LOG_PID | LOG_ODELAY | LOG_CONS | LOG_PERROR
|
||||
ENV FRIENDICA_SYSLOG_FLAGS 39
|
||||
ENV FRIENDICA_VERSION "2021.12-dev"
|
||||
ENV FRIENDICA_ADDONS "2021.12-dev"
|
||||
ENV FRIENDICA_VERSION "2022.02"
|
||||
ENV FRIENDICA_ADDONS "2022.02"
|
||||
ENV FRIENDICA_DOWNLOAD_SHA256 "032be1a8c7e1a82d34eebc95b5bd2f2564a9114834eff45e6b4daa240eab22e8"
|
||||
ENV FRIENDICA_DOWNLOAD_ADDONS_SHA256 "146240e7215d15d743bee4e0d3c084315b5a1778493f400284e80ff84e3cd1ce"
|
||||
|
||||
RUN set -ex; \
|
||||
fetchDeps=" \
|
||||
gnupg \
|
||||
"; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends $fetchDeps;
|
||||
apt-get install -y --no-install-recommends $fetchDeps; \
|
||||
\
|
||||
export GNUPGHOME="$(mktemp -d)"; \
|
||||
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 08656443618E6567A39524083EE197EF3F9E4287; \
|
||||
\
|
||||
curl -fsSL -o friendica-full-${FRIENDICA_VERSION}.tar.gz \
|
||||
"https://files.friendi.ca/friendica-full-${FRIENDICA_VERSION}.tar.gz"; \
|
||||
curl -fsSL -o friendica-full-${FRIENDICA_VERSION}.tar.gz.asc \
|
||||
"https://files.friendi.ca/friendica-full-${FRIENDICA_VERSION}.tar.gz.asc"; \
|
||||
gpg --batch --verify friendica-full-${FRIENDICA_VERSION}.tar.gz.asc friendica-full-${FRIENDICA_VERSION}.tar.gz; \
|
||||
echo "${FRIENDICA_DOWNLOAD_SHA256} *friendica-full-${FRIENDICA_VERSION}.tar.gz" | sha256sum -c; \
|
||||
tar -xzf friendica-full-${FRIENDICA_VERSION}.tar.gz -C /usr/src/; \
|
||||
rm friendica-full-${FRIENDICA_VERSION}.tar.gz friendica-full-${FRIENDICA_VERSION}.tar.gz.asc; \
|
||||
mv -f /usr/src/friendica-full-${FRIENDICA_VERSION}/ /usr/src/friendica; \
|
||||
chmod 777 /usr/src/friendica/view/smarty3; \
|
||||
\
|
||||
curl -fsSL -o friendica-addons-${FRIENDICA_ADDONS}.tar.gz \
|
||||
"https://files.friendi.ca/friendica-addons-${FRIENDICA_ADDONS}.tar.gz"; \
|
||||
curl -fsSL -o friendica-addons-${FRIENDICA_ADDONS}.tar.gz.asc \
|
||||
"https://files.friendi.ca/friendica-addons-${FRIENDICA_ADDONS}.tar.gz.asc"; \
|
||||
gpg --batch --verify friendica-addons-${FRIENDICA_ADDONS}.tar.gz.asc friendica-addons-${FRIENDICA_ADDONS}.tar.gz; \
|
||||
echo "${FRIENDICA_DOWNLOAD_ADDONS_SHA256} *friendica-addons-${FRIENDICA_ADDONS}.tar.gz" | sha256sum -c; \
|
||||
mkdir -p /usr/src/friendica/proxy; \
|
||||
mkdir -p /usr/src/friendica/addon; \
|
||||
tar -xzf friendica-addons-${FRIENDICA_ADDONS}.tar.gz -C /usr/src/friendica/addon --strip-components=1; \
|
||||
rm friendica-addons-${FRIENDICA_ADDONS}.tar.gz friendica-addons-${FRIENDICA_ADDONS}.tar.gz.asc; \
|
||||
\
|
||||
gpgconf --kill all; \
|
||||
rm -rf "$GNUPGHOME"; \
|
||||
\
|
||||
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY *.sh upgrade.exclude /
|
||||
COPY config/* /usr/src/friendica/config/
|
||||
|
||||
ENTRYPOINT ["/entrypoint-dev.sh"]
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
CMD ["php-fpm"]
|
|
@ -162,8 +162,8 @@ RUN set -ex;\
|
|||
|
||||
# 39 = LOG_PID | LOG_ODELAY | LOG_CONS | LOG_PERROR
|
||||
ENV FRIENDICA_SYSLOG_FLAGS 39
|
||||
ENV FRIENDICA_VERSION "2021.12-dev"
|
||||
ENV FRIENDICA_ADDONS "2021.12-dev"
|
||||
ENV FRIENDICA_VERSION "2022.05-dev"
|
||||
ENV FRIENDICA_ADDONS "2022.05-dev"
|
||||
|
||||
RUN set -ex; \
|
||||
fetchDeps=" \
|
|
@ -134,8 +134,8 @@ VOLUME /var/www/html
|
|||
|
||||
# 39 = LOG_PID | LOG_ODELAY | LOG_CONS | LOG_PERROR
|
||||
ENV FRIENDICA_SYSLOG_FLAGS 39
|
||||
ENV FRIENDICA_VERSION "2021.12-rc"
|
||||
ENV FRIENDICA_ADDONS "2021.12-rc"
|
||||
ENV FRIENDICA_VERSION "2022.05-dev"
|
||||
ENV FRIENDICA_ADDONS "2022.05-dev"
|
||||
|
||||
RUN set -ex; \
|
||||
apk add --no-cache --virtual .fetch-deps \
|
|
@ -153,8 +153,8 @@ VOLUME /var/www/html
|
|||
|
||||
# 39 = LOG_PID | LOG_ODELAY | LOG_CONS | LOG_PERROR
|
||||
ENV FRIENDICA_SYSLOG_FLAGS 39
|
||||
ENV FRIENDICA_VERSION "2021.12-rc"
|
||||
ENV FRIENDICA_ADDONS "2021.12-rc"
|
||||
ENV FRIENDICA_VERSION "2022.05-dev"
|
||||
ENV FRIENDICA_ADDONS "2022.05-dev"
|
||||
|
||||
RUN set -ex; \
|
||||
fetchDeps=" \
|
|
@ -1 +1 @@
|
|||
2021.12-dev
|
||||
2022.05-dev
|
||||
|
|
|
@ -1 +1 @@
|
|||
2021.09
|
||||
2022.02
|
||||
|
|
Loading…
Reference in a new issue