Open-EO / openeo-web-editor

An interactive and easy to use web-based editor for the OpenEO API.
https://editor.openeo.org
Apache License 2.0
12 stars 17 forks source link

Add GHA for docker #191

Closed mmacata closed 3 years ago

mmacata commented 3 years ago

This PR adds a github action to build and push the Dockerimage from this repository to Dockerhub. It contains a workflow which runs for push to master branch and creation of releases.

For this workflow to work, credentials to dockerhub are needed. In the repository settings the secrets DOCKERHUB_TOKEN and DOCKERHUB_USERNAME would need to be created. For the values I would be willing to store mine (mmacata) or these of a machine user we use (mundialisdev) so no extra setup would be required but if it suits better, a new / different user can be created of course. The user is shown in Dockerhub, like it can be seen here for tag sha-2da70e0.

As docker repository, I used mundialis/openeo-web-editor, as this was the repository which had autobuild set up before and appeared in the checks for commits / pull requests in the past and I have access to. On Dockerhub I found no gerneral openeo organization but openeor and openeobs. openeor looks like specific to r Code and openeobs was updated last 3 years ago. So here - as well as with credentials - if it suits better, another repository can be used but I don't know which would fit. It is also possible to create an openeo organization on Dockerhub, if other repositories from openeo will benefit from it as well!?

I marked this PR as draft until the question about credentials is solved. Before any are added, this check would fail and should therefore not be merged.

m-mohr commented 3 years ago

Hey, thanks for this. I have no strong preference on either of the points. I think an openEO docker org could be beneficial in the future though, but having it in the mundialis org is also fine. Do you need new permissions to add the secrets? I'm happy to set those. Just do what is the easiest to maintain for you.

mmacata commented 3 years ago

Ok, then I leave it with mundialis/openeo-web-editor and use the more general mundialisdev for creation. I have enough permissions, so I could add the secrets myself. Dockerhub organisation and user can of course be changed anytime if it should fit better, but currently it is the easiest to maintain for me.

Draft status is therefore resolved, please approve if I should merge.

m-mohr commented 3 years ago

Thanks, I forgot: Could you add a chapter about this to the README? That says that there's a Docker image for this, where to find it, how to get started with it, and that you/mundialis maintains it? @mmacata Feel free to just commit without a PR.

mmacata commented 3 years ago

Yes I will. First run was successful:

mmacata commented 3 years ago

README is updated. Please check if this is fine for you and modify (or tell me) if needed.

m-mohr commented 3 years ago

Thanks, that's all good!