deploy

module
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 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:
  -apiNotification string
        [api] Email notificiation when deploy ends (possibles values ares 'never', 'onError', 'all') (default "onError")
  -apiNotificationEmail string
        [api] Email address to notify
  -apiTempFolder string
        [api] Temp folder for uploading files (default "/tmp")
  -cert string
        [http] Certificate file
  -csp string
        [owasp] Content-Security-Policy (default "default-src 'self'; base-uri 'self'")
  -frameOptions string
        [owasp] X-Frame-Options (default "deny")
  -graceful string
        [http] Graceful close duration (default "35s")
  -hsts
        [owasp] Indicate Strict Transport Security (default true)
  -key string
        [http] Key file
  -mailerPass string
        [mailer] Mailer Pass
  -mailerURL string
        [mailer] Mailer URL (default "https://mailer.vibioh.fr")
  -mailerUser string
        [mailer] Mailer User
  -port int
        [http] Listen port (default 1080)
  -prometheusPath string
        [prometheus] Path for exposing metrics (default "/metrics")
  -tracingAgent string
        [tracing] Jaeger Agent (e.g. host:port) (default "jaeger:6831")
  -tracingName string
        [tracing] Service name
  -url string
        [alcotest] URL to check
  -userAgent string
        [alcotest] User-Agent for check (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