-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial contribution for workspace sync feature #2
Conversation
ac815fa
to
61e138a
Compare
Signed-off-by: Vitalii Parfonov <[email protected]>
dockerfiles/agent/Dockerfile
Outdated
FROM alpine:3.11 | ||
|
||
ENV USER=user | ||
ENV UID=12345 | ||
ENV GID=23456 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw it in https://stackoverflow.com/questions/49955097/how-do-i-add-a-user-when-im-using-alpine-as-a-base-image/55757473#55757473 hopefully we will not have any surprises on OpenShift ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM as the initial contribution, just lets' push images to https://quay.io/organization/eclipse
Co-authored-by: Serhii Leshchenko <[email protected]>
Signed-off-by: Vitalii Parfonov <[email protected]>
Signed-off-by: Vitalii Parfonov <[email protected]>
Signed-off-by: Vitalii Parfonov <[email protected]>
COPY scripts scripts | ||
|
||
# Add user that will be able to start watcher binary but nothing more | ||
# the result will be propagated then into scratch image |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's not true because you don't use a scratch image but alpine
|
||
FROM alpine:3.11 | ||
|
||
COPY entrypoint.sh /usr/local/bin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
COPY entrypoint.sh /usr/local/bin | |
COPY entrypoint.sh /usr/local/bin |
echo "Changing permissions on ${f}" && chgrp -R 0 ${f} && \ | ||
chmod -R g+rwX ${f}; \ | ||
done \ | ||
&& apk update \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we do apk clean
after installing needed stuff?
chmod -R g+rwX ${f}; \ | ||
done \ | ||
&& apk update \ | ||
&& apk upgrade \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need it?
Int this initial contribution will be provided:
dokerfiles/agent/Dockerfile
: based onalpine:3.11
and containsrsync
,curl
,openssh
andsupercronic
which will replacecron
functionality, it becausecron
not work in OpenShift (issue)dokerfiles/agent/cron
task description that will initial backup operation each 10 minutesdokerfiles/agent/scripts
bash scripts for restore and backup operationwatcher/watcher.go
: Go program with responsibility to start restore.sh script on startup, parse output and send progress to the client (che-theia) via websocketdokerfiles/storage/Dockerfile
: based onalpine:3.11
and containsrsync
,openssh
Signed-off-by: Vitalii Parfonov [email protected]