Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docker-wordpress
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
docker-wordpress
Commits
597c1c69
Commit
597c1c69
authored
Oct 04, 2016
by
Fabio Montefuscolo
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'tiki-wiki'
parents
68a9f699
24a0d699
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
96 additions
and
0 deletions
+96
-0
tiki-wiki/Dockerfile
tiki-wiki/Dockerfile
+44
-0
tiki-wiki/README
tiki-wiki/README
+44
-0
tiki-wiki/docker-entrypoint.sh
tiki-wiki/docker-entrypoint.sh
+8
-0
No files found.
tiki-wiki/Dockerfile
0 → 100644
View file @
597c1c69
FROM
montefuscolo/php
MAINTAINER
Fabio Montefuscolo <fabio.montefuscolo@gmail.com>
RUN
curl
-o
tiki-wiki.tar.gz
'http://ufpr.dl.sourceforge.net/project/tikiwiki/Tiki_12.x_Altair/12.9/tiki-12.9.tar.gz'
RUN
tar
-C
/var/www/html
-zxvf
tiki-wiki.tar.gz
--strip
1
\
&&
rm
tiki-wiki.tar.gz
WORKDIR
/var/www/html/
RUN
{
\
echo
"<?php"
;
\
echo
"
\$
db_tiki = getenv('TIKI_DB_DRIVER') ?: 'mysql';"
;
\
echo
"
\$
dbversion_tiki = getenv('TIKI_DB_VERSION') ?: '12.9';"
;
\
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 = 'utf8';"
;
\
}
>
db/local.php
RUN
/bin/bash htaccess.sh
RUN
chown
-R
root:root /var
\
&&
find /var/www/html
-type
f
-exec
chmod
644
{}
\;
\
&&
find /var/www/html
-type
d
-exec
chmod
755
{}
\;
\
&&
chown
-R
www-data db
\
&&
chown
-R
www-data dump
\
&&
chown
-R
www-data img/wiki
\
&&
chown
-R
www-data img/wiki_up
\
&&
chown
-R
www-data img/trackers
\
&&
chown
-R
www-data modules/cache
\
&&
chown
-R
www-data styles
\
&&
chown
-R
www-data temp
\
&&
chown
-R
www-data temp/cache
\
&&
chown
-R
www-data templates
\
&&
chown
-R
www-data templates_c
\
&&
chown
-R
www-data whelp
COPY
docker-entrypoint.sh /entrypoint.sh
VOLUME
["/var/www/html/files/", "/var/www/html/img/wiki/", "/var/www/html/img/wiki_up/", "/var/www/html/img/trackers/"]
EXPOSE
80 443
ENTRYPOINT
["/entrypoint.sh"]
CMD
["apache2-foreground"]
tiki-wiki/README
0 → 100644
View file @
597c1c69
TikiWiki
========
TikiWiki is full featured content management system written in php. You can
find more useful information at http://tiki.org
Pulling
-------
Actually, no tags are being used to this container. The tiki version available
inside container is the LTS 12.9. You can pull like below.
```
docker pull montefuscolo/tiki-wiki
```
Running
-------
Some env varibles are provided to setup the database, but you can also mount
your configurations files inside conainer. The env vars and the default values
are listed below and the names are self explanatory.
```
TIKI_DB_DRIVER=mysql
TIKI_DB_VERSION=12.9
TIKI_DB_HOST='db'
TIKI_DB_USER
TIKI_DB_PASS
TIKI_DB_NAME=tikiwiki
```
Example to get a running container below.
```
docker run --rm --name tiki --link mariadb:db \
-e TIKI_DB_USER=tiki \
-e TIKI_DB_PASS=wiki \
-p 80:80 \
-d montefuscolo/tiki-wiki
```
tiki-wiki/docker-entrypoint.sh
0 → 100755
View file @
597c1c69
#!/bin/bash
if
[
"
$OPCACHE
"
=
"false"
]
;
then
echo
"php_flag opcache.enable Off"
>>
/var/www/html/.htaccess
fi
exec
"
$@
"
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment