1
0
mirror of https://github.com/GNS3/gns3-server synced 2025-08-01 11:28:12 +00:00

fix: update Python command to use python3.10 in Docker configuration

This commit is contained in:
Inplex-sys 2025-04-13 02:47:41 +02:00
parent e532c83538
commit acf2fbd8e8
2 changed files with 13 additions and 6 deletions

View File

@ -15,15 +15,22 @@ COPY ./requirements.txt /gns3server/requirements.txt
RUN DEBIAN_FRONTEND=noninteractive apt install -y \ RUN DEBIAN_FRONTEND=noninteractive apt install -y \
locales \ locales \
software-properties-common \ software-properties-common \
python3-pip \
python3-all \
python3-setuptools \
python3-dev \
busybox-static \ busybox-static \
gcc \ gcc \
qemu-kvm \ qemu-kvm \
libvirt-daemon-system libvirt-daemon-system
RUN apt install -y build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev
RUN wget https://www.python.org/ftp/python/3.10.16/Python-3.10.16.tgz
RUN tar -xf Python-3.10.16.tgz
RUN cd Python-3.10.16 && ./configure --enable-optimizations && make -j 4 && make altinstall
RUN wget https://bootstrap.pypa.io/get-pip.py
RUN python3.10 get-pip.py
RUN python3.10 -m pip install --upgrade pip
RUN python3.10 -m pip install --upgrade setuptools
RUN add-apt-repository ppa:gns3/ppa && apt update && DEBIAN_FRONTEND=noninteractive apt install -y \ RUN add-apt-repository ppa:gns3/ppa && apt update && DEBIAN_FRONTEND=noninteractive apt install -y \
vpcs \ vpcs \
ubridge \ ubridge \
@ -34,4 +41,4 @@ COPY . /gns3server
RUN mkdir -p ~/.config/GNS3/3.0/ RUN mkdir -p ~/.config/GNS3/3.0/
RUN cp scripts/gns3_server.conf ~/.config/GNS3/3.0/ RUN cp scripts/gns3_server.conf ~/.config/GNS3/3.0/
RUN python3 -m pip install . RUN python3.10 -m pip install .

View File

@ -9,7 +9,7 @@ services:
volumes: volumes:
- ./gns3server:/server/ - ./gns3server:/server/
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
command: python3 -m gns3server --local --port 3080 command: python3.10 -m gns3server --local --port 3080
ports: ports:
- 3080:3080 - 3080:3080
- 5000-5100:5000-5100 - 5000-5100:5000-5100