Compare commits

8 Commits
main ... main

Author SHA1 Message Date
jbrooke-montala
490dd3bbf8 Merge pull request #9 from cevans-montala/patch-1
Update docker-compose.yaml
2025-08-21 15:18:31 +01:00
Chris
629d034627 Update docker-compose.yaml
Remove unneeded entry under volumes
2025-08-21 15:07:41 +01:00
jbrooke-montala
4d34785299 Merge pull request #7 from cevans-montala/main
Add .gitattributes file to force Unix line endings for entrypoint.sh
2025-08-05 14:26:02 +01:00
Chris Evans
eee2dcb59d Add .gitattributes file to force Unix line endings for entrypoint.sh 2025-08-04 16:23:36 +01:00
jbrooke-montala
e53595e711 Merge pull request #5 from cevans-montala/main
Added entrypoint.sh script to start Apache and cron and made Dockerfile run it after building.
2025-07-28 16:33:42 +01:00
Chris Evans
7102ce971f Update Dockerfile to pull ResourceSpace 10.6 2025-07-28 14:47:23 +01:00
Chris Evans
f458dda093 Only map config.php rather than whole include folder 2025-07-28 14:46:41 +01:00
Chris Evans
4fc6fc0c4f Add entrypoint.sh script to start Apache and cron and make Dockerfile run it after building 2025-07-23 11:39:44 +01:00
5 changed files with 20 additions and 5 deletions

1
.gitattributes vendored Normal file
View File

@@ -0,0 +1 @@
*.sh text eol=lf

View File

@@ -49,9 +49,15 @@ ADD cronjob /etc/cron.daily/resourcespace
WORKDIR /var/www/html
RUN rm -f index.html \
&& svn co -q https://svn.resourcespace.com/svn/rs/releases/10.5 . \
&& svn co -q https://svn.resourcespace.com/svn/rs/releases/10.6 . \
&& mkdir -p filestore \
&& chmod 777 filestore \
&& chmod -R 777 include/
CMD apachectl -D FOREGROUND
# Copy custom entrypoint script
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# Start both cron and Apache
CMD ["/entrypoint.sh"]

0
config.php Normal file
View File

View File

@@ -6,9 +6,8 @@ services:
depends_on:
- mariadb
volumes:
- include:/var/www/html/include
- filestore:/var/www/html/filestore
- ./testdir:/srv/storage/testdir
- ./config.php:/var/www/html/include/config.php
networks:
- frontend
- backend
@@ -32,5 +31,4 @@ networks:
volumes:
mariadb:
include:
filestore:

10
entrypoint.sh Normal file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
# Start cron service
service cron start
# Ensure daily cron jobs are executable
chmod +x /etc/cron.daily/*
# Start Apache in the foreground (keeps the container alive)
apachectl -D FOREGROUND