This package is intended to sync habitat packages, and their corresponding keys from an upstream builder, to a target builder.
These values are driven by configuration.
For the preferred usage on the habitat package please review the Habitat package README
Currently there is only one mode to execute in, continuity as an agent where the sync process happens followed by a sleep and re-execution.
This will run the sync process with the given configuration file.
bldr_package_sync --config user.toml sync
interval
: integer value used to determine the amount of time to sleep after running the processlog_level
: the level to print logs at (debug, info, warn, error)temp_dir
: the temp directory to stage files inenv
: additional environment variables to use when shelling out (could be proxy or ssl, see troubleshooting)features
: list of beta features to include- options:
PACKAGE_CONSTRAINTS
- options:
upstream
: the bldr to pull packages/keys fromurl
: the url to the corresponding upstream
target
: the bldr to push packages/keys tourl
: the url to the corresponding targetauthToken
: the authToken to push to the origins in the target (must have access to all outlined origins)
origin
: list of origins and channels to pull packages fromname
: the name of the originchannels
: a list of channels to pull/push packages to
package
: list of package constraints (this feature is beta)name
: the name of the origincontraint
: the constraint on the package
interval = 300
env = []
log_level = "info"
temp_dir = "/tmp"
[upstream]
url = "https://bldr.habitat.sh"
[target]
url = ""
authToken = ""
[[origin]]
name = "habitat"
channels = ["stable", "on-prem-stable"]
[[origin]]
name = "core"
channels = ["stable"]
interval = 300
env = []
log_level = "info"
temp_dir = "/tmp"
features = ["PACKAGE_CONSTRAINTS"]
[upstream]
url = "https://bldr.habitat.sh"
[target]
url = ""
authToken = ""
[[origin]]
name = "habitat"
channels = ["stable", "on-prem-stable"]
[[origin]]
name = "core"
channels = ["stable"]
[[package]]
name = "core/hab"
constraint = "< 0.80.0"
[[package]]
name = "core/hab-pkg-export-docker"
constraint = "< 0.80.0"
If running on a mac and getting SSL related errors, try appending to the env array in the config file:
env = ["SSL_CERT_FILE=/usr/local/etc/openssl/cert.pem"]