mirror of
https://github.com/friendica/docker
synced 2025-01-15 15:07:21 +01:00
Merge pull request #161 from nupplaphil/feat/add_sha256_check
Add sha256 check for official images
This commit is contained in:
commit
f7ff609318
7 changed files with 91 additions and 43 deletions
|
@ -128,18 +128,26 @@ ENV FRIENDICA_VERSION "2021.04"
|
|||
ENV FRIENDICA_ADDONS "2021.04"
|
||||
|
||||
RUN set -ex; \
|
||||
curl -fsSL -o friendica.tar.gz \
|
||||
curl -fsSL -o friendica-full-${FRIENDICA_VERSION}.tar.gz \
|
||||
"https://files.friendi.ca/friendica-full-${FRIENDICA_VERSION}.tar.gz"; \
|
||||
tar -xzf friendica.tar.gz -C /usr/src/; \
|
||||
rm friendica.tar.gz; \
|
||||
curl -fsSL -o friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256 \
|
||||
"https://files.friendi.ca/friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256"; \
|
||||
sha256sum -c friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256; \
|
||||
tar -xzf friendica-full-${FRIENDICA_VERSION}.tar.gz -C /usr/src/; \
|
||||
rm friendica-full-${FRIENDICA_VERSION}.tar.gz; \
|
||||
rm friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256; \
|
||||
mv -f /usr/src/friendica-full-${FRIENDICA_VERSION}/ /usr/src/friendica; \
|
||||
chmod 777 /usr/src/friendica/view/smarty3; \
|
||||
curl -fsSL -o friendica_addons.tar.gz \
|
||||
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.sum256 \
|
||||
"https://files.friendi.ca/friendica-addons-${FRIENDICA_ADDONS}.tar.gz.sum256"; \
|
||||
sha256sum -c friendica-addons-${FRIENDICA_ADDONS}.tar.gz.sum256; \
|
||||
mkdir -p /usr/src/friendica/proxy; \
|
||||
mkdir -p /usr/src/friendica/addon; \
|
||||
tar -xzf friendica_addons.tar.gz -C /usr/src/friendica/addon --strip-components=1; \
|
||||
rm friendica_addons.tar.gz;
|
||||
tar -xzf friendica-addons-${FRIENDICA_ADDONS}.tar.gz -C /usr/src/friendica/addon --strip-components=1; \
|
||||
rm friendica-addons-${FRIENDICA_ADDONS}.tar.gz; \
|
||||
rm friendica-addons-${FRIENDICA_ADDONS}.tar.gz.sum256;
|
||||
|
||||
COPY *.sh upgrade.exclude /
|
||||
COPY config/* /usr/src/friendica/config/
|
||||
|
|
|
@ -130,18 +130,26 @@ ENV FRIENDICA_VERSION "2021.04"
|
|||
ENV FRIENDICA_ADDONS "2021.04"
|
||||
|
||||
RUN set -ex; \
|
||||
curl -fsSL -o friendica.tar.gz \
|
||||
curl -fsSL -o friendica-full-${FRIENDICA_VERSION}.tar.gz \
|
||||
"https://files.friendi.ca/friendica-full-${FRIENDICA_VERSION}.tar.gz"; \
|
||||
tar -xzf friendica.tar.gz -C /usr/src/; \
|
||||
rm friendica.tar.gz; \
|
||||
curl -fsSL -o friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256 \
|
||||
"https://files.friendi.ca/friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256"; \
|
||||
sha256sum -c friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256; \
|
||||
tar -xzf friendica-full-${FRIENDICA_VERSION}.tar.gz -C /usr/src/; \
|
||||
rm friendica-full-${FRIENDICA_VERSION}.tar.gz; \
|
||||
rm friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256; \
|
||||
mv -f /usr/src/friendica-full-${FRIENDICA_VERSION}/ /usr/src/friendica; \
|
||||
chmod 777 /usr/src/friendica/view/smarty3; \
|
||||
curl -fsSL -o friendica_addons.tar.gz \
|
||||
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.sum256 \
|
||||
"https://files.friendi.ca/friendica-addons-${FRIENDICA_ADDONS}.tar.gz.sum256"; \
|
||||
sha256sum -c friendica-addons-${FRIENDICA_ADDONS}.tar.gz.sum256; \
|
||||
mkdir -p /usr/src/friendica/proxy; \
|
||||
mkdir -p /usr/src/friendica/addon; \
|
||||
tar -xzf friendica_addons.tar.gz -C /usr/src/friendica/addon --strip-components=1; \
|
||||
rm friendica_addons.tar.gz;
|
||||
tar -xzf friendica-addons-${FRIENDICA_ADDONS}.tar.gz -C /usr/src/friendica/addon --strip-components=1; \
|
||||
rm friendica-addons-${FRIENDICA_ADDONS}.tar.gz; \
|
||||
rm friendica-addons-${FRIENDICA_ADDONS}.tar.gz.sum256;
|
||||
|
||||
COPY *.sh upgrade.exclude /
|
||||
COPY config/* /usr/src/friendica/config/
|
||||
|
|
|
@ -119,18 +119,26 @@ ENV FRIENDICA_VERSION "2021.04"
|
|||
ENV FRIENDICA_ADDONS "2021.04"
|
||||
|
||||
RUN set -ex; \
|
||||
curl -fsSL -o friendica.tar.gz \
|
||||
curl -fsSL -o friendica-full-${FRIENDICA_VERSION}.tar.gz \
|
||||
"https://files.friendi.ca/friendica-full-${FRIENDICA_VERSION}.tar.gz"; \
|
||||
tar -xzf friendica.tar.gz -C /usr/src/; \
|
||||
rm friendica.tar.gz; \
|
||||
curl -fsSL -o friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256 \
|
||||
"https://files.friendi.ca/friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256"; \
|
||||
sha256sum -c friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256; \
|
||||
tar -xzf friendica-full-${FRIENDICA_VERSION}.tar.gz -C /usr/src/; \
|
||||
rm friendica-full-${FRIENDICA_VERSION}.tar.gz; \
|
||||
rm friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256; \
|
||||
mv -f /usr/src/friendica-full-${FRIENDICA_VERSION}/ /usr/src/friendica; \
|
||||
chmod 777 /usr/src/friendica/view/smarty3; \
|
||||
curl -fsSL -o friendica_addons.tar.gz \
|
||||
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.sum256 \
|
||||
"https://files.friendi.ca/friendica-addons-${FRIENDICA_ADDONS}.tar.gz.sum256"; \
|
||||
sha256sum -c friendica-addons-${FRIENDICA_ADDONS}.tar.gz.sum256; \
|
||||
mkdir -p /usr/src/friendica/proxy; \
|
||||
mkdir -p /usr/src/friendica/addon; \
|
||||
tar -xzf friendica_addons.tar.gz -C /usr/src/friendica/addon --strip-components=1; \
|
||||
rm friendica_addons.tar.gz;
|
||||
tar -xzf friendica-addons-${FRIENDICA_ADDONS}.tar.gz -C /usr/src/friendica/addon --strip-components=1; \
|
||||
rm friendica-addons-${FRIENDICA_ADDONS}.tar.gz; \
|
||||
rm friendica-addons-${FRIENDICA_ADDONS}.tar.gz.sum256;
|
||||
|
||||
COPY *.sh upgrade.exclude /
|
||||
COPY config/* /usr/src/friendica/config/
|
||||
|
|
|
@ -128,18 +128,26 @@ ENV FRIENDICA_VERSION "2021.07"
|
|||
ENV FRIENDICA_ADDONS "2021.07"
|
||||
|
||||
RUN set -ex; \
|
||||
curl -fsSL -o friendica.tar.gz \
|
||||
curl -fsSL -o friendica-full-${FRIENDICA_VERSION}.tar.gz \
|
||||
"https://files.friendi.ca/friendica-full-${FRIENDICA_VERSION}.tar.gz"; \
|
||||
tar -xzf friendica.tar.gz -C /usr/src/; \
|
||||
rm friendica.tar.gz; \
|
||||
curl -fsSL -o friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256 \
|
||||
"https://files.friendi.ca/friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256"; \
|
||||
sha256sum -c friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256; \
|
||||
tar -xzf friendica-full-${FRIENDICA_VERSION}.tar.gz -C /usr/src/; \
|
||||
rm friendica-full-${FRIENDICA_VERSION}.tar.gz; \
|
||||
rm friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256; \
|
||||
mv -f /usr/src/friendica-full-${FRIENDICA_VERSION}/ /usr/src/friendica; \
|
||||
chmod 777 /usr/src/friendica/view/smarty3; \
|
||||
curl -fsSL -o friendica_addons.tar.gz \
|
||||
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.sum256 \
|
||||
"https://files.friendi.ca/friendica-addons-${FRIENDICA_ADDONS}.tar.gz.sum256"; \
|
||||
sha256sum -c friendica-addons-${FRIENDICA_ADDONS}.tar.gz.sum256; \
|
||||
mkdir -p /usr/src/friendica/proxy; \
|
||||
mkdir -p /usr/src/friendica/addon; \
|
||||
tar -xzf friendica_addons.tar.gz -C /usr/src/friendica/addon --strip-components=1; \
|
||||
rm friendica_addons.tar.gz;
|
||||
tar -xzf friendica-addons-${FRIENDICA_ADDONS}.tar.gz -C /usr/src/friendica/addon --strip-components=1; \
|
||||
rm friendica-addons-${FRIENDICA_ADDONS}.tar.gz; \
|
||||
rm friendica-addons-${FRIENDICA_ADDONS}.tar.gz.sum256;
|
||||
|
||||
COPY *.sh upgrade.exclude /
|
||||
COPY config/* /usr/src/friendica/config/
|
||||
|
|
|
@ -130,18 +130,26 @@ ENV FRIENDICA_VERSION "2021.07"
|
|||
ENV FRIENDICA_ADDONS "2021.07"
|
||||
|
||||
RUN set -ex; \
|
||||
curl -fsSL -o friendica.tar.gz \
|
||||
curl -fsSL -o friendica-full-${FRIENDICA_VERSION}.tar.gz \
|
||||
"https://files.friendi.ca/friendica-full-${FRIENDICA_VERSION}.tar.gz"; \
|
||||
tar -xzf friendica.tar.gz -C /usr/src/; \
|
||||
rm friendica.tar.gz; \
|
||||
curl -fsSL -o friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256 \
|
||||
"https://files.friendi.ca/friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256"; \
|
||||
sha256sum -c friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256; \
|
||||
tar -xzf friendica-full-${FRIENDICA_VERSION}.tar.gz -C /usr/src/; \
|
||||
rm friendica-full-${FRIENDICA_VERSION}.tar.gz; \
|
||||
rm friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256; \
|
||||
mv -f /usr/src/friendica-full-${FRIENDICA_VERSION}/ /usr/src/friendica; \
|
||||
chmod 777 /usr/src/friendica/view/smarty3; \
|
||||
curl -fsSL -o friendica_addons.tar.gz \
|
||||
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.sum256 \
|
||||
"https://files.friendi.ca/friendica-addons-${FRIENDICA_ADDONS}.tar.gz.sum256"; \
|
||||
sha256sum -c friendica-addons-${FRIENDICA_ADDONS}.tar.gz.sum256; \
|
||||
mkdir -p /usr/src/friendica/proxy; \
|
||||
mkdir -p /usr/src/friendica/addon; \
|
||||
tar -xzf friendica_addons.tar.gz -C /usr/src/friendica/addon --strip-components=1; \
|
||||
rm friendica_addons.tar.gz;
|
||||
tar -xzf friendica-addons-${FRIENDICA_ADDONS}.tar.gz -C /usr/src/friendica/addon --strip-components=1; \
|
||||
rm friendica-addons-${FRIENDICA_ADDONS}.tar.gz; \
|
||||
rm friendica-addons-${FRIENDICA_ADDONS}.tar.gz.sum256;
|
||||
|
||||
COPY *.sh upgrade.exclude /
|
||||
COPY config/* /usr/src/friendica/config/
|
||||
|
|
|
@ -119,18 +119,26 @@ ENV FRIENDICA_VERSION "2021.07"
|
|||
ENV FRIENDICA_ADDONS "2021.07"
|
||||
|
||||
RUN set -ex; \
|
||||
curl -fsSL -o friendica.tar.gz \
|
||||
curl -fsSL -o friendica-full-${FRIENDICA_VERSION}.tar.gz \
|
||||
"https://files.friendi.ca/friendica-full-${FRIENDICA_VERSION}.tar.gz"; \
|
||||
tar -xzf friendica.tar.gz -C /usr/src/; \
|
||||
rm friendica.tar.gz; \
|
||||
curl -fsSL -o friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256 \
|
||||
"https://files.friendi.ca/friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256"; \
|
||||
sha256sum -c friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256; \
|
||||
tar -xzf friendica-full-${FRIENDICA_VERSION}.tar.gz -C /usr/src/; \
|
||||
rm friendica-full-${FRIENDICA_VERSION}.tar.gz; \
|
||||
rm friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256; \
|
||||
mv -f /usr/src/friendica-full-${FRIENDICA_VERSION}/ /usr/src/friendica; \
|
||||
chmod 777 /usr/src/friendica/view/smarty3; \
|
||||
curl -fsSL -o friendica_addons.tar.gz \
|
||||
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.sum256 \
|
||||
"https://files.friendi.ca/friendica-addons-${FRIENDICA_ADDONS}.tar.gz.sum256"; \
|
||||
sha256sum -c friendica-addons-${FRIENDICA_ADDONS}.tar.gz.sum256; \
|
||||
mkdir -p /usr/src/friendica/proxy; \
|
||||
mkdir -p /usr/src/friendica/addon; \
|
||||
tar -xzf friendica_addons.tar.gz -C /usr/src/friendica/addon --strip-components=1; \
|
||||
rm friendica_addons.tar.gz;
|
||||
tar -xzf friendica-addons-${FRIENDICA_ADDONS}.tar.gz -C /usr/src/friendica/addon --strip-components=1; \
|
||||
rm friendica-addons-${FRIENDICA_ADDONS}.tar.gz; \
|
||||
rm friendica-addons-${FRIENDICA_ADDONS}.tar.gz.sum256;
|
||||
|
||||
COPY *.sh upgrade.exclude /
|
||||
COPY config/* /usr/src/friendica/config/
|
||||
|
|
|
@ -82,7 +82,7 @@ declare -A pecl_versions=(
|
|||
)
|
||||
|
||||
declare -A install_extras=(
|
||||
['stable']='\nRUN set -ex; \\\n curl -fsSL -o friendica.tar.gz \\\n "https://files.friendi.ca/friendica-full-${FRIENDICA_VERSION}.tar.gz"; \\\n tar -xzf friendica.tar.gz -C /usr/src/; \\\n rm friendica.tar.gz; \\\n mv -f /usr/src/friendica-full-${FRIENDICA_VERSION}/ /usr/src/friendica; \\\n chmod 777 /usr/src/friendica/view/smarty3; \\\n curl -fsSL -o friendica_addons.tar.gz \\\n "https://files.friendi.ca/friendica-addons-${FRIENDICA_ADDONS}.tar.gz"; \\\n mkdir -p /usr/src/friendica/proxy; \\\n mkdir -p /usr/src/friendica/addon; \\\n tar -xzf friendica_addons.tar.gz -C /usr/src/friendica/addon --strip-components=1; \\\n rm friendica_addons.tar.gz;'
|
||||
['stable']='\nRUN set -ex; \\\n curl -fsSL -o friendica-full-${FRIENDICA_VERSION}.tar.gz \\\n "https://files.friendi.ca/friendica-full-${FRIENDICA_VERSION}.tar.gz"; \\\n curl -fsSL -o friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256 \\\n "https://files.friendi.ca/friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256"; \\\n sha256sum -c friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256; \\\n tar -xzf friendica-full-${FRIENDICA_VERSION}.tar.gz -C /usr/src/; \\\n rm friendica-full-${FRIENDICA_VERSION}.tar.gz; \\\n rm friendica-full-${FRIENDICA_VERSION}.tar.gz.sum256; \\\n mv -f /usr/src/friendica-full-${FRIENDICA_VERSION}/ /usr/src/friendica; \\\n chmod 777 /usr/src/friendica/view/smarty3; \\\n curl -fsSL -o friendica-addons-${FRIENDICA_ADDONS}.tar.gz \\\n "https://files.friendi.ca/friendica-addons-${FRIENDICA_ADDONS}.tar.gz"; \\\n curl -fsSL -o friendica-addons-${FRIENDICA_ADDONS}.tar.gz.sum256 \\\n "https://files.friendi.ca/friendica-addons-${FRIENDICA_ADDONS}.tar.gz.sum256"; \\\n sha256sum -c friendica-addons-${FRIENDICA_ADDONS}.tar.gz.sum256; \\\n mkdir -p /usr/src/friendica/proxy; \\\n mkdir -p /usr/src/friendica/addon; \\\n tar -xzf friendica-addons-${FRIENDICA_ADDONS}.tar.gz -C /usr/src/friendica/addon --strip-components=1; \\\n rm friendica-addons-${FRIENDICA_ADDONS}.tar.gz; \\\n rm friendica-addons-${FRIENDICA_ADDONS}.tar.gz.sum256;'
|
||||
['develop']=''
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue