Need help with docker-code-server template.

Installed coder, configured template with architecture of host and docker_url. After successful build in workspaces started session, but there no button for vs code in browser.
No description
172 Replies
BoJIwEbNuK
BoJIwEbNuK•2y ago
It was like for 30 minute and after that, its says unhealthy.
No description
BoJIwEbNuK
BoJIwEbNuK•2y ago
i used docker-code-server template, installing on raspberry pi 3b+, set armv7 as host_arch.
BoJIwEbNuK
BoJIwEbNuK•2y ago
my template looks like, i used linuxserver image of code-server because codercom was not found error appeared.
BoJIwEbNuK
BoJIwEbNuK•2y ago
@Phorcys @Atif sorry for ping. Can you help me please? How can I get reason why it unhealthy? @colin (rust enthusiast) sorry for ping, I saw you helped a lot others.
Phorcys
Phorcys•2y ago
please just wait, we also have lifes of our own. I usually respond in less than a day
BoJIwEbNuK
BoJIwEbNuK•2y ago
Sorry for that.
Phorcys
Phorcys•2y ago
that's not the same issue does the terminal work?
BoJIwEbNuK
BoJIwEbNuK•2y ago
In site no It's always disconnected
Phorcys
Phorcys•2y ago
you should make your own dockerfile and install curl in it I think that's the issue
BoJIwEbNuK
BoJIwEbNuK•2y ago
Hmm that the main problem, I'm bad at docker anyway. Make dockerfile in the same path for template but in /images? And then add install curl? Or how. Is there some example and then should somehow import dockerfile in main.tf?
Phorcys
Phorcys•2y ago
it's not hard hold on
resource "docker_image" "image" {
name = "org/name:latest"

build {
path = "."
tag = ["org/name", "org/name:latest", "org/name:v0.1"]
}

keep_locally = true
}
resource "docker_image" "image" {
name = "org/name:latest"

build {
path = "."
tag = ["org/name", "org/name:latest", "org/name:v0.1"]
}

keep_locally = true
}
BoJIwEbNuK
BoJIwEbNuK•2y ago
1 moment i will send you how my docker looks
FROM codercom/code-server

# Install prerequisites
RUN apt-get install -y \
curl
CMD /bin/bash
# 123
FROM codercom/code-server

# Install prerequisites
RUN apt-get install -y \
curl
CMD /bin/bash
# 123
Phorcys
Phorcys•2y ago
then in your docker_container resource you will set image = docker_image.basic_env.image_id won't work if codercom/code-server was not found it's because it doesn't support your architecture so it won't be found here either
BoJIwEbNuK
BoJIwEbNuK•2y ago
oh, but linuxserver works
Phorcys
Phorcys•2y ago
FROM linuxserver/code-server:latest

RUN apt install -y curl
FROM linuxserver/code-server:latest

RUN apt install -y curl
do this instead
Want results from more Discord servers?
Add your server