Skip to main content

Build your Python project to Docker image on remote Docker server

Project description

PESI(English version README

从终端打包Python项目到远程Docker服务器

使用环境(目前测试)

  • Linux
  • Python 3.5 / 3.6

Base on python package

  • click == 7.1.1
  • docker == 4.1.0(已经集成在lib中)
  • requests == 2.23.0
  • websocket == 0.2.1

安装

    sudo pip install pesi

快速上手(example)

注意: 确保你要远程的Docker服务器或者本地Docker已经打开remote api端口,取决于你在setup.cfg里面的配置( https://success.docker.com/article/how-do-i-enable-the-remote-api-for-dockerd)

    git clone https://github.com/pesi1874/pesi.git
    cd psei/example
    pesi build

项目文件结构要求

|-- project-name/
    |--deploy/
        |-- Dockerfile
        |-- requirements.txt
        |-- run.sh
    |--project-name/
        |--main.py
    |--setup.cfg

构建项目

    cd <python project>
    pesi build

Help

    pesi --help

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pesi-0.0.4-py3-none-any.whl (137.6 kB view details)

Uploaded Python 3

File details

Details for the file pesi-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: pesi-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 137.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.9.1 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9

File hashes

Hashes for pesi-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8f6a8dd0800121d6f150fd9ea52264898c6bf32d4df2a4cebc6c3e1f87e23d32
MD5 4cd61763d3b1ff1a5770d2620d9936b9
BLAKE2b-256 aa42f0b7745063c7ce725d61546aca41a8cf4b4a00d73f7f774b14e2da69e020

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page