Sha256: e00edc0064f52bc17de2a6a5282138ed2a1e49ae3d5a35feab3eeb516562f071

Contents?: true

Size: 710 Bytes

Versions: 17

Compression:

Stored size: 710 Bytes

Contents

#!/bin/bash -e

# Make sure we don't echo commands as executed, otherwise the user's
# Conjur API key will show up in the logs.
set +x

creds=( $(ruby /debify/distrib/conjur_creds.rb) )

# If there are creds, use them to log in to the registry. Then, run
# the magic DockerInDocker wrapper script so debify can interact with
# the Docker daemon.
#
# If there are no creds, just run debify itself. Any commands that do
# Docker stuff will fail, but the non-Docker commands (e.g. the config
# subcommands) will work fine.
if [[ ${#creds[*]} > 0 ]]; then
  echo -n "${creds[1]}" | docker login registry.tld -u ${creds[0]} --password-stdin >/dev/null 2>&1
  exec wrapdocker debify "$@"
else
  exec debify "$@"
fi

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
conjur-debify-1.12.0 distrib/entrypoint.sh
conjur-debify-1.11.5 distrib/entrypoint.sh
conjur-debify-1.11.4 distrib/entrypoint.sh
conjur-debify-1.11.3 distrib/entrypoint.sh
conjur-debify-1.11.2 distrib/entrypoint.sh
conjur-debify-1.11.1 distrib/entrypoint.sh
conjur-debify-1.10.3 distrib/entrypoint.sh
conjur-debify-1.10.2 distrib/entrypoint.sh
conjur-debify-1.10.1 distrib/entrypoint.sh
conjur-debify-1.10.0 distrib/entrypoint.sh
conjur-debify-1.8.2 distrib/entrypoint.sh
conjur-debify-1.8.1 distrib/entrypoint.sh
conjur-debify-1.8.0 distrib/entrypoint.sh
conjur-debify-1.7.4 distrib/entrypoint.sh
conjur-debify-1.7.3 distrib/entrypoint.sh
conjur-debify-1.7.2 distrib/entrypoint.sh
conjur-debify-1.7.0 distrib/entrypoint.sh