You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe this project can provide Docker images to simplify usage, while also offering more comprehensive introductory documentation.
At the same time, we can use mirrors to build Docker container instances and configure the corresponding Python settings inside the containers (as we all know, Python configuration on a physical machine is complex).
After mapping is done, we can develop within the containers without affecting the host machine's Python.
If possible, I will try to submit a pull request in the next few days to implement this feature.
But first, I need to know if this proposal is feasible.
ozline
changed the title
Suggestion: Provide a Docker container image for the project.
Proposal: Provide a Docker container image for the project.
Dec 14, 2023
Refer to DeepMD-kit
I believe this project can provide Docker images to simplify usage, while also offering more comprehensive introductory documentation.
At the same time, we can use mirrors to build Docker container instances and configure the corresponding Python settings inside the containers (as we all know, Python configuration on a physical machine is complex).
After mapping is done, we can develop within the containers without affecting the host machine's Python.
If possible, I will try to submit a pull request in the next few days to implement this feature.
But first, I need to know if this proposal is feasible.
事实上,我们可以使用 Docker 来规避复杂的环境配置。目前的 Docker 方案侧重于 dev,生产部署的方案待前者合入后再做考虑
为开发者提供的容器
这样做我们可能需要做这些更改:
需要注意的是,这个项目使用了 docker-compose 来提供中间件的快速启动,我们需要在外部环境中运行这个 compose 而不是在容器内
也就是说,这个容器只提供了编译部署所需要的环境,其余的我们均需要在外部做。此时这个容器的作用更类似于一个虚拟机环境。
这样做的好处除了简化 dev 难度,同时我们规避了在 Windows 下兼容性的问题(例如 Windows 下需要做一些特殊调整才可以运行 shell)
为部署提供的容器
我们可以通过一个新的 Dockerfile,这个 Dockerfile 负责实现常用的编译二进制文件的命令,对项目进行封装,将所有编译好的binary 和 python 文件放进同一个镜像中
我们编写一个 start-container.sh 脚本,这个 shell 脚本内明确声明用户不可调用
在利用这个镜像启动容器时,我们通过指定参数,callback 给这个 start-container.sh 脚本,以便让脚本知道应该运行哪个服务。
The text was updated successfully, but these errors were encountered: