projector说明地址

启动容器

docker pull python:3.8.16-slim
docker run -it -d -p 9999:9999 --name projname python:3.8.16-slim
docker exec -it projname bash

安装基础库

#更换软件源
sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
sed -i 's|security.debian.org/debian-security|mirrors.ustc.edu.cn/debian-security|g' /etc/apt/sources.list
apt update -y
安装插件库
apt-get install -y  less libxext6 libxrender1 libxtst6 libfreetype6 libxi6 \
    curl git 
python -m pip install --upgrade pip -i https://pypi.douban.com/simple
安装projector
pip install projector-installer -i https://pypi.douban.com/simple

#查看可以安装的IDE列表
projector install   #选择yes查看可用的ide

pycharm安装

projector install PyCharm_Community
#配置
projector config edit Pycharm
#N
#port=9999
#...host=y
#[localhost]=0.0.0.0
#N
#N
#N
#0
#启动
projector run Pycharm

Phpstorm

projector install Phpstorm
#配置
projector config edit Phpstorm
#N
#port=9999
#...host=y
#[localhost]=0.0.0.0
#N
#N
#N
#0
#启动
projector run Phpstorm

打开webide

http://localhost:9999/