Added Web and Go Options to Default Template

This commit is contained in:
2023-06-30 02:20:03 +00:00
parent 9f663d65f1
commit 64da18e5ca
5 changed files with 48 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
code-server --install-extension golang.Go
+1
View File
@@ -0,0 +1 @@
code-server --install-extension yuichinukiyama.vscode-preview-server passionkind.prettier-vscode-with-tabs
+18
View File
@@ -0,0 +1,18 @@
FROM golang:latest
RUN apt-get update \
&& apt-get install -y \
curl \
git \
sudo \
vim \
nano \
wget \
&& rm -rf /var/lib/apt/lists/*
ARG USER=coder
RUN useradd --groups sudo --no-create-home --shell /bin/bash ${USER} \
&& echo "${USER} ALL=(ALL) NOPASSWD:ALL" >/etc/sudoers.d/${USER} \
&& chmod 0440 /etc/sudoers.d/${USER}
USER ${USER}
WORKDIR /home/${USER}
+18
View File
@@ -0,0 +1,18 @@
FROM ubuntu
RUN apt-get update \
&& apt-get install -y \
curl \
git \
sudo \
vim \
nano \
wget \
&& rm -rf /var/lib/apt/lists/*
ARG USER=coder
RUN useradd --groups sudo --no-create-home --shell /bin/bash ${USER} \
&& echo "${USER} ALL=(ALL) NOPASSWD:ALL" >/etc/sudoers.d/${USER} \
&& chmod 0440 /etc/sudoers.d/${USER}
USER ${USER}
WORKDIR /home/${USER}
+10
View File
@@ -83,6 +83,16 @@ data "coder_parameter" "language" {
name = "Python 3"
value = "python3"
}
option {
name = "Go"
value = "golang"
}
option {
name = "Web"
value = "web"
}
}
resource "coder_agent" "main" {