-
Notifications
You must be signed in to change notification settings - Fork 3
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
Upgrade martin #1440
base: main
Are you sure you want to change the base?
Upgrade martin #1440
Conversation
5e031ee
to
9b94be3
Compare
9b94be3
to
b4e62da
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this update. Looks good, but I do not really understand what you did, so maybe another review would be nice.
@michael-markl can you give me some instructions how to test it. If i restart the docker containers i get an error for martin. 2024-05-14 11:03:21 [2024-05-14T09:03:21Z INFO martin] Using /app/config.yaml
2024-05-14 11:03:21 [2024-05-14T09:03:21Z ERROR martin] Can't read config: Can't read config file: missing field `connection_str |
@f1sh1918 Hmm maybe docker did not pull the new image for you ? 🤔 I usually do |
okay i now messed up my local dev setup :/ |
That is the normal workflow for me :D the database is usually dropped, as the image of postgres updates probably automatically. Maybe we need to fix the image of postgres |
ok. i never dropped the database so far until now. Just restarted the containers. But now the import of the stores is. finished and everything works fine. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally. works fine
I think we cannot deploy one change before the other, as the new config for Martin only works with the new version of Martin... :/ (And right now we deploy the Martin binary via the entitlementcard repo - we may want to change this) |
Ok i added some comments on the salt pr. it doesn't look that complicated to use the debian file. Just not sure about the |
When deploying, the nginx config on the production server needs to be adjusted as well!
77cd35d
to
6f6f510
Compare
@f1sh1918 Should we merge this, and merge the corresponding salt PR once we deploy the backend? |
I would appreciate this. We have some open issue how to avoid this deploy in sync. So maybe you could give some instructions how the process should be and we can make it at the conference with @svenseeberg |
I think we have three options:
However, probably it's just fine to do (1.) and take the risk to break the App for a short time. |
Yes i meant what we have to do for option 1) In general we want to change this dependency between salt and the repo somehow. The worst thing is that the |
I think the only way around this is to avoid making breaking changes to the (expected) structure of config.yml. |
Short description
Upgrades martin from a super old version to 0.13.0
Proposed changes
As the url scheme of martin has changed in version 0.7.0 , we need to add an nginx rewrite rule for backwards compatibility. We'll need to keep this rewrite rule until all clients have a freh style.json.
Side effects
THIS CHANGE HAS TO BE DEPLOYED IN SYNC WITH THE SALT CONFIG CHANGE IN https://git.tuerantuer.org/DF/salt/pulls/155
Also, I fixed the local setup (http://localhost:5002/map.html) and added buttons to switch between bayern and nuernberg.
Resolved issues
Fixes: #1122 #1439