mirror of
https://github.com/YunoHost/doc.git
synced 2024-09-03 20:06:26 +02:00
add plugins as an external git repo
finally (to squash)
This commit is contained in:
parent
598c0ee38f
commit
5985505f3e
2 changed files with 11 additions and 5 deletions
11
Dockerfile
11
Dockerfile
|
@ -63,11 +63,18 @@ WORKDIR /var/www
|
||||||
RUN curl -o grav-admin.zip -SL https://getgrav.org/download/core/grav-admin/${GRAV_VERSION} && \
|
RUN curl -o grav-admin.zip -SL https://getgrav.org/download/core/grav-admin/${GRAV_VERSION} && \
|
||||||
unzip grav-admin.zip && \
|
unzip grav-admin.zip && \
|
||||||
mv -T /var/www/grav-admin /var/www/html && \
|
mv -T /var/www/grav-admin /var/www/html && \
|
||||||
rm grav-admin.zip
|
rm grav-admin.zip && \
|
||||||
|
rm -rf /var/www/html/user/plugins
|
||||||
|
|
||||||
# Create cron job for Grav maintenance scripts
|
# Create cron job for Grav maintenance scripts
|
||||||
RUN (crontab -l; echo "* * * * * cd /var/www/html;/usr/local/bin/php bin/grav scheduler 1>> /dev/null 2>&1") | crontab -
|
RUN (crontab -l; echo "* * * * * cd /var/www/html;/usr/local/bin/php bin/grav scheduler 1>> /dev/null 2>&1") | crontab -
|
||||||
|
|
||||||
|
# Copy base theme
|
||||||
|
RUN git clone --depth 1 https://github.com/getgrav/grav-theme-learn4 /var/www/html/user/themes/learn4
|
||||||
|
|
||||||
|
# Copy plugins
|
||||||
|
RUN git clone --depth 1 https://github.com/YunoHost/doc-dev /var/www/html/user/plugins
|
||||||
|
|
||||||
# Return to root user
|
# Return to root user
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
|
@ -75,7 +82,7 @@ USER root
|
||||||
# COPY docker-entrypoint.sh /entrypoint.sh
|
# COPY docker-entrypoint.sh /entrypoint.sh
|
||||||
|
|
||||||
# provide container inside image for data persistence
|
# provide container inside image for data persistence
|
||||||
VOLUME ["/var/www/html/backup", "/var/www/html/logs", "/var/www/html/user/themes", "/var/www/html/user/pages", "/var/www/html/user/config", "/var/www/html/user/images"]
|
VOLUME ["/var/www/html/backup", "/var/www/html/user/themes/yunohost-docs", "/var/www/html/logs", "/var/www/html/user/pages", "/var/www/html/user/config", "/var/www/html/user/images"]
|
||||||
|
|
||||||
# ENTRYPOINT ["/entrypoint.sh"]
|
# ENTRYPOINT ["/entrypoint.sh"]
|
||||||
# CMD ["apache2-foreground"]
|
# CMD ["apache2-foreground"]
|
||||||
|
|
|
@ -5,8 +5,7 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- 8000:80
|
- 8000:80
|
||||||
volumes:
|
volumes:
|
||||||
- ./themes:/var/www/html/user/themes
|
- ./themes/yunohost-docs:/var/www/html/user/themes/yunohost-docs
|
||||||
- ./config:/var/www/html/user/config
|
- ./config:/var/www/html/user/config
|
||||||
- ./pages:/var/www/html/user/pages
|
- ./pages:/var/www/html/user/pages
|
||||||
- ./images:/var/www/html/user/images
|
- ./images:/var/www/html/user/images
|
||||||
- ./dev/plugins:/var/www/html/user/plugins
|
|
||||||
|
|
Loading…
Reference in a new issue