git subrepo clone https://github.com/TikiWiki/docker-tikiwiki.git tikiwiki/docker-tikiwiki
subrepo:
subdir: "tikiwiki/docker-tikiwiki"
merged: "f5d17ba"
upstream:
origin: "https://github.com/TikiWiki/docker-tikiwiki.git"
branch: "master"
commit: "f5d17ba"
git-subrepo:
version: "0.4.0"
origin: "???"
commit: "???"
diff --git a/tikiwiki/docker-tikiwiki/Dockerfile b/tikiwiki/docker-tikiwiki/Dockerfile
new file mode 100644
index 0000000..122df7d
--- /dev/null
+++ b/tikiwiki/docker-tikiwiki/Dockerfile
@@ -0,0 +1,49 @@
+FROM tikiwiki/php:7.2-apache
+LABEL mantainer "TikiWiki <tikiwiki-devel@lists.sourceforge.net>"
+
+ARG TIKI_SOURCE="https://gitlab.com/tikiwiki/tiki/-/archive/master/tiki-master.tar.gz"
+WORKDIR "/var/www/html"
+
+# If you have https_proxy with SslBump, place it's cetificate
+# in this variable to have curl and composer content cached
+ARG HTTPS_PROXY_CERT=""
+
+RUN echo "${HTTPS_PROXY_CERT}" > /usr/local/share/ca-certificates/https_proxy.crt \
+ && update-ca-certificates \
+ && curl -o tiki.tar.gz -L "${TIKI_SOURCE}" \
+ && chown root: /var/www/html \
+ && tar -C /var/www/html --no-same-owner -zxf tiki.tar.gz --strip 1 \
+ && composer global require hirak/prestissimo \
+ && composer install --working-dir /var/www/html/vendor_bundled --prefer-dist \
+ && rm tiki.tar.gz \
+ && rm -rf /var/lib/apt/lists/* \
+ && rm -rf /tmp/* \
+ && rm -rf /root/.composer \
+ && { \
+ echo "<?php"; \
+ echo " \$db_tiki = getenv('TIKI_DB_DRIVER') ?: 'mysqli';"; \
+ echo " \$dbversion_tiki = getenv('TIKI_DB_VERSION') ?: '21';"; \
+ echo " \$host_tiki = getenv('TIKI_DB_HOST') ?: 'db';"; \
+ echo " \$user_tiki = getenv('TIKI_DB_USER');"; \
+ echo " \$pass_tiki = getenv('TIKI_DB_PASS');"; \
+ echo " \$dbs_tiki = getenv('TIKI_DB_NAME') ?: 'tikiwiki';"; \
+ echo " \$client_charset = 'utf8mb4';"; \
+ } > /var/www/html/db/local.php \
+ && {\
+ echo "session.save_path=/var/www/sessions"; \
+ } > /usr/local/etc/php/conf.d/tiki_session.ini \
+ && /bin/bash htaccess.sh \
+ && mkdir -p /var/www/sessions \
+ && chown -R www-data /var/www/sessions \
+ && chown -R www-data /var/www/html/db/ \
+ && chown -R www-data /var/www/html/dump/ \
+ && chown -R www-data /var/www/html/img/trackers/ \
+ && chown -R www-data /var/www/html/img/wiki/ \
+ && chown -R www-data /var/www/html/img/wiki_up/ \
+ && chown -R www-data /var/www/html/modules/cache/ \
+ && chown -R www-data /var/www/html/temp/ \
+ && chown -R www-data /var/www/html/templates/
+
+VOLUME ["/var/www/html/files/","/var/www/html/img/trackers/","/var/www/html/img/wiki_up/","/var/www/html/img/wiki/","/var/www/html/modules/cache/","/var/www/html/storage/","/var/www/html/temp/","/var/www/sessions/"]
+EXPOSE 80
+CMD ["apache2-foreground"]