8 Commits

Author SHA1 Message Date
Helge Rausch
753f5b9ca8 Move build step into own script (#27)
... so it works when deploying and running the tests.
2022-12-02 14:05:42 +01:00
Helge Rausch
9b1ed05a5f Fix CRON (#24)
* Use docker-compose to run database setup
* Build sidekiq image in test script
* Fix db migration startup script
* Let Runit deal with services

Sidekiq was started by a blocking script in my_init. This lead to the init process not getting to run Runit, which is in charge of CRON among other things. To fix it, I moved Sidekiq to be run by Runit as well. I also moved the postfix start script, while I was at it.
2022-11-23 15:09:34 +01:00
Helge Rausch
525c178bac Update baseimage 2022-11-15 10:27:41 +01:00
Helge Rausch
5db33d54a7 Output logs after running test request 2020-02-27 13:20:22 +01:00
Helge Rausch
066c8b672d Fix test 2018-10-21 14:49:47 +02:00
Helge Rausch
c3eef3525d Fix sidekiq init script (#13)
* Fix sidekiq init script

* Re-evaluate `git clone` if snpr's master changed

* Pass along SNPR_REV env var to docker

* Find out snpr commit hash if not passed in

* Only build "rails" image explicitly

* Make the sidekiq init script work

* Fix migrate init script

* Simplify Dockerfile
2018-01-19 11:18:05 -08:00
Helge Rausch
ee4b8d6dd1 Push sidekiq image to docker hub (#11)
* Sudo is required if you do it correctly

* Build sidekiq image with docker-compose

* Push sidekiq image to docker hub

* Only push to Docker Hub if build is not a pull-request
2018-01-08 08:40:57 -08:00
Helge Rausch
3cc18990b8 Less places with ruby versions (#2)
* Reduce number of places where Ruby versions are specified

* Add TravisCI config

* Let's see which Ruby the app user uses

* Set Ruby version as app user

* Use full path for calling rvm

* Same but different

* Use rvm Ruby throughout

* Try setting up Postgres on TravisCI

* Remove passenger_ruby nginx directive

It should be the default... maybe...

* fixup! Try setting up Postgres on TravisCI

* Use Docker Compose

* Don't wait 10 seconds

* Try multiple times before drawing conclusions

* Explicitly set a password for postgres

* Try pruning volumes

* Also retry db setup if request failed

* Do we actually need to build before up?

* Move empty lines around

* Turns out, no sudo needed
2018-01-07 10:41:17 -08:00