-
Notifications
You must be signed in to change notification settings - Fork 135
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
[question] How can configure a feature to start after the devcontainers is created? #41
Comments
In the |
I tried like that but without success... probably because I didn't specify any |
Ah sorry I missed the 'secret' portion of this. Version 0.32.0+ of the dev container CLI will respect lifecycle hooks in Features. Over the next day or so, we'll be rolling out this new version of the CLI in codespace. Once it's available (you can see from a codespace creation log the version of I put together a demo here (ignore the entrypoint portions, those were me experimenting): Are you able to refactor your Feature in such a way that you can "start" it in the |
thanks! Looking forward to it :) |
Hi @joshspicer is this already available? |
I moved it to postStartCommand but no success. I see the token set and the binary downloaded but can not keep the process running. This is my feature https://github.com/eddumelendez/test-devcontainer/blob/main/src/tcc/devcontainer-feature.json |
The feature I have in mind depends on a secret which is provided when Codespaces is initialized. I have tried using
entrypoint
,postStartCommand
andpostAttachCommand
without success. I can see the agent is downloaded and can be initialized manually once Codespaces starts but what I'm looking for is to make it start automatically.The text was updated successfully, but these errors were encountered: