docker-connectiq
docker-connectiq copied to clipboard
Use SDK 3.2.5
Garmin's website specifies 3.2.5 as the latest SDK (https://developer.garmin.com/connect-iq/sdk/), but the xml remote file (https://developer.garmin.com/downloads/connect-iq/sdks/sdks.xml) has 3.1.9 as the latest.
Any idea how to fetch the latest?
Thank you, this is an amazing save for me (I used a Windows VM till now)
Unfortunately, at this time I have no idea how to perform this from Dockerfile script.
It seems that Garmin is enforcing usage of the SDK Manager, which may require an account creation: https://developer.garmin.com/connect-iq/connect-iq-basics/getting-started/ SDK Manager might indeed ease certain users to get up-to-date development IDE. Docker remains however a good approach to some other users, for flexibility reasons, and avoiding manual installation/upgrades.
I wonder if it possible to inspect the network connections inside the container when it fetches the updated SDK, and then just directly fetch the new URL
Maybe https://byteplumbing.net/2018/01/inspecting-docker-container-network-traffic/ can do that.
Are you able to run SDKManager inside the docker container?
https://developer.garmin.com/downloads/connect-iq/sdks/sdks.json
I'll crate a PR for this.
Also, they just released version 4.0.1 I'll create a PR for that, too. You decide what to go with.
https://github.com/kalemena/docker-connectiq/pull/4 https://github.com/kalemena/docker-connectiq/pull/5
there is an issue, I can't see any build-targets (devices) with these new SDKs
Thanks, I will build 3.2.5 locally to check You probably spent few times figuring out this 'json' URL !
had to look into the sdkmanager's binary :/
Okay, I couldn't figure where the devices' metadata files are coming from, but I was able to figure out where they should go in Linux (I decompiled monkeybrains.jar
for that).
https://github.com/kalemena/docker-connectiq/pull/5/files
For the pull request, this feels like one must go through SDK Manager install, to grab more than the SDK itself. Do you confirm?
Adding zip content into git seems wrong, although obviously good workaround to unlock you ... BTW, nice watch face you are working on !
For the pull request, this feels like one must go through SDK Manager install, to grab more than the SDK itself.
I was not able to run the sdkmanager
. Are you able to run that from docker?
Another option I thought about was to only include two devices (maybe the two most popular?) and their fonts. This option will greatly reduce the size of the zips in git and will get a working image on launch.
BTW, nice watch face you are working on !
Thanks for the compliment.
sdk-manager works if installed, although download button don't show well. Inferred JSON URL: https://developer.garmin.com/downloads/connect-iq/sdk-manager/sdk-manager.json I pushed the git change adding working Docker SDK Manager.
I wonder why Garmin would force users to login, just to download devices? There is surely a direct path to download devices.
Still with that, I can't have newer SDK to work for me.
Newer SDK works in fact, just I don't have device supporting past 3.1 :-D
https://github.com/matco/connectiq-tester has the latest version (6.2.0) including devices.