Unverified Commit 6bb06c08 authored by Vincent Sellier's avatar Vincent Sellier
Browse files

Upgrade to cozystack 1.1.0

parent d4e6308d
FROM debian:stable-slim AS installer
ARG COZY_VERSION=2018M4S3
ARG COZY_VERSION=1.1.0
ARG NODE_VERSION=8.11.3
WORKDIR /tmp
......@@ -19,19 +19,18 @@ RUN groupadd --gid 1000 cozy && useradd --gid 1000 --uid 1000 -m -d /usr/local/c
&& mkdir /etc/cozy && chown cozy:cozy /etc/cozy \
&& mkdir /usr/local/cozy-stack/scripts
# Docker cloud still not support --chown option, even the edge version
#COPY --chown=cozy:cozy --from=installer /tmp/cozy /usr/local/cozy-stack/cozy
#COPY --chown=cozy:cozy --from=installer /tmp/node /usr/local/node
#COPY --chown=cozy:cozy entrypoint.sh /entrypoint.sh
#COPY --chown=cozy:cozy cozy.yaml /etc/cozy/cozy.yaml
#ADD --chown=cozy:cozy https://raw.githubusercontent.com/cozy/cozy-stack/2018M2S5/scripts/konnector-node-run.sh /usr/local/cozy-stack/scripts/
COPY --chown=cozy:cozy --from=installer /tmp/cozy /usr/local/cozy-stack/cozy
COPY --chown=cozy:cozy --from=installer /tmp/node /usr/local/node
COPY --chown=cozy:cozy entrypoint.sh /entrypoint.sh
COPY --chown=cozy:cozy cozy.yaml /etc/cozy/cozy.yaml
ADD --chown=cozy:cozy https://raw.githubusercontent.com/cozy/cozy-stack/2018M2S5/scripts/konnector-node-run.sh /usr/local/cozy-stack/scripts/
## Workaround
COPY --from=installer /tmp/cozy /usr/local/cozy-stack/cozy
COPY --from=installer /tmp/node /usr/local/node
COPY entrypoint.sh /entrypoint.sh
COPY cozy.yaml /etc/cozy/cozy.yaml
ADD https://raw.githubusercontent.com/cozy/cozy-stack/2018M2S5/scripts/konnector-node-run.sh /usr/local/cozy-stack/scripts/
RUN chown cozy:cozy /usr/local/cozy-stack/cozy /usr/local/cozy-stack/scripts/konnector-node-run.sh /entrypoint.sh /etc/cozy/cozy.yaml
#COPY --from=installer /tmp/cozy /usr/local/cozy-stack/cozy
#COPY --from=installer /tmp/node /usr/local/node
#COPY entrypoint.sh /entrypoint.sh
#COPY cozy.yaml /etc/cozy/cozy.yaml
#ADD https://raw.githubusercontent.com/cozy/cozy-stack/2018M2S5/scripts/konnector-node-run.sh /usr/local/cozy-stack/scripts/
#RUN chown cozy:cozy /usr/local/cozy-stack/cozy /usr/local/cozy-stack/scripts/konnector-node-run.sh /entrypoint.sh /etc/cozy/cozy.yaml
## End of the Workaround
RUN chmod u+x /entrypoint.sh /usr/local/cozy-stack/scripts/konnector-node-run.sh
......
......@@ -17,17 +17,16 @@ fi
echo "Install cozy-stack..."
wget -O /tmp/cozy https://github.com/cozy/cozy-stack/releases/download/${COZY_VERSION}/cozy-stack-linux-${COZY_ARCH}
wget -O /tmp/cozy.sha256 https://github.com/cozy/cozy-stack/releases/download/${COZY_VERSION}/cozy-stack-linux-${COZY_ARCH}.sha256
wget -O /tmp/cozy-stack-linux-${COZY_ARCH}-${COZY_VERSION} https://github.com/cozy/cozy-stack/releases/download/${COZY_VERSION}/cozy-stack-linux-${COZY_ARCH}
wget -O /tmp/cozy.sha256 https://github.com/cozy/cozy-stack/releases/download/${COZY_VERSION}/cozy-stack.sha256
cat <<EOF >/tmp/SHA256
SHA256(/tmp/cozy)= $(awk '{print $2}' cozy.sha256)
EOF
grep linux-${COZY_ARCH} /tmp/cozy.sha256 > /tmp/SHA256
echo "Expected checkum : $(cat /tmp/SHA256)"
echo "Checksum of the downloaded file : $(sha256sum --tag /tmp/cozy)"
echo "Checksum of the downloaded file : $(sha256sum --tag /tmp/cozy-stack-linux-${COZY_ARCH}-${COZY_VERSION})"
sha256sum -c /tmp/SHA256
mv /tmp/cozy-stack-linux-${COZY_ARCH}-${COZY_VERSION} /tmp/cozy
chmod u+x /tmp/cozy
echo "Install nodejs..."
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment