Adding README steps to develop on OMERO using docker-compose#21
Adding README steps to develop on OMERO using docker-compose#21jburel merged 5 commits intoome:masterfrom
Conversation
| @@ -0,0 +1,151 @@ | |||
| # Developping on OMERO - Creating your own dev server with docker-compose | |||
There was a problem hiding this comment.
| # Developping on OMERO - Creating your own dev server with docker-compose | |
| # Developping on OMERO - Creating your own development server with docker-compose |
| @@ -0,0 +1,151 @@ | |||
| # Developping on OMERO - Creating your own dev server with docker-compose | |||
| This section targets any developments you want to do on any OMERO web application or any OMERO plugins (omero-iviewer, omero-figure, tagsearch...) | |||
There was a problem hiding this comment.
| This section targets any developments you want to do on any OMERO web application or any OMERO plugins (omero-iviewer, omero-figure, tagsearch...) | |
| This section targets any development you want to do on any OMERO web application or any OMERO plugins (omero-iviewer, omero-figure, tagsearch, etc.). |
| ## Docker installation | ||
| You need to download and install [Docker desktop](https://www.docker.com/products/docker-desktop/) | ||
|
|
||
| > For Windows user, make sur that you also have [Windows subsystem Linux (WSL)](https://learn.microsoft.com/en-us/windows/wsl/install) installed on your machine. |
There was a problem hiding this comment.
| > For Windows user, make sur that you also have [Windows subsystem Linux (WSL)](https://learn.microsoft.com/en-us/windows/wsl/install) installed on your machine. | |
| > For Windows user, make sure that you also have [Windows subsystem Linux (WSL)](https://learn.microsoft.com/en-us/windows/wsl/install) installed on your machine. |
|
|
||
|
|
||
| 3. Open a terminal in the repository of the ``docker-compose.yaml`` | ||
| 4. Write down <kbd>docker compose pull</kbd> to get the docker images (they are are downloaded from docker hub) |
There was a problem hiding this comment.
| 4. Write down <kbd>docker compose pull</kbd> to get the docker images (they are are downloaded from docker hub) | |
| 4. Write down <kbd>docker compose pull</kbd> to get the Docker images (they are downloaded from Docker Hub). |
| > You always need to have Docker desktop open and ready to make anything with docker. | ||
|
|
||
|
|
||
| 3. Open a terminal in the repository of the ``docker-compose.yaml`` |
There was a problem hiding this comment.
| 3. Open a terminal in the repository of the ``docker-compose.yaml`` | |
| 3. Open a terminal in the repository of the ``docker-compose.yaml``. |
| 5. Follow **Step 1 steps (from 3 to 8)** to re-build and re-launch your containers. **Don't forget to shut down your containers before !** | ||
|
|
||
| 5. Modify any file under `omero-figure/src` and save them. | ||
| 6. Build the plugin files ; have a look to the github repo of the plugin to know how to build it. |
There was a problem hiding this comment.
| 6. Build the plugin files ; have a look to the github repo of the plugin to know how to build it. | |
| 6. Build the plugin files; have a look to the GitHub repository of the plugin to know how to build it. |
| 5. Modify any file under `omero-figure/src` and save them. | ||
| 6. Build the plugin files ; have a look to the github repo of the plugin to know how to build it. | ||
|
|
||
| > **Note:** This is an important step. Only files under `plugin-name/plugin_name` will be read and executed. So, if you don't build the plugin, then you'll not see any changes even if you modified files under `plugin-name/src` and it is not always possible to modify the files directly under `plugin-name/plugin_name` |
There was a problem hiding this comment.
| > **Note:** This is an important step. Only files under `plugin-name/plugin_name` will be read and executed. So, if you don't build the plugin, then you'll not see any changes even if you modified files under `plugin-name/src` and it is not always possible to modify the files directly under `plugin-name/plugin_name` | |
| > **Note:** This is an important step. Only files under `plugin-name/plugin_name` will be read and executed. So, if you don't build the plugin, then you will not see any changes even if you modified files under `plugin-name/src` and it is not always possible to modify the files directly under `plugin-name/plugin_name` |
|
|
||
| > **Note:** This is an important step. Only files under `plugin-name/plugin_name` will be read and executed. So, if you don't build the plugin, then you'll not see any changes even if you modified files under `plugin-name/src` and it is not always possible to modify the files directly under `plugin-name/plugin_name` | ||
|
|
||
| 8. On docker desktop, restart the **OMERO-WEB container ONLY** |
There was a problem hiding this comment.
| 8. On docker desktop, restart the **OMERO-WEB container ONLY** | |
| 8. In Docker desktop, restart the **OMERO-WEB container ONLY** |
| - https://github.com/ome/omero-web-docker/blob/master/README.md | ||
|
|
||
|
|
||
| ## Devlopping OMERO |
There was a problem hiding this comment.
| ## Devlopping OMERO | |
| ## Developing OMERO |
|
|
||
| ## Devlopping OMERO | ||
|
|
||
| To use a docker compose to develop OMERO plugins, you can follow some guidelines described in this DEV-README No newline at end of file |
There was a problem hiding this comment.
| To use a docker compose to develop OMERO plugins, you can follow some guidelines described in this DEV-README | |
| To use ``docker compose`` to develop OMERO plugins, please follow the guidelines described in this DEV-README. |
|
Thanks @jburel for your careful review. I've update the readme accordingly |
|
Only caveat that I didn't get a chance to say is that there are several other repos that use the same structure. I wouldn't want us to copy it to all, but thoughts welcome on how we might make others aware of it. Thanks again, @Rdornier ! |
|
Thanks for merging ! |
|
@Rdornier I mean e.g. the other repos listed from https://github.com/ome/omero-deployment-examples like: |
|
Ok, I see. In order to make others aware of it, I would modify the README of each repo to point to the DEV-README of |
|
Sounds great, thanks! |
Sorry for coming late to this. I just wanted to draw your attention @joshmoore @Rdornier to the sheer amount of the repos mentioned by @joshmoore - the maintenance there was discussed with @jburel and we agree that only one will be supported/maintained going ahead. I would suggest 1 for docker and 1 for ansible. For docker: the If more repos should be maintained, then the team members would have to be given the elevated rights to do so (for example, the https://github.com/ome/docker-example-omero-readonly has GHA disabled and there is no possibility for me to switch it back on). |
|
@joshmoore @pwalczysko Just to clarify: according to ome/status#7, should we still update the README of all |
@Rdornier imho, the currect one is enough. Although the update "could" be propagated to the other repos in the https://github.com/ome/omero-deployment-examples, imho the repos which are not listed in https://github.com/ome/status now in the section but are in https://github.com/ome/omero-deployment-examples should be archived. I was making my remark with the intention that you @Rdornier do not spend time on some large work until we clarify this (cc @joshmoore @jburel ) |
|
Ok sounds good to me, thanks @pwalczysko ! |
|
I defer on whether or not to archive them. If so, I'd put some short message in the readmes with "see the main one", date archived, etc. |
Hello @joshmoore @jburel
I'm adding here a bit of documentation regarding OMERO development using docker-compose.
Hope it will help,
Rémy.