From e9148bc1af9306181a5462b3a614338ce31d54d4 Mon Sep 17 00:00:00 2001 From: Jun-te Kim Date: Mon, 23 Feb 2026 21:17:07 +0000 Subject: [PATCH] build --- draw/draw.yaml | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/draw/draw.yaml b/draw/draw.yaml index 1cd7b02..4d3692f 100644 --- a/draw/draw.yaml +++ b/draw/draw.yaml @@ -1,5 +1,5 @@ # ========================================== -# JS PAINT (STATELESS) +# JS PAINT (STATIC DEPLOYMENT) # ========================================== --- @@ -20,11 +20,31 @@ spec: nodeSelector: kubernetes.io/hostname: mist + volumes: + - name: web-content + emptyDir: {} + + initContainers: + - name: fetch-jspaint + image: alpine/git + command: + - sh + - -c + - | + git clone --depth=1 https://github.com/1j01/jspaint.git /tmp/jspaint && \ + cp -r /tmp/jspaint/* /web + volumeMounts: + - name: web-content + mountPath: /web + containers: - - name: jspaint - image: ghcr.io/1j01/jspaint:latest + - name: nginx + image: nginx:alpine ports: - containerPort: 80 + volumeMounts: + - name: web-content + mountPath: /usr/share/nginx/html resources: requests: cpu: "50m"