From bebe9c6035bb58bbcf0da65ccd68b26581c86b62 Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Thu, 6 Mar 2025 14:20:33 +0800 Subject: [PATCH] feat: add go 1.23 1.24 version (#3372) --- go/1.23/data.yml | 1 + go/1.23/docker-compose.yml | 21 +++++++++++++++++++++ go/1.23/run.sh | 6 ++++++ go/1.24/data.yml | 1 + go/1.24/docker-compose.yml | 21 +++++++++++++++++++++ go/1.24/run.sh | 6 ++++++ 6 files changed, 56 insertions(+) create mode 100644 go/1.23/data.yml create mode 100644 go/1.23/docker-compose.yml create mode 100644 go/1.23/run.sh create mode 100644 go/1.24/data.yml create mode 100644 go/1.24/docker-compose.yml create mode 100644 go/1.24/run.sh diff --git a/go/1.23/data.yml b/go/1.23/data.yml new file mode 100644 index 000000000..fcc6ed694 --- /dev/null +++ b/go/1.23/data.yml @@ -0,0 +1 @@ +additionalProperties: \ No newline at end of file diff --git a/go/1.23/docker-compose.yml b/go/1.23/docker-compose.yml new file mode 100644 index 000000000..f90a11d81 --- /dev/null +++ b/go/1.23/docker-compose.yml @@ -0,0 +1,21 @@ +services: + golang: + image: golang:${GO_VERSION} + container_name: ${CONTAINER_NAME} + working_dir: /app + volumes: + - ${CODE_DIR}:/app + - ./run.sh:/run.sh + - ./.env:/.env + - ./mod:/go/pkg/mod + command: bash /run.sh + networks: + - 1panel-network + ports: + - ${HOST_IP}:${PANEL_APP_PORT_HTTP}:${GO_APP_PORT} + restart: on-failure:5 + labels: + createdBy: "Apps" +networks: + 1panel-network: + external: true diff --git a/go/1.23/run.sh b/go/1.23/run.sh new file mode 100644 index 000000000..9a7f1b85b --- /dev/null +++ b/go/1.23/run.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +source /.env +eval $EXEC_SCRIPT + + diff --git a/go/1.24/data.yml b/go/1.24/data.yml new file mode 100644 index 000000000..fcc6ed694 --- /dev/null +++ b/go/1.24/data.yml @@ -0,0 +1 @@ +additionalProperties: \ No newline at end of file diff --git a/go/1.24/docker-compose.yml b/go/1.24/docker-compose.yml new file mode 100644 index 000000000..f90a11d81 --- /dev/null +++ b/go/1.24/docker-compose.yml @@ -0,0 +1,21 @@ +services: + golang: + image: golang:${GO_VERSION} + container_name: ${CONTAINER_NAME} + working_dir: /app + volumes: + - ${CODE_DIR}:/app + - ./run.sh:/run.sh + - ./.env:/.env + - ./mod:/go/pkg/mod + command: bash /run.sh + networks: + - 1panel-network + ports: + - ${HOST_IP}:${PANEL_APP_PORT_HTTP}:${GO_APP_PORT} + restart: on-failure:5 + labels: + createdBy: "Apps" +networks: + 1panel-network: + external: true diff --git a/go/1.24/run.sh b/go/1.24/run.sh new file mode 100644 index 000000000..9a7f1b85b --- /dev/null +++ b/go/1.24/run.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +source /.env +eval $EXEC_SCRIPT + +