# source_visual **Repository Path**: lowsa/source_visual ## Basic Information - **Project Name**: source_visual - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-06-22 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # contents * docker file for ubuntu16 with ssh and python3 * docker compose file for init the container # what it gives * ubuntu version 16 * ssh default port 22003 * ssh default user root * volume mapping default /home/mengge/python-workspace/source-visualization:/workspace/source-visualization > 就是说只有代码放在/source-visualization下才会保存在宿主机上,不然docker container 崩了数据代码丢失,而且迁移会麻烦一点。同样修改此处设置后重新启动docker的话会丢失环境配置,注意做好内部环境改变做的命令。 * web service default 10030-10039:8000-8009 * ssh default password tQ84TlNbDObb * python3 default * postgres version 10.1 * default password TpWyXHoTnDkiKOwBRN # usage > custom your settings in Dockerfile, such as "root:password" * docker build -t ubuntu16-ssh-mengge:0.1 . > custom your settings in docker-compose.yml, such as "your host bind port:22" * docker-compose up -d # coding in pycharm * new `project` > `pure python` > unfold `project interpreter` > click existing interpreter `...`> add python interpreter > ssh interpreter > set up your interpreter * set up `remote project location` /workspace/source-visualization * `tools`>`start ssh session`> remote bash里初始化django 项目 django-admin startproject visualization * after open project, brower remote host > click '...' set up your mapping path and right click the remote host> `download from here` 代码就拉到你自己的电脑了。 * `Run configuration` > add `django server` > `name` > `host` add 0 > click `fix` enable django support * 勾选 `enable django support` > `project root`: your\local\project\path\visualization> `settings`: visualization\settings.py > apply 即可 * `run` server , open broswer ip:10040, default: 202.117.10.199:10030