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

fix(vscode/devcontainer): unexpected exit stdout /etc/passwd #2416

Merged
merged 1 commit into from
Jun 16, 2023

Conversation

petermetz
Copy link
Contributor

  1. Moved away from trying to handroll an Ubuntu-22.04 image for the dev container
    and instead used the "features" feature (no pun intended) of the dev container
    spec: https://code.visualstudio.com/blogs/2022/09/15/dev-container-features
  2. This produces a container that builds and launches reliably without the
    issues the previous version was suffering from (which was that to some people
    the container would just exit randomly during the launch)
  3. Our future goal of having the dev container being built in a reproducible
    way is still not achieved, but we've gotten closer because in the meantime
    while working on this issue it was discovered that we can re-build the images
    directly from the CLI by using the dev container CLI package:
    https://github.com/devcontainers/cli
  4. The upside of not building the image from scratch is that we can count on
    future improvements/maintenance from others who are working on these images.
  5. The downside of not building the image from scratch is that if we end up
    finding something that does not work due to the customizations, it might be
    more difficult to figure that out compared to if we had just build our own.
  6. It is hard to predcit right now whether 4) or 5) will end up being having
    the stronger effect, but we can cross that bridge when we get to it.
  7. In the meantime I've started working on a contribution to the dev container
    CLI itself for a dockerfile ejection feature (meaning that we'll be able to
    render a single Dockerfile for the dev container (that right now the CLI only
    stores/uses internally in it's own code at runtime). This eject feature will
    be good for debugging purposes in case anything goes wrong with the image in the
    future.

Fixes #2404

Signed-off-by: Peter Somogyvari [email protected]

@sandeepnRES sandeepnRES force-pushed the petermetz/issue2404 branch from 14dbb3b to 0e871fc Compare May 8, 2023 05:32
@sandeepnRES sandeepnRES force-pushed the petermetz/issue2404 branch from 0e871fc to 154f9b1 Compare May 9, 2023 18:06
@petermetz petermetz force-pushed the petermetz/issue2404 branch from 154f9b1 to a85578c Compare May 10, 2023 00:43
@sandeepnRES sandeepnRES force-pushed the petermetz/issue2404 branch from a85578c to bc4d95b Compare May 19, 2023 06:09
@petermetz petermetz force-pushed the petermetz/issue2404 branch from bc4d95b to a9cded1 Compare June 14, 2023 19:58
@petermetz petermetz enabled auto-merge (rebase) June 14, 2023 19:58
@petermetz petermetz force-pushed the petermetz/issue2404 branch 2 times, most recently from 0a6e7e2 to fa1af87 Compare June 15, 2023 04:32
1. Moved away from trying to handroll an Ubuntu-22.04 image for the dev container
and instead used the "features" feature (no pun intended) of the dev container
spec: https://code.visualstudio.com/blogs/2022/09/15/dev-container-features
2. This produces a container that builds and launches reliably without the
issues the previous version was suffering from (which was that to some people
the container would just exit randomly during the launch)
3. Our future goal of having the dev container being built in a reproducible
way is still not achieved, but we've gotten closer because in the meantime
while working on this issue it was discovered that we can re-build the images
directly from the CLI by using the dev container CLI package:
https://github.com/devcontainers/cli
4. The upside of not building the image from scratch is that we can count on
future improvements/maintenance from others who are working on these images.
5. The downside of not building the image from scratch is that if we end up
finding something that does not work due to the customizations, it might be
more difficult to figure that out compared to if we had just build our own.
6. It is hard to predcit right now whether 4) or 5) will end up being having
the stronger effect, but we can cross that bridge when we get to it.
7. In the meantime I've started working on a contribution to the dev container
CLI itself for a dockerfile ejection feature (meaning that we'll be able to
render a single Dockerfile for the dev container (that right now the CLI only
stores/uses internally in it's own code at runtime). This eject feature will
be good for debugging purposes in case anything goes wrong with the image in the
future.
8. Also added a publishing workflow action that will build the dev container
image on the main branch when there is a release tag (v*) issued.

Fixes hyperledger-cacti#2404

Signed-off-by: Peter Somogyvari <[email protected]>
@petermetz petermetz force-pushed the petermetz/issue2404 branch from fa1af87 to ca7bdf8 Compare June 15, 2023 23:24
@petermetz petermetz merged commit eb0134b into hyperledger-cacti:main Jun 16, 2023
@petermetz petermetz deleted the petermetz/issue2404 branch June 16, 2023 05:25
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.

fix(vscode/devcontainer): unexpected exit stdout /etc/passwd
3 participants