-
Notifications
You must be signed in to change notification settings - Fork 362
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
Remove problematic comments between package name in apt install #3060
Conversation
hmm... still I got another error because of insufficient permissions. error
|
0a7daa4
to
8de549f
Compare
I've tried the following configuration, but it didn't work. diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index d2945b19..60ad6e20 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -31,5 +31,8 @@
],
"build": {
"dockerfile": "Dockerfile"
- }
+ },
+ "remoteUser": "vscode",
+ "containerUser": "vscode",
+ "postAttachCommand": "sudo chown -R vscode /workspaces"
}
\ No newline at end of file |
The permission problem was resolved by changing |
Hey, so the the comments need to be removed that is correct. I am personally fine with simply removing the comments without splitting the command into two, a small issue with it that it might generate two docker image layers instead of one, but should be ok either way. As for the perm error, that is sensible, because the apt install needs the root perms to install deps. However I think there is a way to do that without having to make the remote user as root, I'll try to check and get back. Thanks for noticing this and letting us know! |
Hey, So I simply removed the comments from the dockerfile apt command, and no changes in the devcontainer.json , it seems to work for me, the
showed list of appropriate packages. Can you try this, and check if that and |
My change won't increase the total number of layes of the built image because they're inside a single |
Hey @musaprg , may I ask you to update the PR so that the comments are removed and no changes in dev container json? |
hmm... I'm not sure why the build of |
ab857db
to
36d5ac2
Compare
@YJDoc2 Hi. I've reverted my change on |
CI is failing, but that should be fixed after #3086 is merged. |
Signed-off-by: Kotaro Inoue <k.musaino@gmail.com>
36d5ac2
to
0957dcf
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!
yes, I think my comment about the image layers was not much sensible. This is in a single RUN so should be ok + this is local dev container, so even if there was one more layer, it would not be that big of an issue.
Thanks for the fix :)
Description
This PR fixes an issue where several packages are not installed properly because of syntax error by unintended comments.
Type of Change
Testing
just clean
andcargo clean
just lint
and check it completes properly.Related Issues
In devcontainer, we cannot build youki because of the following error.
Build error when executing `just lint`
After I looked into the container, I've found that required packages were not installed properly even though they're specified in the Dockerfile.
This seems probably because of the comments in the middle of the heredoc part.
execution result of the problematic part
The built image should be equivalent even after splitting package installation into two lines as they're in the single heredoc. This PR splits a heredoc part including installation commands so that we can easily see which packages would be intended to be installed for what.
Additional Context