Skip to content

Instantly share code, notes, and snippets.

@jcpunk
Last active September 10, 2025 17:02
Show Gist options
  • Select an option

  • Save jcpunk/e6bcd331ac95d0b7a97708abe5c2ddbb to your computer and use it in GitHub Desktop.

Select an option

Save jcpunk/e6bcd331ac95d0b7a97708abe5c2ddbb to your computer and use it in GitHub Desktop.
yum -y install bash-completion procps-ng vim git gcc g++ epel-release systemd-devel ruby-devel glibc-devel irb postgresql postgresql-server
crb enable
yum -y install rubygems rubygem-ruby-libvirt libvirt-devel sassc libsass-devel rubygem-rspec rubygem-rake rubygem-pg rubygem-ffi rubygem-bundler rubygem-rdoc rubygem-mail gettext-devel
mkdir /run/postgresql
chown postgres /run/postgresql
su - postgres -c 'initdb'
su - postgres -c 'pg_ctl -D /var/lib/pgsql/data -l logfile start'
su - postgres -c 'createuser -s root'
cd /foreman
cp config/database.yml.example config/database.yml
RAILS_ENV=test bundle install
RAILS_ENV=test bundle exec rake db:create
RAILS_ENV=test bundle exec rake db:migrate
RAILS_ENV=test bundle exec rake db:seed
RAILS_ENV=test bundle exec rails snapshots:generate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment