Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
POCS
cozy
easy-cozy
Commits
59984317
Unverified
Commit
59984317
authored
Jul 03, 2018
by
Vincent Sellier
Browse files
Upgrade to 2018M2S6
* Change docker version * Validate checksum during installation
parent
92a681f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
cozystack/Dockerfile
View file @
59984317
FROM
debian:stable-slim
AS
installer
ARG
COZY_VERSION=2018M2S
5
ARG
COZY_VERSION=2018M2S
6
ARG
NODE_VERSION=8.11.3
WORKDIR
/tmp
...
...
cozystack/install.sh
View file @
59984317
...
...
@@ -7,16 +7,27 @@ NODE_ARCH=""
if
[[
$ARCH
=
~
"x86"
]]
;
then
COZY_ARCH
=
amd64
NODE_ARCH
=
x64
SHA256
=
"f86c88a99981ed9c64289465d68a97f991af743834981691074688d5d039e6f3"
elif
[[
$ARCH
=
~
"arm"
]]
;
then
COZY_ARCH
=
arm
NODE_ARCH
=
armv7l
SHA256
=
"1c3cc78362471effc7a9fd7f52accac943ab0a009e4d31f4c4d850dffd4d444b"
else
echo
"Unknown arch
$ARCH
"
exit
1
fi
echo
"Install cozy-stack..."
wget
-O
/tmp/cozy https://github.com/cozy/cozy-stack/releases/download/
${
COZY_VERSION
}
/cozy-stack-linux-
${
COZY_ARCH
}
-
${
COZY_VERSION
}
cat
<<
EOF
>/tmp/SHA256
SHA256(/tmp/cozy)=
${
SHA256
}
EOF
wget
-O
/tmp/cozy https://github.com/cozy/cozy-stack/releases/download/
${
COZY_VERSION
}
/cozy-stack-linux-
${
COZY_ARCH
}
echo
"Expected checkum :
$(
cat
/tmp/SHA256
)
"
echo
"Checksum of the downloaded file :
$(
sha256sum
--tag
/tmp/cozy
)
"
sha256sum
-c
/tmp/SHA256
chmod
u+x /tmp/cozy
echo
"Install nodejs..."
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment