-
Notifications
You must be signed in to change notification settings - Fork 21
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
Refactor docker images in everest-demo #65
Comments
@shankari, could you please review the proposed changes? I would greatly appreciate your comments and thoughts on them. |
@MukuFlash03 @louisg1337 can you please add your initial comments to this, including exploring the |
@andistorm really great ideas, heres my thoughts!
I think this could definitely be a great idea to have some type of common repository for our docker build scripts. However, it may be a bit challenging as a lot of the yml build files in
This totally makes sense, with the current way its done its not super apparent what version the docker images are using, so doing a release based strategy would definitely help with transparency. Although, I do feel like there are a lot of hot fixes made in this repository so doing releases could be a bit excessive, but I feel like transparency may trump that.
I think this would be a great idea, the files look identical. Here is the link to the
I'm not too familiar with mosquitto / why we are rebuilding it, so I think @shankari is better suited to answer this.
I agree, we should eventually end up only using |
Hi @andistorm ,
The current versioning strategy is what I tried understanding as well in the latest PR I am working on. This PR #10 contains a detailed discussion on the usage of the .env file, how and when we update images on tag updates, as one of the possible workflow trigger events.
everest-demo GHCR, everest-dev-environment GHCR That's probably a good idea. Since, I do see that the latest updates to the mosquitto image were made in the everest-dev-environment repo (1 week ago) and not in the everest-demo repo (4 months ago). |
Updating my previous comments regarding the mosquitto image. Initially I had thought that everest-dev-environment repo had the latest changes to the mosquitto image. However, these changes were made by @andistorm in just copying over the mosquitto image from The most recent mosquitto image is indeed the one in |
@MukuFlash03 but IIRC the mosquitto-server is not a part of EVerest; it is pulled in from a standard image. The only changes are that we make (at least in the demo) is to add a new configuration. So we don't really need to update, unless we want to switch to the new image. You should verify what (if anything) we change in there |
In the context of the general refactoring of docker images in EVerest,
it would be good to refactor the docker images in the
everest-demo
, too.Proposed Changes
everest-ci
to deployeverest-demo
related docker imageseverest-ci
Currently there is a
.env
file in the everest-demo repository that defines the version of the docker images. Ineverest-ci
the docker image versions are synced to the version of theeverest-ci
repository.We should unify the versioning strategy across the EVerest repositories.
steve
docker image is very similar to the one ineverest-dev-environment
(Currently only visible in feature branch, moved fromeverest-utils
). It would be good to merge these two images into one.ghcr.io/everest/everest-dev-environment/mosquitto
image ineverest-demo
instead of building it again.ghcr.io/everest
ineverest-demo
everest-demo/docker-compose.ocpp16j.yml
Line 27 in 6ac3228
everest-demo/docker-compose.ocpp16j.yml
Line 38 in 6ac3228
Further Thoughts
Versioning Strategy
There are pro and cons for both strategies. The current strategy is more flexible, as it allows to release a new version of the docker images without releasing a new version of the
everest-demo
repository. This can be useful if only the docker images are changed, but not other things in theeverest-demo
repository. On the other hand, the current strategy can lead to confusion, as the version of the docker images is not directly visible in theeverest-demo
repository.Using the strategy from
everest-ci
means to release a new version of each docker image whenever a new version of theeverest-demo
repository is released. This can be more consistent, but can also lead to unnecessary version bumps of the docker images.Steve Docker Image
I believe the two images can be merged easily, since the only difference I could find is the additional
README.md
ineverest-demo
. The question is where to put the mergedDockerfile
. I would suggest to put it ineverest-dev-environment
and use it from there ineverest-demo
. This would also make it easier to maintain the image, as it would only be in one place.The text was updated successfully, but these errors were encountered: