Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shmokmt/warden-sandbox
https://github.com/shmokmt/warden-sandbox
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/shmokmt/warden-sandbox
- Owner: shmokmt
- Created: 2021-02-24T05:23:18.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-03-12T08:17:34.000Z (over 3 years ago)
- Last Synced: 2023-03-06T05:21:40.973Z (over 1 year ago)
- Language: Ruby
- Size: 181 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-compose-rails-6
This repository defines docker files(Dockerfile and docker-compose.yml) to create the image. The docker image is published and usable from Docker Hub according to the following commands.
```
$ git clone [email protected]:DiveIntoHacking/docker-compose-rails-6.git
$ cd docker-compose-rails-6
$ docker-compose run --rm web bundle install
$ docker-compose run --rm web yarn install
$ docker-compose up
$ docker-compose exec web ./bin/rails db:create
```You can see Rails top page on http://localhost:3000/.
## pry
If you want to attach a docker process after you stop at a break point with pry, use the following command.
```
$ ./bin/docker-compose-attach web
```## Build and push an image to Docker Hub
This is just a note for admin (Ham) to push a docker image on https://hub.docker.com/.
See [reference](https://cloud.docker.com/u/diveintohacking/repository/docker/diveintohacking/docker-compose-rails-6/tags).
For instance, you can set like tag=0.0.4 in the following command.
```
$ ./bin/build-and-push-image $tag
```