git-partition-sync-consumer

command module
v0.0.0-...-7ff6546 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

README

Git Partition Sync - Consumer

Utility for pulling git archives from s3 and pushing to remote. Reliant on S3 object key format outputted by gitlab-sync-s3-push

gitlab-sync-diagram

Environment Variables

Required
  • AWS_ACCESS_KEY_ID (needs s3 read permission)
  • AWS_SECRET_ACCESS_KEY
  • AWS_REGION
  • AWS_S3_BUCKET
  • GITLAB_BASE_URL
  • GITLAB_USERNAME
  • GITLAB_TOKEN (needs repo write permission)
  • PRIVATE_KEY
Optional
  • RECONCILE_SLEEP_TIME - time between runs. defaults to 5 minutes (5m)
  • WORKDIR - local directory where io operations will be performed. defaults to /working

Execute

podman run -t \
    -e AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" \
    -e AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" \
    -e AWS_REGION="$AWS_REGION" \
    -e AWS_S3_BUCKET="$AWS_S3_BUCKET" \
    -e GITLAB_BASE_URL="$GITLAB_BASE_URL" \
    -e GITLAB_USERNAME="$GITLAB_USERNAME" \
    -e GITLAB_TOKEN="$GITLAB_TOKEN" \
    -e PRIVATE_KEY="$PRIVATE_KEY" \
    quay.io/app-sre/git-partition-sync-consumer:latest -dry-run

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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