Sha256: 1c65a684fa6f37aea7408951f09927e533794965a9a449fd4bda6366ae9126ef

Contents?: true

Size: 483 Bytes

Versions: 8

Compression:

Stored size: 483 Bytes

Contents

#!/bin/sh
set -e

if [ "$(which "$1")" = '' ]; then
  if [ "$(ls -A /usr/local/bundle/bin)" = '' ]; then
    echo 'command not in path and bundler not initialized'
    echo 'running bundle install'
    su-exec metaractor bundle install
  fi
fi

if [ "$1" = 'bundle' ]; then
  set -- su-exec metaractor "$@"
elif ls /usr/local/bundle/bin | grep -q "\b$1\b"; then
  set -- su-exec metaractor bundle exec "$@"

  su-exec metaractor ash -c 'bundle check || bundle install'
fi

exec "$@"

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
metaractor-3.0.1 docker-entrypoint.sh
metaractor-3.0.0 docker-entrypoint.sh
metaractor-2.1.1 docker-entrypoint.sh
metaractor-2.1.0 docker-entrypoint.sh
metaractor-2.0.0 docker-entrypoint.sh
metaractor-1.2.1 docker-entrypoint.sh
metaractor-1.2.0 docker-entrypoint.sh
metaractor-1.1.0 docker-entrypoint.sh