Skip to content

Update Dockerfile to use Python 3.10 instead of Python 3.8 #2523

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

Open
wants to merge 1 commit into
base: 3.0
Choose a base branch
from

Conversation

Inplex-sys
Copy link

Issue

The GNS3 server package requires Python >=3.9, but our Dockerfile was using the default Python 3.8.10 from Ubuntu Focal. This was causing build failures with the error:

ERROR: Package 'gns3-server-3.0.5.dev1' requires a different Python: 3.8.10 not in '>=3.9'

Changes

  • Removed the installation of system Python packages (python3-pip, python3-all, etc.)
  • Added build steps to compile and install Python 3.10.16 from source
  • Set up pip for Python 3.10
  • Updated all Python commands to explicitly use Python 3.10

Benefits

  • Resolves the compatibility issue with GNS3 server requirements
  • Provides a consistent Python environment across deployments

These changes allow the Docker image to build successfully and run the GNS3 server with the required Python version.

@grossmj
Copy link
Member

grossmj commented Apr 14, 2025

Thanks for this. I have just one question though, why just not upgrade to use ubuntu:noble instead?

@Inplex-sys
Copy link
Author

I choose to upgrade Python only to prevent any possible disruption to the overall environment. I didn't upgrade the base image to use Ubuntu Noble because it might involve possible compatibility issues with other dependencies or configurations.

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

Successfully merging this pull request may close these issues.

2 participants