Coder Social home page Coder Social logo

dockup's Introduction

About

Dockup is a command line interface tool and a Python package which allows to easily publish applications at a given path through docker containers and nginx.

A Dockup package is a compressed file containing:

  • the content you want to publish: Python script, HTML file, ...

  • the dockup.yml configuration file which contains the following info

    • name of the package, must be the same name as the directory containing it
    • path at which the package will be accessible. For example /app1 for website.com/app1
    • type of the package. For example, website, flet application
  • optional: Dockerfile and nginx.conf in case customization is needed

  • for Python applications only, the requirements.txt file

When you publish a Dockup package, the tool will do the following things automatically for you:

  • Docker compose down
  • Extract the package archive in the Dockup app folder
  • If necessary, build the nginx configuration
  • If necessary, build the docker file
  • Rebuild the docker compose file
  • Docker compose build and up

The nginx reverse proxy used by Dockup is also installed as Dockup package. This makes it convenient to configure and update the reverse proxy, for example to configure HTTPS on your server.

Installation

First of all install the docker engine: https://docs.docker.com/engine/install/

Then install Dockup as a pip package

pip3 install dockup

You must install a reverse proxy package (see below) before you can publish your applications.

Usage

As a command line tool

Install the reverse proxy Package

  • given that your reverse proxy package is located in your current working directory
  • you can prepare the reverse proxy package according to you needs:
  • you can also specify the package as an archive if it is present in your working directory.
python3 -m dockup installproxy reverse_proxy_http

Publish a package

  • you can also specify the package as an archive if it is present in your working directory.
pyhton3 -m dockup install flet_app1

To remove a package

python3 -m dockup uninstall flet_app1

As a Python package

import dockup

dockup.down()
dockup.reset()
dockup.set_proxy('./reverse_proxy_http.tar.gz')
dockup.add('./flet_app1.tar.gz')
dockup.add('./flet_app2.tar.gz')
dockup.up()

dockup's People

Contributors

flokapi avatar

Stargazers

jET avatar

Watchers

 avatar

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.