for https://youtrack.jetbrains.com/issue/IDEA-340177
- Sync project
- Run task:
notifications
>build
>buildDockerImage
This task is defined innotifications/build.gradle.kts
and is simply building docker image via docker-compose - Run docker-compose services by clicking green arrow near "services" in
docker/docker.compose.yml
- Go to
Services
panel >Docker-compose: reproducer
>notifications
>reproducer-notifications-*
image. Right click and copy its image SHA id - Change
Main.kt
file innotifications
in any way. - Repeat step 2.
- Stop
notifications
container inServices
panel. Then at sameServices
panel right click and runStart container
. - Copy image SHA id. You'll see same ID while we have already rebuilt image at step 6.
- Stop the image and start it again by going to "docker-compose.yml" file and pressing greeen arrow next to
notifications
service. - After it starts copy image id in "Services" panel. You'll see that now it picked up a new image!
Expected behaviour would be to start container with latest built image from "Services" panel similar as if you start it from "docker-compose.yml" file. Alternatively, if current behaviour is considered "the right way", there should be at least an action in context menu of selected service in "Services panel" to update configuration with latest available image