-
-
Notifications
You must be signed in to change notification settings - Fork 124
Added support for the BookStack System CLI #173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Added required ZIP extension and mariadb-client package to provide mysqldump which is required by the CLI for backing up.
Also reordered packages in dockerfile to be alphabetical.
I am a bot, here are the test results for this PR:
|
This will need to be rebased now that #174 has merged. Key points:
All that being said, I'm not a fan of adding 200mb+ to the image, and I think it might be better to recommend via the readme to use our universal package install mod https://github.com/linuxserver/docker-mods/tree/universal-package-install if you want this functionality. |
Sounds like an ideal mod candidate really. |
Just to confirm, the image size change I observed was approximately from 280MB to 315MB, so a ~35MB change. Unless I've misunderstood and the 200mb referenced is via another form of measurement. |
Total extra size for |
I misread your initial post and thought you meant there was roughly a 200mb increase in the image size by including the additional package. ~35mb is definitely a lot less, but still a pretty decent number. I don't have a strong opinion here, and I don't use bookstack at all, so I'll see if the rest of the team would like to chime in and if there are no other opinions I'll approve once the PR is rebased. |
Quick build test, existing image is 287MB on disk, adding mariadb-client takes it to 361MB on disk so ~75MB. I don't think that's a problem for core functionality even if it's not going to be used by everyone. |
@ssddanbrown I've rebased against the current master branch, let me know if you're happy and if so we'll get it merged. |
I am a bot, here are the test results for this PR:
|
Thanks @thespad. PHP Timezone IssueI noticed this error appearing whenever PHP is ran (Particularly via the CLI):
It looks like PHP If the user is not passing a BookStack System CLIThe CLI exits upon unexpected PHP output, so the above scenario causes the CLI to stop upon certain actions. SummaryI see the timezone issue to be tangential to this PR. |
The timezone issue will be fixed by linuxserver/docker-baseimage-alpine-nginx#143 |
Description:
This updates the image with the requirements need to run the now-included "BookStack System CLI".
This is a new CLI that automates certain admin-level operations like backup/restore.
To achieve support, the image needed to be updated with php-zip extension support, and the
mariadb-client
client.These changes , specifically the addition of
mariadb-client
, does lead to an increase in image size from approximately 280MB to 315MB. I do think this is worth it, especially as I can see some utility of havingmariadb-client
available for debug purposes outside just the context of the CLI, but that's not my call to make hence why I'm highlighting this size increase here.Upon the above added packages, this also adds the newly added default BookStack backup directory to the folders that get linked to the
/config
volume, so that this backup folder is accessible via the mounted volume.With these changes you'd able able to run the CLI like so:
I did not update the readme yet with details of the CLI, since this CLI is in early alpha stages, so I don't want to actively advise it's usage right now, but it might be something to add in the future (Alongside details of calling the standard artisan command line).
Benefits of this PR and context:
This allows usage of the newly added BookStack System CLI.
Closes #170
While there are alternative or direct means to backup content in this container-based setup (Via direct volume files and/or via DB dumps), this CLI automates these actions in a standard manner, which could be especially useful for users looking to migrate between different BookStack hosting options.
How Has This Been Tested?
I have built the image on Linux (Fedora 38 / AMD64) and on MacOS (ARM), then performed a backup and restore using the CLI on both.
Source / References: