1
0
Fork
You've already forked deploymentutils
0
Small python package to facilitate deployment of some personal projects
  • Python 100%
2021年07月08日 19:07:57 +02:00
src/deploymentutils bump version after release 2021年07月08日 19:07:57 +02:00
test add tests for rsync_upload and set_env 2021年07月08日 19:05:21 +02:00
.drone.yml fix drone.yml 2021年02月04日 14:27:23 +01:00
.gitignore Initial commit 2020年05月23日 17:53:08 +02:00
LICENSE Initial commit 2020年05月23日 17:53:08 +02:00
MANIFEST.in add file: MANIFEST.in 2021年02月04日 13:19:17 +01:00
README.md apply black -l 120 ./; add code style badge to README 2021年02月04日 14:42:21 +01:00
requirements.txt new_feature: deploy_this_package() 2020年11月22日 18:58:28 +01:00
setup.py refactoring: introduce src directory; add ensure_http_response(...) 2021年07月08日 17:44:32 +02:00

Build Status Code style: black

deploymentutils

This repo contains a small python package to facilitate deployment of some personal projects.

Overview

This package provides a thin layer on top of fabric to execute commands with a state like

  • current working directory
  • activated virtual environment (not yet implemented)

It also tries to simplify to deploy/maintain multiple instances of the same software but with varying fixtures, including one or more local instances for testing.

Motivation

The package is mainly intended to facilitate deployment tasks (e.g. for django apps) by running a simple python script. Compared to configuration management tools like Ansible this approach is far less powerful and scalable. However, it might be easier to understand for developers and thus lowering the hurdle to deploy applications by them selves.

Assumed Directory Layout

The scripts marked with [*] make use of this module.

<general project dir>
│
│
├── project-src-repo/ ← official project repo
│ ├── .git/
│ ├── deployment/
│ │ ├── some_files/
│ │ ├── deploy.py [*] ← original deployment script (delivered by the project)
│ │ └── ...
│ ├── django_project/
│ │ ├── settings.py
│ │ └── ...
│ ├── django_app/
│ │ ├── views.py
│ │ └── ...
│ ├── manage.py
│ └── ...
│
├── instance-specific/
│ ├── README.md
│ ├── demo
│ │ ├── .git/
│ │ ├── deploy.py
│ │ ├── project_data
│ │ └── ...
│ ├── production
│ │ ├── .git/
│ │ ├── deploy.py [*]
│ │ ├── project_data
│ │ └── ...
│ ├── testing
│ │ ├── .git/
│ │ ├── deploy.py [*]
│ │ ├── project_data
│ │ └── ...
│ └── ...
│
├── local_testing/ ← contents of this directory are autogenerated
│ ├── deploy.py [*]
│ ├── <appname>_deployment
│ └── ...
.

Status

Still under development and not comprehensively tested.

Known Issues