Skip to content
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

SDKMAN! does not list the latest Micronaut versions on Docker container #2693

Open
volnei opened this issue Jan 29, 2025 · 3 comments
Open

Comments

@volnei
Copy link

volnei commented Jan 29, 2025

SDKMAN! does not list the latest Micronaut versions (Works on macOS, fails on Ubuntu Docker container)

Description

I noticed that SDKMAN! is not showing the latest versions of Micronaut when running sdk list micronaut. The most recent versions available on the Micronaut Releases page are not appearing in the SDKMAN! registry. Interestingly, this issue occurs when running inside a Docker container based on Ubuntu, but works fine when running on macOS.

Steps to Reproduce

✅ Works on macOS

  1. Run the following command on macOS terminal:
    sdk list micronaut
  2. The latest versions appear as expected.

❌ Fails in an Ubuntu-based Docker container

  1. Create a Docker container using Ubuntu as the base image:
    FROM ubuntu:22.04  
    RUN apt-get update && apt-get install -y curl unzip zip git zsh  
    RUN curl -s "https://get.sdkman.io" | bash  
  2. Start the container and run:
    sdk list micronaut
  3. The output does not include the latest Micronaut versions.

Expected Behavior

SDKMAN! should display the latest available versions of Micronaut regardless of the operating system.

Actual Behavior

  • When running on macOS, sdk list micronaut correctly displays the latest Micronaut versions.
  • When running inside a Docker container (Ubuntu-based), only older versions appear, and recent releases are missing.
================================================================================
Available Micronaut Versions
================================================================================
     1.3.7               1.2.4                                                  
     1.3.6               1.2.3                                                  
     1.3.5               1.2.2                                                  
     1.3.4               1.2.1                                                  
     1.3.3               1.2.0                                                  
     1.3.2               1.1.4                                                  
     1.3.1               1.1.3                                                  
     1.3.0               1.1.2                                                  
     1.2.11              1.1.1                                                  
     1.2.10              1.1.0                                                  
     1.2.9               1.0.5                                                  
     1.2.8               1.0.4                                                  
     1.2.7               1.0.3                                                  
     1.2.6               1.0.2                                                  
     1.2.5               1.0.1                                                  

================================================================================
+ - local version
* - installed
> - currently in use
================================================================================
SDKMAN!
script: 5.19.0
native: 0.5.0

uname -a

Linux ca33fa719848 6.12.5-orbstack-00287-gf8da5d508983 micronaut-projects/micronaut-core#19 SMP Tue Dec 17 08:07:20 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux

Environment Details

  • Operating System (host machine): macOS Ventura
  • Operating System (inside Docker container): Ubuntu 22.04
  • SDKMAN! Version: Run sdk version
  • Micronaut Version (if applicable): N/A

Additional Notes

  • I already tried sdk flush candidates and sdk selfupdate, but the issue persists.
  • This issue only occurs in Ubuntu-based Docker containers, while macOS works fine.
  • Could this be related to how SDKMAN! fetches versions in different environments?
  • Any insights would be appreciated!

Thanks! 🚀

@graemerocher
Copy link
Contributor

not sure how we can fix this to be honest, does your docker container have egress access?

@volnei
Copy link
Author

volnei commented Jan 29, 2025

Hey @graemerocher, thank you for your reply. And yes, everything is fine with egress access

➜  /workspace curl -I https://micronaut.io  

HTTP/1.1 200 OK
Date: Wed, 29 Jan 2025 12:38:53 GMT
Server: Apache
WPO-Cache-Status: not cached
WPO-Cache-Message: The request method was not GET (HEAD)
Link: <https://micronaut.io/wp-json/>; rel="https://api.w.org/", <https://micronaut.io/wp-json/wp/v2/pages/3745>; rel="alternate"; title="JSON"; type="application/json", <https://micronaut.io/>; rel=shortlink
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Referrer-Policy: no-referrer-when-downgrade
Strict-Transport-Security: max-age=63072000
Upgrade: h2,h2c
Connection: Upgrade
Access-Control-Allow-Origin: *
Content-Type: text/html; charset=UTF-8

@volnei
Copy link
Author

volnei commented Jan 29, 2025

Maybe it's related to container arch? aarch64

And btw, I opened this issue here cause it's something that not happens with other sdks like java, groovy or kotlin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants