From 3b95b6986d7af5f48db78b401b034c6d43033766 Mon Sep 17 00:00:00 2001 From: cbluebird Date: Tue, 10 Sep 2024 16:32:17 +0800 Subject: [PATCH] bugfix: update Dockerfile to fix file owner --- Language/go/{go1.22.5 => 1.22.5}/Dockerfile | 4 +++- Language/go/{go1.23.0 => 1.23.0}/Dockerfile | 4 +++- .../go/go1.22.5/runtime-go1.22.5.yaml | 21 ------------------- .../go/go1.23.0/runtime-go1.23.0.yaml | 21 ------------------- .../java/openjdk17/runtime-openjdk17.yaml | 21 ------------------- .../nodejs/nodejs18/runtime-nodejs18.yaml | 21 ------------------- .../nodejs/nodejs20/runtime-nodejs20.yaml | 21 ------------------- .../nodejs/nodejs22/runtime-nodejs22.yaml | 21 ------------------- .../python/python3.10/runtime-python3.10.yaml | 21 ------------------- .../python/python3.11/runtime-python3.11.yaml | 21 ------------------- .../python/python3.12/runtime-python3.12.yaml | 21 ------------------- .../rust/rust1.81.0/runtime-rust1.81.0.yaml | 21 ------------------- 12 files changed, 6 insertions(+), 212 deletions(-) rename Language/go/{go1.22.5 => 1.22.5}/Dockerfile (84%) rename Language/go/{go1.23.0 => 1.23.0}/Dockerfile (84%) delete mode 100644 yaml/Language/go/go1.22.5/runtime-go1.22.5.yaml delete mode 100644 yaml/Language/go/go1.23.0/runtime-go1.23.0.yaml delete mode 100644 yaml/Language/java/openjdk17/runtime-openjdk17.yaml delete mode 100644 yaml/Language/nodejs/nodejs18/runtime-nodejs18.yaml delete mode 100644 yaml/Language/nodejs/nodejs20/runtime-nodejs20.yaml delete mode 100644 yaml/Language/nodejs/nodejs22/runtime-nodejs22.yaml delete mode 100644 yaml/Language/python/python3.10/runtime-python3.10.yaml delete mode 100644 yaml/Language/python/python3.11/runtime-python3.11.yaml delete mode 100644 yaml/Language/python/python3.12/runtime-python3.12.yaml delete mode 100644 yaml/Language/rust/rust1.81.0/runtime-rust1.81.0.yaml diff --git a/Language/go/go1.22.5/Dockerfile b/Language/go/1.22.5/Dockerfile similarity index 84% rename from Language/go/go1.22.5/Dockerfile rename to Language/go/1.22.5/Dockerfile index 74750a39..f88593a5 100644 --- a/Language/go/go1.22.5/Dockerfile +++ b/Language/go/1.22.5/Dockerfile @@ -11,7 +11,9 @@ RUN curl -O https://dl.google.com/go/go1.22.5.linux-amd64.tar.gz && \ echo 'export PATH=$PATH:/usr/local/go/bin:/go/bin' >> /home/sealos/.bashrc && \ echo 'export GOPATH=/go' >> /root/.bashrc && \ echo 'export PATH=$PATH:/usr/local/go/bin:/go/bin' >> /root/.bashrc && \ - chmod -R 777 /go + chmod -R 777 /go && \ + chown -R sealos:sealos /home/sealos/worspace && \ + chmod -R u+rw /home/sealos/workspace ENV GOPATH=/go ENV PATH=$PATH:/usr/local/go/bin:/go/bin diff --git a/Language/go/go1.23.0/Dockerfile b/Language/go/1.23.0/Dockerfile similarity index 84% rename from Language/go/go1.23.0/Dockerfile rename to Language/go/1.23.0/Dockerfile index be9e66f2..2fa5889e 100644 --- a/Language/go/go1.23.0/Dockerfile +++ b/Language/go/1.23.0/Dockerfile @@ -11,7 +11,9 @@ RUN curl -O https://dl.google.com/go/go1.23.0.linux-amd64.tar.gz && \ echo 'export PATH=$PATH:/usr/local/go/bin:/go/bin' >> /home/sealos/.bashrc && \ echo 'export GOPATH=/go' >> /root/.bashrc && \ echo 'export PATH=$PATH:/usr/local/go/bin:/go/bin' >> /root/.bashrc && \ - chmod -R 777 /go + chmod -R 777 /go && \ + chown -R sealos:sealos /home/sealos/worspace && \ + chmod -R u+rw /home/sealos/workspace ENV GOPATH=/go ENV PATH=$PATH:/usr/local/go/bin:/go/bin diff --git a/yaml/Language/go/go1.22.5/runtime-go1.22.5.yaml b/yaml/Language/go/go1.22.5/runtime-go1.22.5.yaml deleted file mode 100644 index 19ba8dc5..00000000 --- a/yaml/Language/go/go1.22.5/runtime-go1.22.5.yaml +++ /dev/null @@ -1,21 +0,0 @@ -apiVersion: devbox.sealos.io/v1alpha1 -kind: Runtime -metadata: - name: go1-22-5 -spec: - title: go1.22.5 - classRef: go - description: "go1.22.5" - config: - user: sealos - image: ghcr.io/labring-actions/devbox/go1.22.5:b50472 - category: ---- -apiVersion: devbox.sealos.io/v1alpha1 -kind: RuntimeClass -metadata: - name: go -spec: - title: go - kind: Language - description: "go" diff --git a/yaml/Language/go/go1.23.0/runtime-go1.23.0.yaml b/yaml/Language/go/go1.23.0/runtime-go1.23.0.yaml deleted file mode 100644 index 71db2b21..00000000 --- a/yaml/Language/go/go1.23.0/runtime-go1.23.0.yaml +++ /dev/null @@ -1,21 +0,0 @@ -apiVersion: devbox.sealos.io/v1alpha1 -kind: Runtime -metadata: - name: go1-23-0 -spec: - title: go1.23.0 - classRef: go - description: "go1.23.0" - config: - user: sealos - image: ghcr.io/labring-actions/devbox/go1.23.0:b50472 - category: ---- -apiVersion: devbox.sealos.io/v1alpha1 -kind: RuntimeClass -metadata: - name: go -spec: - title: go - kind: Language - description: "go" diff --git a/yaml/Language/java/openjdk17/runtime-openjdk17.yaml b/yaml/Language/java/openjdk17/runtime-openjdk17.yaml deleted file mode 100644 index 2c7c59c7..00000000 --- a/yaml/Language/java/openjdk17/runtime-openjdk17.yaml +++ /dev/null @@ -1,21 +0,0 @@ -apiVersion: devbox.sealos.io/v1alpha1 -kind: Runtime -metadata: - name: openjdk17 -spec: - title: openjdk17 - classRef: java - description: "openjdk17" - config: - user: sealos - image: ghcr.io/labring-actions/devbox/openjdk17:b50472 - category: ---- -apiVersion: devbox.sealos.io/v1alpha1 -kind: RuntimeClass -metadata: - name: java -spec: - title: java - kind: Language - description: "java" diff --git a/yaml/Language/nodejs/nodejs18/runtime-nodejs18.yaml b/yaml/Language/nodejs/nodejs18/runtime-nodejs18.yaml deleted file mode 100644 index 1a3330a1..00000000 --- a/yaml/Language/nodejs/nodejs18/runtime-nodejs18.yaml +++ /dev/null @@ -1,21 +0,0 @@ -apiVersion: devbox.sealos.io/v1alpha1 -kind: Runtime -metadata: - name: nodejs18 -spec: - title: nodejs18 - classRef: nodejs - description: "nodejs18" - config: - user: sealos - image: ghcr.io/labring-actions/devbox/nodejs18:b50472 - category: ---- -apiVersion: devbox.sealos.io/v1alpha1 -kind: RuntimeClass -metadata: - name: nodejs -spec: - title: nodejs - kind: Language - description: "nodejs" diff --git a/yaml/Language/nodejs/nodejs20/runtime-nodejs20.yaml b/yaml/Language/nodejs/nodejs20/runtime-nodejs20.yaml deleted file mode 100644 index 785e25f8..00000000 --- a/yaml/Language/nodejs/nodejs20/runtime-nodejs20.yaml +++ /dev/null @@ -1,21 +0,0 @@ -apiVersion: devbox.sealos.io/v1alpha1 -kind: Runtime -metadata: - name: nodejs20 -spec: - title: nodejs20 - classRef: nodejs - description: "nodejs20" - config: - user: sealos - image: ghcr.io/labring-actions/devbox/nodejs20:b50472 - category: ---- -apiVersion: devbox.sealos.io/v1alpha1 -kind: RuntimeClass -metadata: - name: nodejs -spec: - title: nodejs - kind: Language - description: "nodejs" diff --git a/yaml/Language/nodejs/nodejs22/runtime-nodejs22.yaml b/yaml/Language/nodejs/nodejs22/runtime-nodejs22.yaml deleted file mode 100644 index 74ac97c5..00000000 --- a/yaml/Language/nodejs/nodejs22/runtime-nodejs22.yaml +++ /dev/null @@ -1,21 +0,0 @@ -apiVersion: devbox.sealos.io/v1alpha1 -kind: Runtime -metadata: - name: nodejs22 -spec: - title: nodejs22 - classRef: nodejs - description: "nodejs22" - config: - user: sealos - image: ghcr.io/labring-actions/devbox/nodejs22:b50472 - category: ---- -apiVersion: devbox.sealos.io/v1alpha1 -kind: RuntimeClass -metadata: - name: nodejs -spec: - title: nodejs - kind: Language - description: "nodejs" diff --git a/yaml/Language/python/python3.10/runtime-python3.10.yaml b/yaml/Language/python/python3.10/runtime-python3.10.yaml deleted file mode 100644 index 68f2fd8b..00000000 --- a/yaml/Language/python/python3.10/runtime-python3.10.yaml +++ /dev/null @@ -1,21 +0,0 @@ -apiVersion: devbox.sealos.io/v1alpha1 -kind: Runtime -metadata: - name: python3-10 -spec: - title: python3.10 - classRef: python - description: "python3.10" - config: - user: sealos - image: ghcr.io/labring-actions/devbox/python3.10:b523e9 - category: ---- -apiVersion: devbox.sealos.io/v1alpha1 -kind: RuntimeClass -metadata: - name: python -spec: - title: python - kind: Language - description: "python" diff --git a/yaml/Language/python/python3.11/runtime-python3.11.yaml b/yaml/Language/python/python3.11/runtime-python3.11.yaml deleted file mode 100644 index 1bbaa203..00000000 --- a/yaml/Language/python/python3.11/runtime-python3.11.yaml +++ /dev/null @@ -1,21 +0,0 @@ -apiVersion: devbox.sealos.io/v1alpha1 -kind: Runtime -metadata: - name: python3-11 -spec: - title: python3.11 - classRef: python - description: "python3.11" - config: - user: sealos - image: ghcr.io/labring-actions/devbox/python3.11:b523e9 - category: ---- -apiVersion: devbox.sealos.io/v1alpha1 -kind: RuntimeClass -metadata: - name: python -spec: - title: python - kind: Language - description: "python" diff --git a/yaml/Language/python/python3.12/runtime-python3.12.yaml b/yaml/Language/python/python3.12/runtime-python3.12.yaml deleted file mode 100644 index 50487f36..00000000 --- a/yaml/Language/python/python3.12/runtime-python3.12.yaml +++ /dev/null @@ -1,21 +0,0 @@ -apiVersion: devbox.sealos.io/v1alpha1 -kind: Runtime -metadata: - name: python3-12 -spec: - title: python3.12 - classRef: python - description: "python3.12" - config: - user: sealos - image: ghcr.io/labring-actions/devbox/python3.12:6e6ed1 - category: ---- -apiVersion: devbox.sealos.io/v1alpha1 -kind: RuntimeClass -metadata: - name: python -spec: - title: python - kind: Language - description: "python" diff --git a/yaml/Language/rust/rust1.81.0/runtime-rust1.81.0.yaml b/yaml/Language/rust/rust1.81.0/runtime-rust1.81.0.yaml deleted file mode 100644 index e1eeb500..00000000 --- a/yaml/Language/rust/rust1.81.0/runtime-rust1.81.0.yaml +++ /dev/null @@ -1,21 +0,0 @@ -apiVersion: devbox.sealos.io/v1alpha1 -kind: Runtime -metadata: - name: rust1-81-0 -spec: - title: rust1.81.0 - classRef: rust - description: "rust1.81.0" - config: - user: sealos - image: ghcr.io/labring-actions/devbox/rust1.81.0:17340d - category: ---- -apiVersion: devbox.sealos.io/v1alpha1 -kind: RuntimeClass -metadata: - name: rust -spec: - title: rust - kind: Language - description: "rust"