Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
easy-cozy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
POCS
cozy
easy-cozy
Commits
6bb06c08
Unverified
Commit
6bb06c08
authored
6 years ago
by
Vincent Sellier
Browse files
Options
Downloads
Patches
Plain Diff
Upgrade to cozystack 1.1.0
parent
d4e6308d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cozystack/Dockerfile
+12
-13
12 additions, 13 deletions
cozystack/Dockerfile
cozystack/install.sh
+5
-6
5 additions, 6 deletions
cozystack/install.sh
with
17 additions
and
19 deletions
cozystack/Dockerfile
+
12
−
13
View file @
6bb06c08
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
...
...
This diff is collapsed.
Click to expand it.
cozystack/install.sh
+
5
−
6
View file @
6bb06c08
...
...
@@ -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..."
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment