-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Feature IPinfo offlinedb, preparation for 5.4 #645
Conversation
@sstidl I've updated the docker files. It seems to work locally, but I don't have a server running docker that I can test it on through the internet right now. I'm mostly concerned about getIP, I can't test that properly locally. Can you give it a go? |
Test was ok. I didnt find how to see dark mode but location works with local db and api key Can you read through I can't do it right now. |
9a67d55
to
1932906
Compare
Done, I accidentally pushed a small fix to docker/ui.php along with the readme. Not the best git hygene, I know, but we're going to squash these commits anyway. |
I just did some testing and the inclusion of the mmdb library raised the minimum PHP version 8.0, I'll see if I can make it optional. |
I've added some fallback code in getIP. If you have a version of PHP <8 it only gives you the IP address. |
As PHP<8 is not supported anymore I don't think it's good to signalize we support anything that low |
So, I did a bit more testing yesterday and I'd say 5.4 is ready to go. Before I make the release I want to update the quickstart videos, since they've been obsolete for a few years now, and make them for both debian and a generic docker install. I'll make these today. I haven't tested the mssql database since that came in from a PR and I don't have a windows server machine. Do you have something to test this on @sstidl ? As for the minimum PHP version, I'd agree with you but I've already done the fallback code and I know for a fact that we have some backend servers (not under my control) that regularly pull updates from this repo and use PHP 7, and I don't want to break them (yet). I'll also get rid of the current wiki since it has the same stuff as doc.md and doc_docker.md |
I don't have easy access to an mssql server so, no can't test it at the moment. Maybe we just write that in the Readme that mssql is untested. |
I updated the quick start video, I'm ready when you are @sstidl |
@adolfintel please look over the changes to the *.md files i did... i tried to reduce redundancy and described how to use other dbs in docker scenario. i didnt have the time to test a docker deployment with an external db so this still need more detail. anyway I think we have good reason to release :-) |
The changes in the documentation look good to me. I didn't test all the external databases, only the sqlite one since it required no configuration, and it worked. The code seems straightforward enough though, I doubt it will give us issues. I'll release 5.4 tomorrow morning. |
@adolfintel thank you for the release. Please always use versions with 3 parts. My docker build workflow depends on it. So I changed the release to 5.4.0 and tagged 5.4.0. |
Yeah I just noticed the problem about semver. This project never strictly followed that standard 😅 , I'll have to be more careful |
By the way, if you have time, there are a bunch of issues and PRs that can be closed as they're no longer relevant. This project really needs a cleanup before work on 6.0 can start. |
Unfortunately the workflow still fails. Don't know how to trigger a corrected run so the docker images with the correct tags are built.
My vacation ends today so I don't think I can afford some time in the next week. Maybe next weekend. |
There's no rush, we can do it when we have time. I'll start working again in a few days as well. I'll take a look at the failed workflow and see what I can do. |
I had to redo the release. I tried modifying docker-publish.yml to add the workflow_dispatch event so I could trigger it manually but it didn't want to trigger on the 5.4.0 tag again so I just deleted the release, the 5.4 and 5.4.0 tags and recreated them. |
Hi guys, i've been a very bad boy and have been overwriting standalone.php in my docker-compose.yml to add some deep customizations. I now realize that this was a bad idea :/ Any quick recommendations on how to easily migrate my standalone.php "fork" to the new structure? I'm not even sure what the right file location would be and i'm not too keen on reimplementing the changes to a more sophistocated and correct way because of no time 🙈 and on top of that i didn'teven use a version control to retrace my steps 🌚 (but out of curiosity - how would one do that "the right way"?) |
@jk779 if you're just going to use it in standalone mode, you can copy your old custom UI and replace docker/ui.php (which gets copied to index.php when the image is built) |
@jk779 please don't use a closed pull request for issues. I created a new issue for you. |
No description provided.