Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F256814
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/docker/webapp/Dockerfile b/docker/webapp/Dockerfile
index f31bbe4d..9dcb2392 100755
--- a/docker/webapp/Dockerfile
+++ b/docker/webapp/Dockerfile
@@ -1,15 +1,16 @@
FROM apheleia/swoole:4.8.x
MAINTAINER Jeroen van Meeuwen <vanmeeuwen@apheleia-it.ch>
USER root
-RUN dnf -y install findutils gnupg2 git rsync
+RUN dnf -y install findutils gnupg2 git rsync procps-ng
EXPOSE 8000
COPY build.sh /build.sh
RUN /build.sh
COPY init.sh /init.sh
+COPY update.sh /update.sh
CMD [ "/init.sh" ]
diff --git a/docker/webapp/update.sh b/docker/webapp/update.sh
new file mode 100755
index 00000000..8e03bf21
--- /dev/null
+++ b/docker/webapp/update.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+set -e
+set -x
+
+rsync -av \
+ --exclude=vendor \
+ --exclude=composer.lock \
+ --exclude=node_modules \
+ --exclude=package-lock.json \
+ --exclude=public \
+ --exclude=storage \
+ --exclude=resources/build \
+ --exclude=bootstrap \
+ --exclude=.gitignore \
+ /src/kolabsrc.orig/ /src/kolabsrc/ | tee /tmp/rsync.output
+
+cd /src/kolabsrc/
+# Only run npm if something relevant was updated
+if grep -e "package.json" -e "resources" /tmp/rsync.output; then
+ npm run dev
+fi
+./artisan octane:reload
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Mon, Jun 9, 10:08 PM (1 d, 7 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
196874
Default Alt Text
(1 KB)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment