deploy

module
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2019 License: MIT

README

deploy

Build Status Go Report Card codecov FOSSA Status

docker-compose deploy API

curl -O https://raw.githubusercontent.com/ViBiOh/deploy/master/deploy.sh
chmod +x deploy.sh

./deploy.sh PROJECT_NAME DOCKER-COMPOSE-FILE
Usage: deploy [PROJECT_NAME] [DOCKER-COMPOSE-FILE]
  where
    - PROJECT_NAME         Name of your compose project
    - DOCKER_COMPOSE_FILE  Path to your compose file (default: docker-compose.yml in current dir)

Golang API

You can execute the deploy.sh script through HTTP API.

curl -X POST http://localhost:1080/[project_name]/ --data-binary @docker-compose.yml

We recommend putting an Authorization in front of your server (e.g. reverse-proxy, nginx, etc) if you plan to expose it to the internet.

If something goes wrong during the deploy process, the uploaded docker-compose.yml is kept in order to manually retry or debug what's going on. Otherwise, the file is deleted.

CLI og HTTP Server
Usage of deploy:
  -address string
        [http] Listen address {DEPLOY_ADDRESS}
  -apiNotification string
        [api] Email notificiation when deploy ends (possibles values ares 'never', 'onError', 'all') {DEPLOY_API_NOTIFICATION} (default "onError")
  -apiNotificationEmail string
        [api] Email address to notify {DEPLOY_API_NOTIFICATION_EMAIL}
  -apiTempFolder string
        [api] Temp folder for uploading files {DEPLOY_API_TEMP_FOLDER} (default "/tmp")
  -cert string
        [http] Certificate file {DEPLOY_CERT}
  -csp string
        [owasp] Content-Security-Policy {DEPLOY_CSP} (default "default-src 'self'; base-uri 'self'")
  -frameOptions string
        [owasp] X-Frame-Options {DEPLOY_FRAME_OPTIONS} (default "deny")
  -hsts
        [owasp] Indicate Strict Transport Security {DEPLOY_HSTS} (default true)
  -key string
        [http] Key file {DEPLOY_KEY}
  -mailerPass string
        [mailer] Mailer Pass {DEPLOY_MAILER_PASS}
  -mailerURL string
        [mailer] Mailer URL {DEPLOY_MAILER_URL} (default "https://mailer.vibioh.fr")
  -mailerUser string
        [mailer] Mailer User {DEPLOY_MAILER_USER}
  -port int
        [http] Listen port {DEPLOY_PORT} (default 1080)
  -prometheusPath string
        [prometheus] Path for exposing metrics {DEPLOY_PROMETHEUS_PATH} (default "/metrics")
  -tracingAgent string
        [tracing] Jaeger Agent (e.g. host:port) {DEPLOY_TRACING_AGENT} (default "jaeger:6831")
  -tracingName string
        [tracing] Service name {DEPLOY_TRACING_NAME}
  -url string
        [alcotest] URL to check {DEPLOY_URL}
  -userAgent string
        [alcotest] User-Agent for check {DEPLOY_USER_AGENT} (default "Golang alcotest")

License

FOSSA Status

Directories

Path Synopsis
pkg
api

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL