Sign inSign up

lu0alv/git-partial-clone

By lu0alv

Updated almost 5 years ago

Wrapper of the git-partial-clone script for rolling and stable deployments of git subdirectories.

Image
0

575

lu0alv/git-partial-clone repository overview

Dockerfile for the git-partial-clone script

Wrapper of the git-partial-clone script for rolling and stable deployments of git subdirectories.

Usage:

  1. Fill your (configuration file) according to your needs.
  2. Add your entrypoint script in your dockerfile:
FROM lu0alv/git-partial-clone:latest

.
.
.

ENTRYPOINT ["/bin/sh", "-c" , "get-source && exec /home/${PARENT_DIR}/${REPO_NAME}/${REMOTE_PARTIAL_DIR}/deploy.sh"]
  1. Then run your dockerfile by providing your configuration file and mounting the file containing your github/gitlab token:
CONFIG_FILE=/path/to/your/config-file.conf
source $CONFIG_FILE
docker run \
    --env-file ${CONFIG_FILE} \
    -v /path/to/your/existing/token-file:${TOKEN_PATH} \
    # your extra options and dockerfile

Tag summary

Content type

Image

Digest

Size

103.3 MB

Last updated

almost 5 years ago

docker pull lu0alv/git-partial-clone