Skip to content

I created this repository to practice and be able to teach other people how to use the docker

Notifications You must be signed in to change notification settings

DanielFrancaContaGit/pilula-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Language: English | Português

Wat you ned to run the project:

You nead to have docker and heroku CLI to run and deploy the project:

After making the installations use these commands to run the project:

sudo docker build -t pilula/docker:1.0 .

Create a dockerr image locally

sudo docker run -p 3000:3000 -d pilula/docker:1.0

Create a docker container from the image previously created

sudo docker ps

shows the containers that are running

Container deployment on heroku

heroku login

log in to your heroku account

sudo docker ps

It is important to use this command again to make sure that there is a container running

sudo heroku container:login

Will prepare the container to be deployed on heroku

heroku create or heroku create -a <app name>

create a new app on heroku it is important to pay attention to the name of the app that heroko will create because we will need for the next step.

with the -a tag you specify which app name you want without it heroku creates a random name

Alt text

In the Image case the app name is blooming-hollows-42380

sudo heroku container:push web -a <app name>

this command pushes the container that is on your machine to the heroku app

sudo heroku container:release web -a <app name>

this command releases the container for the heroku app

heroku open

will direct to the site already deployed

About

I created this repository to practice and be able to teach other people how to use the docker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published