Skip to content

HeitorMC/docker101

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker 101 - Hands On

This Lab deploys a sinatra application to a K8S cluster in the cloud.

Getting started

Running the Sinatra App locally

Before you start, make sure you are using ruby version 3.1. You can check the version by running ruby -v.

  1. Clone this repository:

     git clone [email protected]:HeitorMC/HandsOn-k8s.git
  2. Change into the application directory:

     cd HandsOn-k8s
  3. install the dependencies:

     bundle exec ruby app.rb
  4. Run the app

     bundle exec ruby app.rb
  5. The web application will be availabe at http://localhost:4567/

Running the Sinatra App in a local container

  1. Clone this repository:

     git clone [email protected]:HeitorMC/HandsOn-k8s.git
  2. Change into the application directory:

     cd HandsOn-k8s
  3. Build the app’s container image

     docker build -t sinatra-app .
  4. Run the container

     docker run -p 4567:4567 sinatra-app
  5. The web application will be availabe at http://localhost:4567/

About

Docker basics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published