Loading...
 

Docker

Docker for Tiki Development

Why Docker

Docker allows you to run the exact same environment on different machines, thus preventing bugs related to using different operating systems (e.g., Windows, macOS, GNU/Linux), different packages versions (e.g., Apache HTTP Server, PHP, MariaDB, ...), and therefore different environments (e.g., development, staging, production). Less time dealing with environment issues = more time developing awesome features!

This guide assumes that you are comfortable with developer tools like bash/sh, docker, dotenv and git. If you are not, and you are only looking for testing Tiki, you can access our online Tiki demos here: https://tiki.org/Demo If you are a developer but are not comfortable with those tools, you can have a look at the Resources part first.

DockerHub images


Developement is resuming on those "official" images: https://hub.docker.com/r/tikiwiki/tikiwiki

Report issues with the dockerhub images at https://gitlab.com/tikiwiki/docker-tikiwiki

laradock development environment: using docker for your development environment


Report issues with the laradock image at: https://gitlab.com/tikiwiki/tiki-laradock
Thanks!

1. "Do the git thing"

Fork Tiki ( https://gitlab.com/tikiwiki/tiki ) and clone your fork. Tiki is a big repository, so you can decide to clone only the latest history (--depth=1) or only the specific branch you need (--single-branch).

2. Check out the relevant branch

Go into the repository you've just cloned and check out the Tiki version you want to work with:

e.g.:
Copy to clipboard
git checkout 20.x

3. Clone tiki-docker

In that same directory, clone tiki-docker:

Copy to clipboard
git clone git@gitlab.com:tikiwiki/tiki-laradock.git laradock


P.S.: you don't have to call that directory laradock, but default sensible settings are using this name. If you want to use your own name, you'll have to edit a few files (-+ .env+-, and docker-compose files).

4. Check out the environment you need

tiki-docker comes with environments for the different versions of Tiki. It will then use the correct PHP, mariadb, elasticsearch, etc... versions.

In your Tiki source, enter the tiki-docker source:

Copy to clipboard
cd laradock


then check out your environment:

Copy to clipboard
git checkout tiki-20.x

5. Custom your variables if necessary

tiki-docker works out of the box, but you can set up your own variables, stored in the included .env file. You may want to edit for example the apache2/nginx http host port, mysql/mariadb database name and credentials, although it is not necessary.

You are encouraged to change the DATA_PATH_HOST variable to a unique project name. This is the place where your data will be stored (mysql/mariadb, elasticsearch, etc...) so that even if your containers are removed, your development data is not. If you use the same DATA_PATH_HOST for different projects, the projects will overwrite each other's data.

6. Start the environment with the services you need

In your tiki-docker source, you can now start your environment with the services of your choices:

Copy to clipboard
docker-compose up -d apache2 mariadb elasticsearch maildev phpmyadmin adminer workspace
etc....

7. Enjoy

You can now access Tiki at http://localhost:PORTNUMBER. The PORTNUMBER will depend of the http host port variable configured in the .env file.

To access your workspace and run composer commands, tiki commands, etc..., in your tiki-docker source, run:

Copy to clipboard
docker-compose exec workspace bash


When you finished developing, you can stop your containers. In your tiki-docker source, run:

Copy to clipboard
docker-compose stop

Tips

Create aliases

Rather than typing every time docker-compose up -d apache2 mariadb..., you might want to create aliases, like for example devup. Same for stopping your containers: devdown, or going into your workspace: devbash.

Resources


-


Related: Kubernetes and AppImage

Unofficial or deprecated sources

Guillaume

https://sleeplessmind.com.mo/news/docker-tiki/
https://github.com/godbout/docker-tiki
https://gitlab.com/guill/docker-tiki

Fabio

https://github.com/fabiomontefuscolo/docker-tikiwiki

Jyhem

Everything I know on the topic of getting a working Tiki12 on docker is reported here: https://tiki.org/Tiki-deployement---Experiment-with-appsdeck

Nelson

See this commit for all the info: https://gitlab.com/synergiq/tiki/commit/050df06191d4652d49faf5f85420890740992862
The link to the branch (from master) is https://gitlab.com/synergiq/tiki/tree/docker

Keywords

The following is a list of keywords that should serve as hubs for navigation within the Tiki development and should correspond to documentation keywords.

Each feature in Tiki has a wiki page which regroups all the bugs, requests for enhancements, etc. It is somewhat a form of wiki-based project management. You can also express your interest in a feature by adding it to your profile. You can also try out the Dynamic filter.

Accessibility (WAI & 508)
Accounting
Administration
Ajax
Articles & Submissions
Backlinks
Banner
Batch
BigBlueButton audio/video/chat/screensharing
Blog
Bookmark
Browser Compatibility
Calendar
Category
Chat
Comment
Communication Center
Consistency
Contacts Address book
Contact us
Content template
Contribution
Cookie
Copyright
Credits
Custom Home (and Group Home Page)
Database MySQL - MyISAM
Database MySQL - InnoDB
Date and Time
Debugger Console
Diagram
Directory (of hyperlinks)
Documentation link from Tiki to doc.tiki.org (Help System)
Docs
DogFood
Draw -superseded by Diagram
Dynamic Content
Preferences
Dynamic Variable
External Authentication
FAQ
Featured links
Feeds (RSS)
File Gallery
Forum
Friendship Network (Community)
Gantt
Group
Groupmail
Help
History
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
jQuery
Kaltura video management
Kanban
Karma
Live Support
Logs (system & action)
Lost edit protection
Mail-in
Map
Menu
Meta Tag
Missing features
Visual Mapping
Mobile
Mods
Modules
MultiTiki
MyTiki
Newsletter
Notepad
OS independence (Non-Linux, Windows/IIS, Mac, BSD)
Organic Groups (Self-managed Teams)
Packages
Payment
PDF
Performance Speed / Load / Compression / Cache
Permission
Poll
Profiles
Quiz
Rating
Realname
Report
Revision Approval
Scheduler
Score
Search engine optimization (SEO)
Search
Security
Semantic links
Share
Shopping Cart
Shoutbox
Site Identity
Slideshow
Smarty Template
Social Networking
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Staging and Approval
Stats
Survey
Syntax Highlighter (Codemirror)
Tablesorter
Tags
Task
Tell a Friend
Terms and Conditions
Theme
TikiTests
Federated Timesheets
Token Access
Toolbar (Quicktags)
Tours
Trackers
TRIM
User Administration
User Files
User Menu
Watch
Webmail and Groupmail
WebServices
Wiki History, page rename, etc
Wiki plugins extends basic syntax
Wiki syntax text area, parser, etc
Wiki structure (book and table of content)
Workspace and perspectives
WYSIWTSN
WYSIWYCA
WYSIWYG
XMLRPC
XMPP




Useful Tools