Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/renderedtext/docker-compose-example
An example Rails 4 project with Docker
https://github.com/renderedtext/docker-compose-example
Last synced: 27 days ago
JSON representation
An example Rails 4 project with Docker
- Host: GitHub
- URL: https://github.com/renderedtext/docker-compose-example
- Owner: renderedtext
- Created: 2017-06-21T09:22:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-06-10T04:00:10.000Z (over 3 years ago)
- Last Synced: 2023-03-11T00:53:39.744Z (almost 2 years ago)
- Language: Ruby
- Size: 20.5 KB
- Stars: 5
- Watchers: 4
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Build
Status](https://semaphoreci.com/api/v1/renderedtext/docker-compose-example/branches/master/badge.svg)](https://semaphoreci.com/renderedtext/docker-compose-example)A simple Rails 4 app, accompanying the [Testing multi-container applications with Docker Compose and Semaphore](https://semaphoreci.com/docs/docker/testing-multicontainer-apps-with-docker-compose-and-semaphore.html) on Semaphore Docs.
## Usage
1. Fork the project to your GitHub account
2. Follow [the
guide](https://semaphoreci.com/docs/docker/testing-multicontainer-apps-with-docker-compose-and-semaphore.html) on Semaphore Docs
3. Use the following set of commands to build and test the project on Semaphore```
# Setup
docker-compose up -d && sleep 3
docker-compose run web rake db:create# Job 1
docker-compose run web rake test
```To avoid using `sleep 3` for waiting for the DB, you can use the `./wait-for-it`
script, like described [here](https://docs.docker.com/compose/startup-order/).