Skip to content
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

Merged
merged 6 commits into from
Jul 8, 2020
Merged

Conversation

vparfonov
Copy link
Contributor

@vparfonov vparfonov commented Apr 28, 2020

Int this initial contribution will be provided:

  • dokerfiles/agent/Dockerfile: based on alpine:3.11 and contains rsync, curl, openssh and supercronic which will replace cron functionality, it because cron not work in OpenShift (issue)

  • dokerfiles/agent/cron task description that will initial backup operation each 10 minutes

  • dokerfiles/agent/scripts bash scripts for restore and backup operation

  • watcher/watcher.go: Go program with responsibility to start restore.sh script on startup, parse output and send progress to the client (che-theia) via websocket

  • dokerfiles/storage/Dockerfile : based on alpine:3.11 and contains rsync, openssh

Signed-off-by: Vitalii Parfonov [email protected]

@vparfonov vparfonov marked this pull request as draft April 30, 2020 08:30
@vparfonov vparfonov force-pushed the init branch 2 times, most recently from ac815fa to 61e138a Compare June 25, 2020 13:04
build.sh Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Comment on lines 10 to 14
FROM alpine:3.11

ENV USER=user
ENV UID=12345
ENV GID=23456
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@ibuziuk ibuziuk left a 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

README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
dockerfiles/agent/Dockerfile Outdated Show resolved Hide resolved
dockerfiles/agent/Dockerfile Outdated Show resolved Hide resolved
common.sh Show resolved Hide resolved
dockerfiles/storage/Dockerfile Outdated Show resolved Hide resolved
pkg/progress/progress_watcher.go Show resolved Hide resolved
pkg/progress/progress_watcher.go Show resolved Hide resolved
pkg/progress/progress_watcher.go Outdated Show resolved Hide resolved
pkg/progress/progress_watcher.go Outdated Show resolved Hide resolved
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
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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 \
Copy link
Contributor

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 \
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants