Sha256: ff758a8af66d90c10b03cfdbf901caf01695a12a636a8741b97e6b456562e67e
Contents?: true
Size: 520 Bytes
Versions: 13
Compression:
Stored size: 520 Bytes
Contents
#!/bin/bash <% if options.swap -%> # allocate swap space fallocate -l <%= options.swap %> /swapfile chmod 0600 /swapfile mkswap /swapfile echo 10 > /proc/sys/vm/swappiness swapon /swapfile echo 1 > /proc/sys/vm/overcommit_memory <% end -%> <% if options.prepare -%> # If running the rails server then create or migrate existing database if [ "${*}" == "./bin/rails server" ]; then ./bin/rails <%= dbprep_command %> fi <% elsif !options.swap -%> # Add any container initialization steps here <% end -%> exec "${@}"
Version data entries
13 entries across 13 versions & 1 rubygems