Giter VIP home page Giter VIP logo

stitp's Introduction

在线程序切片系统

安装

使用预构建的 Docker 镜像

首先拉取镜像,然后使用镜像运行容器。

docker pull sdygt/stitp
docker run -it -d -p 8000:80 sdygt/stitp

容器启动后,使用http://127.0.0.1:8000访问

其中,8000为在宿主机上的开放端口,可以按需修改

国内用户推荐使用DaoCloud阿里云的免费镜像加速服务。具体使用方法请参见相关文档

自行构建 Docker 镜像

为了自行构建 Docker 镜像,您需要 Docker 17.05 以上的版本。

Docker for Windows 由于依赖 Hyper-V 虚拟化技术,需要 Windows 10 专业版以上的版本

首先将repo的源码拉取到本地:

git clone --recurse-submodules https://github.com/sdygt/STITP.git

随后使用docker build命令在本地构建镜像:

cd STITP
docker build --tag sdygt/stitp .

其中tag参数可以按需指定。

构建完成后,使用此镜像创建容器并运行:

docker run -it -d -p 8000:80 --name stitp sdygt/stitp

name参数指定容器的名称,最后的参数指定使用镜像的tag,此处为sdygt/stitp

为另一台机器构建镜像

如果希望为另一台机器(例如内网机器)构建镜像,可以在能访问互联网的机器上构建镜像后导出至另一台机器。

按上述说明直接拉取预构建镜像或自行构建镜像后,执行

docker image save sdygt/stitp > stitp.tar

将镜像打包为tar文件。

stitp.tar复制到另一台机器以后,执行

docker image load -i stitp.tar

也可以使用gzip减小储存空间:

docker image save sdygt/stitp | gzip -c > stitp.tar.gz
docker image load -i stitp.tar.gz

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.