Public Repository

Last pushed: 2 months ago
Short Description
Deploy from git
Full Description

Croudtech Git Deployment Docker Image

This is the repo for the croudtech/gitdeploy docker image. The image is designed to deploy code from a git repo to the specified mounted folder and the restart the supervisor processes on the target container.

To deploy you need to create a stack file as follows:

services:
    target-container:
        image: some_container
        volumes:
            - shared_volume:/var/workdir
    deployment:
        image: croudtech/gitdeploy
        environment:
            GITREF: git_branch_or_tag
            GIT_REMOTE: git@bitbucket.org:owner/repo.git
            SSH_PRIVATE_RSA_KEY_B64: BASE64_ENCODED_PRIVATE_RSA_KEY_FOR_GIT_ACCESS
            SUPERVISOR_HOST: http://target-container:9001
            SUPERVISOR_PASS: YOURSUPERVISORPASSWORD
            SUPERVISOR_USER: croud
        stdin_open: true
        volumes:
            - shared_volume:/var/workdir
            - composer_cache:/var/workdir/.composer/cache

The container will run and check out the contents of the repo to the /var/www/workdir/current folder where it can be used by the target-container.

Docker Pull Command
Owner
croudtech