Docker and Kubernetes

FROM rubyWORKDIR /home/appENV PORT 3000EXPOSE $PORTRUN gem install rails bundler
RUN gem install rails
RUN apt-get update -qq && apt-get install -y nodejs
ENTRYPOINT [ "/bin/bash" ]4. Create docker-compose.yml file and include:version: "3.9"services:ruby_dev:build: .container_name: ruby_containerports:- "3000:3000"volumes:- ./:/home/appWhen installing Docker app follow the instructions in the app: docker/getting-started

Run the following commands in your terminal:

docker-compose build

docker-compose run --rm --service-ports ruby_dev

rails new myapp && cd myapp

bundle update && bundle install

rails server -p $PORT -b 0.0.0.0

--

--

--

Hello World! I’m a Full stack web developer experienced in Ruby and JavaScript frameworks. I graduated Flatiron School in October of 2020.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

16 Ways to Flourish Even If You’re Not Tech Savvy

Decentralized Governance Means a Better Web3: Why I’m Joining StableNode

We are being accelerated. Wait, what?

Birthday Cake Candles | HackerRank Problem | Java Solution

Final Entry

Drupal 8 to Drupal 9 Migration: Main Challenges

The Seven Most Essential Programming Conventions and Best Practices

Takeaways from John Ousterhout’s A Philosophy Of Software Design

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ludmila Korchnoy

Ludmila Korchnoy

Hello World! I’m a Full stack web developer experienced in Ruby and JavaScript frameworks. I graduated Flatiron School in October of 2020.

More from Medium

Local Kubernetes cluster on openEuler OS

Introduction to Kubernetes for application developers

How to connect AWS EKS cluster via Windows Powershell?

Prometheus installation in Google Kubernetes Engine