π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
[INFRA-219] fix: update Dockerfile and docker-compose for proxy service (#7523)
Akshat Jaincc49a2ca4f9c
diff --git a/apps/proxy/Dockerfile.ce b/apps/proxy/Dockerfile.ceindex 4d2f6dd0af..2c0f3ead59 100644--- a/apps/proxy/Dockerfile.ce+++ b/apps/proxy/Dockerfile.ce@@ -5,7 +5,7 @@ RUN xcaddy build \--with github.com/caddy-dns/digitalocean@04bde2867106aa1b44c2f9da41a285fa02e629c5 \--with github.com/mholt/caddy-l4@4d3c80e89c5f80438a3e048a410d5543ff5fb9f4-FROM caddy:2.10.0-builder-alpine+FROM caddy:2.10.0-alpineRUN apk add --no-cache nss-tools bash curldiff --git a/deployments/cli/community/docker-compose.yml b/deployments/cli/community/docker-compose.ymlindex 0d0eeb5b66..7afc8d2a14 100644--- a/deployments/cli/community/docker-compose.yml+++ b/deployments/cli/community/docker-compose.yml@@ -216,15 +216,6 @@ services:# Comment this if you already have a reverse proxy runningproxy:image: artifacts.plane.so/makeplane/plane-proxy:${APP_RELEASE:-stable}- command:- [- "caddy",- "run",- "--config",- "/etc/caddy/Caddyfile",- "--adapter",- "caddyfile",- ]deploy:replicas: 1restart_policy:diff --git a/deployments/cli/community/install.sh b/deployments/cli/community/install.shindex b80f961a3d..e2e89814d3 100755--- a/deployments/cli/community/install.sh+++ b/deployments/cli/community/install.sh@@ -57,7 +57,7 @@ function spinner() {function checkLatestRelease(){echo "Checking for the latest release..." >&2- local latest_release=$(curl -s https://api.github.com/repos/$GH_REPO/releases/latest | grep -o '"tag_name": "[^"]*"' | sed 's/"tag_name": "//;s/"//g')+ local latest_release=$(curl -sSL https://api.github.com/repos/$GH_REPO/releases/latest | grep -o '"tag_name": "[^"]*"' | sed 's/"tag_name": "//;s/"//g')if [ -z "$latest_release" ]; thenecho "Failed to check for the latest release. Exiting..." >&2exit 1@@ -247,7 +247,7 @@ function download() {mv $PLANE_INSTALL_DIR/docker-compose.yaml $PLANE_INSTALL_DIR/archive/$TS.docker-compose.yamlfi- RESPONSE=$(curl -H 'Cache-Control: no-cache, no-store' -s -w "HTTPSTATUS:%{http_code}" "$RELEASE_DOWNLOAD_URL/$APP_RELEASE/docker-compose.yml?$(date +%s)")+ RESPONSE=$(curl -sSL -H 'Cache-Control: no-cache, no-store' -w "HTTPSTATUS:%{http_code}" "$RELEASE_DOWNLOAD_URL/$APP_RELEASE/docker-compose.yml?$(date +%s)")BODY=$(echo "$RESPONSE" | sed -e 's/HTTPSTATUS\:.*//g')STATUS=$(echo "$RESPONSE" | tr -d '\n' | sed -e 's/.*HTTPSTATUS://')@@ -255,7 +255,7 @@ function download() {echo "$BODY" > $PLANE_INSTALL_DIR/docker-compose.yamlelse# Fallback to download from the raw github url- RESPONSE=$(curl -H 'Cache-Control: no-cache, no-store' -s -w "HTTPSTATUS:%{http_code}" "$FALLBACK_DOWNLOAD_URL/docker-compose.yml?$(date +%s)")+ RESPONSE=$(curl -sSL -H 'Cache-Control: no-cache, no-store' -w "HTTPSTATUS:%{http_code}" "$FALLBACK_DOWNLOAD_URL/docker-compose.yml?$(date +%s)")BODY=$(echo "$RESPONSE" | sed -e 's/HTTPSTATUS\:.*//g')STATUS=$(echo "$RESPONSE" | tr -d '\n' | sed -e 's/.*HTTPSTATUS://')@@ -269,7 +269,7 @@ function download() {fifi- RESPONSE=$(curl -H 'Cache-Control: no-cache, no-store' -s -w "HTTPSTATUS:%{http_code}" "$RELEASE_DOWNLOAD_URL/$APP_RELEASE/variables.env?$(date +%s)")+ RESPONSE=$(curl -sSL -H 'Cache-Control: no-cache, no-store' -w "HTTPSTATUS:%{http_code}" "$RELEASE_DOWNLOAD_URL/$APP_RELEASE/variables.env?$(date +%s)")BODY=$(echo "$RESPONSE" | sed -e 's/HTTPSTATUS\:.*//g')STATUS=$(echo "$RESPONSE" | tr -d '\n' | sed -e 's/.*HTTPSTATUS://')@@ -277,7 +277,7 @@ function download() {echo "$BODY" > $PLANE_INSTALL_DIR/variables-upgrade.envelse# Fallback to download from the raw github url- RESPONSE=$(curl -H 'Cache-Control: no-cache, no-store' -s -w "HTTPSTATUS:%{http_code}" "$FALLBACK_DOWNLOAD_URL/variables.env?$(date +%s)")+ RESPONSE=$(curl -sSL -H 'Cache-Control: no-cache, no-store' -w "HTTPSTATUS:%{http_code}" "$FALLBACK_DOWNLOAD_URL/variables.env?$(date +%s)")BODY=$(echo "$RESPONSE" | sed -e 's/HTTPSTATUS\:.*//g')STATUS=$(echo "$RESPONSE" | tr -d '\n' | sed -e 's/.*HTTPSTATUS://')