doil provides you with a simple way to create and manage development and testing environments for ILIAS. It will create and provision a docker container according to your requirements, pull the ILIAS version you want to use and even install it if possible.
- download and unpack the latest release
- cd into the unpacked directory
- if you run doil on a remote host ensure to change the host name in
setup/conf/doil.confto your host name - execute
sudo ./setup/install.shin order to install doil - you can remove the downloaded folder afterwards
- check
doil helpfor available commands and further instructions
The update command will have a comeback in the following releases.
Because doil now uses PHP after the conversion, we recommend completely removing an already installed doil from the system. This includes already installed instances. After that, you can proceed to the Installation section.
Removal Tips:
docker ps -ashows all containersdocker rm <container_id>removes container by id (ensure to delete all doil instances)docker imagesshows all imagesdocker rmi <image_id>remove image by id (ensure to delete all doil images)docker volume lsshows all volumesdocker volume rm <volume_name>remove volume by name (ensure to delete mail, proxy and salt)docker network pruneremoves all networks without dependenciessudo rm -rf /etc/doil /usr/local/lib/doil /usr/local/share/doil /usr/local/bin/doil ~/.doil
doil tries to use as little 3rd party software on the host system as possible, however doil needs Docker in order to work:
- docker version >= 19.03
- docker-compose version >= 1.25.0 (ensure that root has access too)
- php version => 7.4
- php*.*-zip
- php*.*-dom
- composer version = depending on installed php version
- git
Additional dependencies, but these are installed automatically during setup.
- symfony/console
- symfony/filesystem
- symfony/process
- pimple
- ext/posix
- ext/zip
- ext-openssl
Before starting make sure that you have set up your docker usergroup correctly
After you installed doil the basic system is ready to go. To get an instance of ILIAS running you simply need to do following steps:
- Head to a folder where you want to store your project. Usually
~/Projects - Enter following command:
doil create -n -e ilias -r ilias -b release_7 -p 7.4 -u
Don't worry, this will take a while. It creates and instance of ILIAS named ilias
in your location from the repository ilias (see doil repo:list) with the known
branch release_7 and the PHP version 7.4.
After this job is finished you can start your instance with doil up ilias and head
to http://doil/ilias/ to see your fresh ILIAS installation.
Each command for doil comes with its own help. If you struggle to use a command,
just add -h or --help to display the according help page. For example:
doil instances:create --help. Use a simple doil if you have no idea where to
start.
An instance is one environment for an installation of ILIAS. The purpose of doil is to make the management of these instances as simple as possible. The following commands are available:
doil create(alias fordoil instances:create) creates a new instance in the current working directorydoil up <instance_name>starts an instance that you have created beforedoil pathprints the path to the location of the instancedoil lslists all available instancesdoil login <instance_name>logs you into the container running the instancedoil down <instance_name>stops an instance to free the resources it needsdoil delete <instance_name>deletes an instance you do not need anymoredoil statuslists the current running doil instances
See doil instances:<command> --help for more information
doil can use different ILIAS repositories to create instances. Per default,
the repository of the ILIAS society
will be used to pull the ILIAS code. If you want to use another repository to get
the ILIAS code, you can use commands from doil repo to add and manage these
other repositories:
doil repo:addwill add a repository to the configurationdoil repo:update <repo_name>will download the repo to doil's local cache or update it if it is already downloadeddoil instances:create --repo REPO_NAMEwill use the repo to create a new instancedoil repo:delete <repo_name>- removes a repositorydoil repo:list- lists currently registered repositories
See doil repo:<command> --help for more information
If you are running doil on a system with multiple users you can manage your
repositories and instances globally for all user. For that we implemented several
helper and flags.
The user who installed doil on the machine is already registered at doil. To add
another user simply use doil system:user add <username>. You can manage the users
with following commands:
doil user:add <username>adds a userdoil user:delete <username>deletes a userdoil user:listlists the available users
See doil user:<command> --help for more information
Most commands in doil come with a --global flag. For instance if you created an
ILIAS instance with doil create --global the instance will then be available to
all registered users. You can start the instance with doil up <instance> --global.
If you want to create an instance with a global repository you have to use the flag
-u|--use-global-repo, e.g, doil create -r ilias -u
Following commands come with the --global flag:
doil instances
doil instances:createdoil instances:updoil instances:downdoil instances:deletedoil instances:applydoil instances:pathdoil instances:login
doil repo
doil repo:adddoil repo:deletedoil repo:update
doil pack
doil pack:importdoil pack:export
You can also create global instances with private repositories and vice versa.
doil lets you transfer the data of one installation of ILIAS ot another. Instances build with doil (instances from version >=1.1) are able to be exported.
doil pack:exportexports an instancedoil pack:importimports an instance
See doil pack:<command> --help for more information
Most of the commands come with a --quiet flag to omit the log messages.
However these logs are not lost, they are stored in /var/log/doil.log. You may
want to add a rotation to this logfile.
- doil was developed and tested on debian and ubuntu systems. It might run on other linux based platforms but there is no guarantee
- due to network restrictions on MacOS doil can only operate run one instance at once. Though it's possible to create as many environments as you want
- doil works on Windows with the WSL2 and Ubuntu 20.10 enabled. Due to network restrictions you
need to change the host to
localhostvia the doil proxy settings:doil proxy:host localhost
Sometimes it is possible that the proxy server doesn't accept the configuration. This results
in a 404 when heading to your instance after using doil up. To fix this you just need to restart
the proxy server with doil proxy:restart. If the 404 still occurs restart your instance
with doil down and doil up.
While creating an instance or using doil apply it is possible that there will be a "Key not ready"
loop. This loop tries to find a certain key in the salt main server. To fix this issue let the loop
run and open a new terminal and do following steps:
doil salt:prunedoil salt:restartdoil down <instance_name>doil up <instance_name>
Usually the loop will then resolve itself and the creation or apply process will continue. If the loop continues then there might be a problem with the public key of the salt main server. To fix this do following steps:
doil login <instance_name>rm /var/lib/salt/pki/minion/minion_master.pubexitdoil down <instance_name>doil up <instance_name>
doil uses SaltStack to provision and maintain the instances. Docker is only used as a light weight and widely available VM-like technology to run sufficiently isolated linux environments. SaltStack uses an architecture where one master acts as a central control server. doil runs this master in a dedicated container. The instances then are deployed into separate containers as minions that are controlled and provisioned by the master. Required folders are mounted in the users filesystem via Dockers volumes and can be accessed from the host system.
doil comes with some helpers which are usefull if you want to hack on doil:
doil system:uninstallwill remove doil completely from your system for all usersdoil -V|--versiondisplays the versiondoildisplays the main help page
To be able to dive deeper into the inner workings of doil or customize it to fit your workflow or requirements, doil provides commands to tamper with the saltstack in the background. These commands will not be required by ordinary users, so make sure to understand what you are doing.
doil salt:loginlogs the user into the main salt serverdoil salt:pruneprunes the main salt serverdoil salt:startstarts the salt main serverdoil salt:stopstops the salt main serverdoil salt:restartrestarts the salt main serverdoil salt:statesto list the available states
See doil salt:<command> --help for more information
To be able to dive deeper into the inner workings of doil or customize it to fit your workflow or requirements, doil provides commands to tamper with the proxy in the background. These commands will not be required by ordinary users, so make sure to understand what you are doing.
doil proxy:loginlogs the user into the proxy serverdoil proxy:pruneremoves the configuration of the proxy serverdoil proxy:startstarts the proxy serverdoil proxy:stopstops the proxy serverdoil proxy:restartrestarts the proxy serverdoil proxy:reloadreloads the configuration
See doil proxy:<command> --help for more information
The mailserver is available at http://doil/mails with following
login data:
- User: www-data
- Password: ilias
Every minion sends all E-Mails to this mailserver.
To be able to dive deeper into the inner workings of doil or customize it to fit your workflow or requirements, doil provides commands to tamper with the mailserver in the background. These commands will not be required by ordinary users, so make sure to understand what you are doing.
doil mail:loginlogs the user into the mail serverdoil mail:startstarts the mail serverdoil mail:stopstops the mail serverdoil mail:restartrestarts the mail server
Contributions to doil are very welcome!
- Have a look into the Contributor's Guide before you start.
- If you face any issues or want to suggest a feature or improvement, open an issue.
- Make sure to understand that this is a voluntary offer which requires time, passion and effort and does not guarantee anything to anyone. Be gentle.
If doil saved your precious time and brain power, please consider supporting doil:
- Buy Laura (initial creator) a coffee and tell her about your doil experiences if you meet her somewhere.
- Star the project and share it. If you blog, please share your experience of using this software.
- Look into CaT's products and services and consider to place an order or hire us.
- Reach out to Daniel and Richard if you have requirements, ideas or questions that you don't want to discuss publicly.
- Reach out to Richard if you need more support than we can offer for free or want to get involved with doil in other ways.