Add node template

This commit is contained in:
2023-06-04 00:27:54 +00:00
parent ebfc8acb71
commit 696adafc41
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -1,4 +1,4 @@
FROM ubuntu
FROM node
RUN apt-get update \
&& apt-get install -y \
@@ -8,6 +8,7 @@ RUN apt-get update \
vim \
nano \
wget \
bash \
&& rm -rf /var/lib/apt/lists/*
ARG USER=coder
+2 -2
View File
@@ -2,7 +2,7 @@ terraform {
required_providers {
coder = {
source = "coder/coder"
version = "~> 0.7.0"
version = "~> 0.8.2"
}
docker = {
source = "kreuzwerker/docker"
@@ -54,7 +54,7 @@ resource "coder_agent" "main" {
startup_script = <<-EOT
set -e
# Base Script
curl -fsSL https://gitea.nicholaspease.com/npease/CoderTemplatesV2/raw/branch/main/base.sh | sh
curl -fsSL https://gitea.nicholaspease.com/npease/CoderTemplatesV2/raw/branch/main/container-scripts/base.sh | sh
# WakaAPI Setup
echo "[settings]" >> ~/.wakatime.cfg && echo "api_url = ${var.waka_api_url}" >> ~/.wakatime.cfg && echo "api_key = ${var.waka_api_key}" >> ~/.wakatime.cfg
# Clone Git Repo