Thai Pangsakulyanont
5d97ca86c5
Improve docker setup script ( #7378 )
...
* Add set -e to docker-setup script
* Add error handling for db setup stage
* Sometimes Elasticsearch takes time to boot up
* Also delete docker_data
* search:setup must come first
* Revert "Sometimes Elasticsearch takes time to boot up"
This reverts commit e975f6e5c3edad084d4f2c4d8718675bf5c8d07c.
Reason for revert:
Instead of using wait-on, we can use Docker’s health check instead
See review comment:
https://github.com/thepracticaldev/dev.to/pull/7378#discussion_r411839255
* Use wait-on without installing into package.json
* Add /usr/src/app/node_modules to volumes
Otherwise, webpacker will not run in docker-compose.
See: https://stackoverflow.com/questions/30043872/docker-compose-node-modules-not-present-in-a-volume-after-npm-install-succeeds
2020-04-24 18:45:27 -04:00
rhymes
db9186043e
Removed yarn integrity check ( #7478 )
2020-04-23 19:23:12 -04:00
briwa
09f0773c18
refactor(docker): move redis env config to docker ( #6936 )
...
instead of in config/application.yml
2020-03-30 10:48:38 +07:00
Abenet Tamiru
83a59063fc
Set user, password and db for postgres docker ( #6564 )
...
* Set user, password and db for postgres docker
* Sync other docker services with dockerfile DATABASE_URL
2020-03-10 14:44:26 -04:00
Molly Struve
6a277ba10d
remove rake jobs:work references from code ( #6082 ) [deploy]
2020-02-14 15:18:08 -05:00
Michael Kohl
f1aca16a1e
Improve Docker configuration ( #6055 )
2020-02-14 14:28:27 -05:00
Michael Kohl
38e980917d
Add Elasticsearch to Docker Compose ( #5978 )
...
* Copy .ruby-version into Dockerfile
* Add Elasticsearch to Docker Compose
2020-02-11 11:45:16 -05:00
Mohamed ABDELLANI
0039e67467
Add redis container to docker-compose ( #4965 )
...
* Add redis container to docker-compose [fix issue 4962]
* Updates docker.md
2019-11-29 17:06:56 -05:00
Abenet Tamiru
4c873c1a88
Specify postgres version in docker-compose.yml ( #4477 ) [ci skip]
2019-10-17 10:55:06 -04:00
Hector Bustillos
27a7a199d7
#4129 Reduce Dockerfile size ( #4251 )
...
* The previous Dockerfile was using and outdated format and was causing
heavy load times.
The number of the lines in the Dockerfile are defined as layer, with more
layers more time and bigger is the final image.
There were many things that were able to be delegated to the official ruby
docker image.
* - Use yarn community package
- Don't create the workdir directory since is created by docker if doesn't exists
- Remove config/application.yml from .dockerignore
* Update Dockerfile
Co-Authored-By: Abenet Tamiru <mail@abenet.me>
* Update Dockerfile
Co-Authored-By: Abenet Tamiru <mail@abenet.me>
* Add directory copy, and user correct folder in compose
* Update docker-compose and Dockerfile
* Fix typo
Co-Authored-By: Mac Siri <krairit.siri@gmail.com>
* Update wording
Co-Authored-By: Mac Siri <krairit.siri@gmail.com>
2019-10-10 18:01:04 -04:00
Michael
cfda390845
Adds optional support for Docker/Compose ( #296 )
...
* Adds optional support for Docker/Compose
* Upgrades Dockerfile to use a multi-stage build
* Gets rest of stack running in Docker
* Renames queue to jobs, uses jobs namespace command
* Reverts file
* Adds webpacker
* Fixes yarn check issue
* Adds Database URL default connection string
* Remove daemons gem
* Update huskyhook config
* Update seed.rb
* Create .dockerignore
* Increase RackTimeout's config
* Simplify Docker config
* Update README
* Remove postgres url default
* Change docker entry point to 3000
* Remove duped integrity setting
2018-10-12 11:48:53 -04:00