https://github.com/webmasterdevlin/ruby-on-rails-k8s
sample json response at /api/v1/hello
https://github.com/webmasterdevlin/ruby-on-rails-k8s
Last synced: about 1 year ago
JSON representation
sample json response at /api/v1/hello
- Host: GitHub
- URL: https://github.com/webmasterdevlin/ruby-on-rails-k8s
- Owner: webmasterdevlin
- Created: 2020-07-10T21:10:19.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-08T21:15:58.000Z (over 3 years ago)
- Last Synced: 2025-02-11T13:22:06.017Z (over 1 year ago)
- Language: Ruby
- Homepage: https://hub.docker.com/r/webmasterdevlin/ruby-on-rails-k8s
- Size: 39.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#### Dockerizing a Ruby on Rails
Login to Docker Hub
```zsh
$ docker login
```
create a Ruby on Rails container
```zsh
$ docker build -t {yourDockerUsername}/ruby-api:1.0.0 .
```
Test the Ruby on Rails container by running it. It should be visible at localhost:8080
```zsh
$ docker run -p 8080:3000 {yourDockerUsername}/ruby-api:1.0.0
```
- see app at localhost:8080/api/v1/hello
Push the container to your Docker Hub account repository
```zsh
$ docker push {yourDockerUsername}/ruby-api:1.0.0
```