Sha256: dc5492f02e7b3f3bcd67fa70afccc4c1c5500a29f8887f32b2233d79544700ea

Contents?: true

Size: 387 Bytes

Versions: 19

Compression:

Stored size: 387 Bytes

Contents

#!/bin/bash -e

# Enable jemalloc for reduced memory usage and latency.
if [ -z "${LD_PRELOAD+x}" ]; then
    LD_PRELOAD=$(find /usr/lib -name libjemalloc.so.2 -print -quit)
    export LD_PRELOAD
fi

# If running the rails server then create or migrate existing database
if [ "${@: -2:1}" == "./bin/rails" ] && [ "${@: -1:1}" == "server" ]; then
  ./bin/rails db:prepare
fi

exec "${@}"

Version data entries

19 entries across 12 versions & 5 rubygems

Version Path
clerk-sdk-ruby-4.0.0 apps/rails-api/bin/docker-entrypoint
clerk-sdk-ruby-4.0.0 apps/rails-full/bin/docker-entrypoint
clerk-sdk-ruby-4.0.0.beta7 apps/rails-api/bin/docker-entrypoint
clerk-sdk-ruby-4.0.0.beta7 apps/rails-full/bin/docker-entrypoint
clerk-sdk-ruby-4.0.0.beta6 apps/rails-api/bin/docker-entrypoint
clerk-sdk-ruby-4.0.0.beta6 apps/rails-full/bin/docker-entrypoint
clerk-sdk-ruby-4.0.0.beta5 apps/rails-api/bin/docker-entrypoint
clerk-sdk-ruby-4.0.0.beta5 apps/rails-full/bin/docker-entrypoint
stateful_models-0.0.3 spec/dummy/bin/docker-entrypoint
clerk-sdk-ruby-4.0.0.beta4 apps/rails-full/bin/docker-entrypoint
clerk-sdk-ruby-4.0.0.beta4 apps/rails-api/bin/docker-entrypoint
skywalking-0.0.0.alpha examples/rails-demo/bin/docker-entrypoint
stateful_models-0.0.2 spec/dummy/bin/docker-entrypoint
stateful_models-0.0.1 spec/dummy/bin/docker-entrypoint
active_cached_resource-0.1.0 example/provider/bin/docker-entrypoint
active_cached_resource-0.1.0 example/consumer/bin/docker-entrypoint
active_cached_resource-0.0.1.pre example/consumer/bin/docker-entrypoint
active_cached_resource-0.0.1.pre example/provider/bin/docker-entrypoint
superfast-0.1.0 bin/docker-entrypoint