Skerit
CCoder.com
•Created by Skerit on 9/7/2022 in #help
Using a template without an explicit `user` breaks the workspace container
When starting the example
docker-code-server
as-is, I get this chdir - no such file or directory
error:
I made an issue for it on Github https://github.com/coder/coder/issues/3870
There we found out the HOME
environment somehow gets set to the username of user 1000 of the host server:
(It's set to /home/skerit
when it should be /home/coder
)
The workaround for this was to add this to the workspace
resource:
This is on an Arch server, btw 😄12 replies
CCoder.com
•Created by Skerit on 9/6/2022 in #help
Agent token is invalid inside of workspace container
After finding a good workaround for my issue #3870 (unable open a terminal session, which was because my
user
inside the workspace containers was wrong), I've got a new problem 😬
My workspace containers are complaining about an invalid agent token:
I deleted the existing workspaces & templates, restarted coder & made the templates & workspaces again, but it's still happening.
Any thoughts on what the issue could be?109 replies
CCoder.com
•Created by Skerit on 9/5/2022 in #help
Setting up a database in a template
First of all: Coder is running on my server at the office, and I want to host the workspaces on it too with Docker.
I've got a PHP project I'm trying to create a template for.
It requires a MySQL/MariaDB database to run, so I'm trying to set that up now, but I'm not sure how to go about it.
Do I create another terraform resource for it, like:
Or is there another preferred way to do it?
15 replies