pkp/docker-ojs

Docker image for OJS 3.3.0-10

Closed this issue · 7 comments

mgax commented

OJS 3.3.0-10 was released on March 5 but there is currently no Docker image for it.


I assume the process of configuring an image for a new OJS version involves some manual steps; what could be done to make it easier? I'm willing to help.
Perhaps it would be useful to have a periodic Action that checks if there is a new tagged OJS version, and triggers an alert if there is no corresponding Docker image?

Long story short: My fault.
Got error due gitHub resource limit when building all images and I just forget.
Image build is in gitLab and now also pushed to dockerHub.

Extended information:
As far as dockerHub autobuild tools were removed, we are evaluating gitLab as an alternative.
If you don't find them in dockerHub, you can get the images there: https://gitlab.com/pkp-org/docker/ojs/container_registry

If you like, you can call them directly in your docker-compose as follows:
image: registry.gitlab.com/pkp-org/docker/ojs:3_3_0-10

Is not clear if images will be built in gitLab or gitHub (Actions will be also reviewed).
Once we have a more clear pipeline, the idea is keeping images in gitLab/github but also pushed in dockerHub.

I missed saying thanks for the advice.

BTW @mgax could you explain how are you using those docker images?
For dev or production? With the suggested docker-compose or your own? With docker or other?

It will help us to know what need to be prioritized.

Cheers,
m.

mgax commented

could you explain how are you using those docker images?
For dev or production? With the suggested docker-compose or your own? With docker or other?

Sure thing. It's a production deployment which is based on a docker-compose example in this repo.

I've copied the directory from here: https://github.com/pkp/docker-ojs/tree/2b175ba207602e80f950502b40365ec2f5477764/versions/3_3_0-3/alpine/apache/php73 and changed docker-compose.yml and root/etc/apache2/conf.d/ojs.conf. Here is my current docker-compose.yml without the secrets: https://gist.github.com/mgax/8521194c6bce32b5c9dfd41712c871b1. I've also extracted config.inc.php outside the container to persist the site's configuration.


I missed saying thanks for the advice.

Edit: my pleasure, thanks for taking the time to make OJS and dockerize it; once I got it working it was easy to tweak and keep it up to date!

mgax commented

If you like, you can call them directly in your docker-compose as follows:
image: registry.gitlab.com/pkp-org/docker/ojs:3_3_0-10

Alright, I've switched to the gitlab registry, thanks for the tip!

Alex, I'm doing an issues dump to see what needs to be fixed and what works.

Right now I would say that the dockerHub and gitLab images are in sync.

Can you confirm that everything is working correctly to close the issue?

mgax commented

Can you confirm that everything is working correctly to close the issue?

I'm running the image pulled from gitLab and it's working fine. Thanks!

Thanks for your feedback.

The idea is keep gitLab and dockerHub repos sync.
Till then... as far as we are building in gitLab, you have more changes to get the last image there.

Any problem, suggestion or comment is welcome.

Cheers,
m.