removed icon fetching
This commit is contained in:
@@ -191,24 +191,6 @@ spec:
|
|||||||
sleep 2
|
sleep 2
|
||||||
done
|
done
|
||||||
echo "Redis is ready!"
|
echo "Redis is ready!"
|
||||||
# Fetch missing icons
|
|
||||||
- name: fetch-icons
|
|
||||||
image: alpine:3.20
|
|
||||||
command:
|
|
||||||
- sh
|
|
||||||
- -c
|
|
||||||
- |
|
|
||||||
echo "Downloading missing icons..."
|
|
||||||
apk add --no-cache wget unzip
|
|
||||||
wget -O /icons/icons.zip https://web.dooplex.hu/static/calcom-icons/icons.zip
|
|
||||||
cd /icons
|
|
||||||
unzip -o icons.zip
|
|
||||||
rm icons.zip
|
|
||||||
echo "Icons downloaded and extracted:"
|
|
||||||
ls -la /icons/
|
|
||||||
volumeMounts:
|
|
||||||
- name: missing-icons
|
|
||||||
mountPath: /icons
|
|
||||||
containers:
|
containers:
|
||||||
- name: calcom
|
- name: calcom
|
||||||
image: calcom/cal.com:v6.0.8
|
image: calcom/cal.com:v6.0.8
|
||||||
@@ -218,22 +200,14 @@ spec:
|
|||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
echo "Copying missing icons..."
|
echo "Copying missing icons..."
|
||||||
for icon in /missing-icons/*.svg; do
|
# Copy to public/app-store for web serving
|
||||||
if [ -f "$icon" ]; then
|
mkdir -p /calcom/apps/web/public/app-store/googlevideo
|
||||||
app_name=$(basename "$icon" .svg)
|
cp /calcom/packages/app-store/googlevideo/static/logo.webp /calcom/apps/web/public/app-store/googlevideo/logo.webp
|
||||||
target_dir="/calcom/packages/app-store/${app_name}/static"
|
echo "Copied googlevideo logo.webp to public folder"
|
||||||
if [ -d "$target_dir" ]; then
|
|
||||||
cp "$icon" "${target_dir}/icon.svg"
|
|
||||||
echo "Copied icon for ${app_name}"
|
|
||||||
else
|
|
||||||
echo "Warning: Directory ${target_dir} not found, skipping ${app_name}"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
echo "Starting Cal.com..."
|
echo "Starting Cal.com..."
|
||||||
cd /calcom
|
cd /calcom
|
||||||
exec ./scripts/start.sh
|
exec ./scripts/start.sh
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# License (empty for AGPL, set key for enterprise features)
|
# License (empty for AGPL, set key for enterprise features)
|
||||||
- name: CALCOM_LICENSE_KEY
|
- name: CALCOM_LICENSE_KEY
|
||||||
@@ -361,10 +335,6 @@ spec:
|
|||||||
# CSP - needed for embedded iframes if you want to embed booking widget
|
# CSP - needed for embedded iframes if you want to embed booking widget
|
||||||
- name: CSP_POLICY
|
- name: CSP_POLICY
|
||||||
value: ""
|
value: ""
|
||||||
volumeMounts:
|
|
||||||
- name: missing-icons
|
|
||||||
mountPath: /missing-icons
|
|
||||||
readOnly: true
|
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 3000
|
- containerPort: 3000
|
||||||
name: http
|
name: http
|
||||||
@@ -397,9 +367,6 @@ spec:
|
|||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
timeoutSeconds: 10
|
timeoutSeconds: 10
|
||||||
failureThreshold: 30
|
failureThreshold: 30
|
||||||
volumes:
|
|
||||||
- name: missing-icons
|
|
||||||
emptyDir: {}
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|||||||
Reference in New Issue
Block a user