Sha256: f5018c1c75071498cdc5c0bd4e7bbb1321af331537f2d703fe4d7eba4ae8465c

Contents?: true

Size: 1.11 KB

Versions: 6

Compression:

Stored size: 1.11 KB

Contents

#!/bin/bash -e

# If we're running in jenkins, there will be a conjur.identity file
# with Conjur creds in it. Otherwise, assume the user's netrc has
# them.
if [[ -f /etc/conjur.identity ]]; then
  netrc=/etc/conjur.identity
else
  netrc=$HOME/.netrc
fi

: ${CONJURRC=/etc/conjur.conf}

conjur_config() {
  local name=$1; shift
  grep $name $CONJURRC | awk '{print $2}' | tr -d '"'
}

export CONJUR_APPLIANCE_URL=$(conjur_config appliance_url)
export CONJUR_SSL_CERTIFICATE="$(< $(conjur_config cert_file))"

[[ -f "$HOME/.debifyrc" ]] && rc_arg="-v $HOME/.debifyrc:/root/.debifyrc:ro"

# mounting docker socket is required because subcommands launch
# containers
tty=$(tty -s && echo "-t" || true)
docker run -i $tty --rm \
  -e GLI_DEBUG -e DEBUG -e CONJUR_APPLIANCE_URL -e CONJUR_SSL_CERTIFICATE \
  -e ARTIFACTORY_USER -e ARTIFACTORY_PASSWORD \
  -e GIT_BRANCH -e BRANCH_NAME \
  -v $PWD:$PWD -w $PWD \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v ${netrc}:/root/.netrc:ro \
  ${rc_arg} \
  ${DEBIFY_ENTRYPOINT+--entrypoint $DEBIFY_ENTRYPOINT} \
  ${DEBIFY_IMAGE-registry.tld/conjurinc/debify:@@DEBIFY_VERSION@@} "$@"

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
conjur-debify-1.10.3 distrib/docker-debify
conjur-debify-1.10.2 distrib/docker-debify
conjur-debify-1.10.1 distrib/docker-debify
conjur-debify-1.10.0 distrib/docker-debify
conjur-debify-1.8.2 distrib/docker-debify
conjur-debify-1.8.1 distrib/docker-debify