Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,8 @@ RUN bundle install --jobs=20 --retry=5 --frozen --without deploy production

COPY . /upaya

RUN gpg --dearmor < keys/equifax_gpg.pub.example > keys/equifax_gpg.pub.bin
RUN gpg --batch --import keys/equifax_gpg.example

EXPOSE 3000
CMD ["rackup", "config.ru", "--host", "0.0.0.0", "--port", "3000"]
7 changes: 5 additions & 2 deletions bin/setup
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ Dir.chdir APP_ROOT do
run "cp keys/equifax_rsa.example keys/equifax_rsa"
run "cp keys/equifax_rsa.pub.example keys/equifax_rsa.pub"
run "cp certs/saml.crt.example certs/saml.crt"
run "gpg --dearmor < keys/equifax_gpg.pub.example > keys/equifax_gpg.pub.bin"
system "gpg --batch --import keys/equifax_gpg.example"

if ARGV.shift == "--docker" then
run 'docker-compose build'
Expand All @@ -45,6 +43,11 @@ Dir.chdir APP_ROOT do
exit
end

puts "\n== GPG Setup =="
run "which gpg || brew install gpg"
run "gpg --dearmor < keys/equifax_gpg.pub.example > keys/equifax_gpg.pub.bin"
system "gpg --batch --import keys/equifax_gpg.example"

puts "\n== Installing dependencies =="
run "gem install bundler --conservative"
run 'gem install foreman --conservative && gem update foreman'
Expand Down