-
Notifications
You must be signed in to change notification settings - Fork 158
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
Replace Ansible with Shell script #307
Conversation
be3a8f8
to
4599b78
Compare
Ready to review. If you give me permissions in this repository I can triage the open issues. Half of them are already fixed with the latest changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to rebase against master to fix conflict (I guess it's about the composer version).
Maybe @Kdecherf can have a look before merging?
I can wait, but I hope that at some point it can be merged. It has cost me a lot of effort. If it could be merged before the next release of Wallabag that would be perfect. |
@ngosang your efforts won't be lost, trust me. That PR will be merged. The next wallabag version might be 2.6.0 (which will be a technical upgrade of Symfony and also support recent versions of Composer) and it could be great to have all improvements you made on the Docker image at that time 👍🏼 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work @ngosang!
I've quickly tested the PR against SQLite, MariaDB and PostgreSQL with 3 scenarios:
- First boot, uninstalled
- Reboot with root db credentials still there
- Reboot without root db credentials
Looks good, I made some comments though
Side note: there may be some cleanup to do on the commit log (rewording and/or squashing some commits) |
2b12560
to
aee6ad7
Compare
* Remove Ansible and all Python packages * Reduce image size by 456 MB (689 MB => 233 MB uncompressed) * Fixes some open issues, for example, root password is not required if the database already exists. * Show install and startup traces (traces and errors were hidden by Ansible)
aee6ad7
to
229cb3d
Compare
@Kdecherf @j0k3r I fixed the typos and squashed all commits into one. I agree with the other suggestions but I think they are out of the scope of this PR. This PR replaces Ansible with bash trying to have the same default values for environment variables. Also this PR is already tested. Remaining changes could be implemented in other PRs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@ngosang you're right, we'll handle those improvements in separate PR. Thanks for your work |
Resolves #303 #269 #270 #256