search hotlink icon profile hotlink icon

The Docker interaction is a wrapped version of the terminal interaction. Instead of starting with php fusion, you initiate the command with docker run valvoid/fusion, and the rest remains the same.

On This Page

Package

To maintain a package, you need to mount it and override the default container user.

For example, to build a package, set the working directory to the root directory of the package you want to maintain, and execute the following command:

                docker run \
    --user $(id -u):$(id -g) \
    --volume .:/package \
    valvoid/fusion build
            

As mentioned above, the build command in this example is the same as in terminal interaction, and can also be extended with runtime config and other options.

Config

To persist a custom config, you need to mount it:

                docker run \
    --user $(id -u):$(id -g) \
    --volume .:/package \
    --volume ./hub.php:/usr/local/lib/fusion/extensions/config/valvoid/fusion/hub.php \
    valvoid/fusion build