-
Notifications
You must be signed in to change notification settings - Fork 78
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
chore: support debugging devnet process #23
Conversation
Dockerfile
Outdated
# Node | ||
FROM alpine:3.17 as kanvas-node | ||
COPY --from=builder /app/bin/kanvas-node /usr/local/bin | ||
|
||
RUN addgroup user && \ | ||
adduser -G user -s /bin/sh -h /home/user -D user && \ | ||
mkdir /kanvas_log/ && \ | ||
chown user:user /kanvas_log | ||
|
||
USER user | ||
WORKDIR /home/user/ |
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.
I think it's better to separate the stage for adding this.
Is this possible?
# Node | |
FROM alpine:3.17 as kanvas-node | |
COPY --from=builder /app/bin/kanvas-node /usr/local/bin | |
RUN addgroup user && \ | |
adduser -G user -s /bin/sh -h /home/user -D user && \ | |
mkdir /kanvas_log/ && \ | |
chown user:user /kanvas_log | |
USER user | |
WORKDIR /home/user/ | |
FROM alpine:3.17 as runner | |
RUN addgroup user && \ | |
adduser -G user -s /bin/sh -h /home/user -D user && \ | |
mkdir /kanvas_log/ && \ | |
chown user:user /kanvas_log | |
USER user | |
WORKDIR /home/user/ | |
# Node | |
FROM runner as kanvas-node | |
COPY --from=builder /app/bin/kanvas-node /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.
This code will not work and is for reference purposes only.
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.
I tried to remove bolierplate, please review again!
This commit helps user to debug a process which is run by docker compose. Currently, this only works on Linux. There should be another way for macOS users. Resolves: #11
e22b1f5
to
3deec73
Compare
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
This commit helps user to debug a process which is run by docker compose. Currently, this only works on Linux. There should be another way for macOS users.
Resolves: #11