envbox + envbuilder template
In my attempts to get a secure k3s-compatiable coder setup working, I am trying to get envbuilder to work from inside envbox.
Currently this is my issue. Find the full log attatched.
Find my current template here
https://github.com/Sharpz7/Sharpz7/blob/main/templates/devcontainer/main.tf
GitHub
Sharpz7/templates/devcontainer/main.tf at main · Sharpz7/Sharpz7
Contribute to Sharpz7/Sharpz7 development by creating an account on GitHub.
37 Replies
<#1143024634099413084>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
envbox starts the container with
sleep
as the init to get a dummy entry to read /etc/passwd
to find the user to run as, so it won't work under the current structure.Ah. So I need to create a custom envbuilder image?
Yup, tragically
Right. I'll look into that. Maybe I just directly contribute changes to the repo?
I imagine k3s+coder+env builder+envbox would be a hobbyists quickest way to a full coder solution?
I have halted my efforts to contribute my stuff upstream because I still have docker issues. im hoping envbox fixes them. If it does I'll definitely get contributions+a blog post written
@Phorcys I am attempting to put both into a template:
https://github.com/Sharpz7/Sharpz7/blob/main/templates/devcontainer/main.tf
https://github.com/Sharpz7/Sharpz7/blob/main/dockerfiles/envbuilder.Dockerfile (Needed to deal with the fact envbox assumes access to sleep in container
https://drive.google.com/uc?id=1GtrxNXWPWJDkYPdW-hvqkmqbZLgP8Xwg (the pod has no errors)
GitHub
Sharpz7/templates/devcontainer/main.tf at main · Sharpz7/Sharpz7
Contribute to Sharpz7/Sharpz7 development by creating an account on GitHub.
GitHub
Sharpz7/dockerfiles/envbuilder.Dockerfile at main · Sharpz7/Sharpz7
Contribute to Sharpz7/Sharpz7 development by creating an account on GitHub.
My guess is I now need a change to actually trigger the code in the container?
Or maybe my code-server script needs moved? I am not sure
honestly i'm looking at envbuilder and i don't really understand it
sooo
i don't know if i'll be able to help
Hahha no problem! I see if I can get someone else
i'll look into it if i get some free time today
Thanks,
I have a few ideas yet so I will try em
Although, I really should go to bed
health 1st
but fun 0st
Trying to convince my uni to flood me with gcp credits
This is as far as I got, see the links above for more information. I think the problem is the init_scripts, like what to run, and where: https://github.com/Sharpz7/Sharpz7/blob/main/templates/devcontainer/main.tf#L184
GitHub
Sharpz7/templates/devcontainer/main.tf at main · Sharpz7/Sharpz7
Contribute to Sharpz7/Sharpz7 development by creating an account on GitHub.
@kyle Sorry for the ping, but I think at this point its an intracasy I could do with a staff member look at.