Sha256: 4e82f032eb27c0998f292a06893b48b3dadabebc26bd2fd2a8b1bbaad1ff4a31

Contents?: true

Size: 686 Bytes

Versions: 14

Compression:

Stored size: 686 Bytes

Contents

#!/bin/bash -e

# Set SOLID_QUEUE_CONFIG environment variable
SOLID_QUEUE_CONFIG="$(bundle show hephaestus | tr -d '\n')/config/queue.yml"
export SOLID_QUEUE_CONFIG

if [ "$(id -u)" -eq 0 ] && [ ! -f /swapfile ]; then
    # allocate swap space
    fallocate -l 2GB /swapfile
    chmod 0600 /swapfile
    mkswap /swapfile
    echo 10 > /proc/sys/vm/swappiness
    swapon /swapfile
    echo 1 > /proc/sys/vm/overcommit_memory
    # rerun this script as nobody
    exec su nobody -s "$SHELL" -c "$0 $@"
fi

if [ "${1}" == "/app/bin/rails" ] && [ "${2}" == "server" ] && [ "$FLY_REGION" == "$PRIMARY_REGION" ]; then
    # run the db migrations
    /app/bin/rails db:migrate
fi

exec "${@}"

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
hephaestus-0.8.17 templates/bin/docker-entrypoint
hephaestus-0.8.16.1 templates/bin/docker-entrypoint
hephaestus-0.8.16 templates/bin/docker-entrypoint
hephaestus-0.8.15.5 templates/bin/docker-entrypoint
hephaestus-0.8.15.4 templates/bin/docker-entrypoint
hephaestus-0.8.15.3 templates/bin/docker-entrypoint
hephaestus-0.8.15.2 templates/bin/docker-entrypoint
hephaestus-0.8.15.1 templates/bin/docker-entrypoint
hephaestus-0.8.15 templates/bin/docker-entrypoint
hephaestus-0.8.14 templates/bin/docker-entrypoint
hephaestus-0.8.13 templates/bin/docker-entrypoint
hephaestus-0.8.12.2 templates/bin/docker-entrypoint
hephaestus-0.8.12.1 templates/bin/docker-entrypoint
hephaestus-0.8.12 templates/bin/docker-entrypoint