Skip to content

This repository contains my dockerization of Cowsay app

Notifications You must be signed in to change notification settings

MathoAvito/Cowsay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dockerization

This is my dockerization of Cowsay app! (see below)
It is a light version image, based on alpine.

Init

After cloning the repo, just run:

./init-cowsay.sh

The app is now running on port 4001 on your local machine.

Go to: Cowsay

Custom Init

If you would like to change the port of the app, the container's name or image's name, then execute the commands below:

docker build -t <image_name> 
docker run -d -p <your_port>:8080 --name cowsay cowsay

now go to:
http://localhost:<\your_port>/

Enjoy! Don't forget to refresh a few times so you'll see a variety of wisdom phrases.
If you are not running on localhost, just browse http://<your_IP>:<your_port>/

screen shot 2018-03-20 at 10 45 11 pm

Original README

Background

This is a minor re-write of Cowsay Node by Bibby Chung

It is adapted for course convenience.

Important note: Deepak Chopra is a quack.

demo

https://cowsay-node.herokuapp.com/

To run localy

(1) Make sure you have node & npm installed (2) Install all dependencies using "npm install" (3) Set PORT environment variable (if not set, 8080 will be used) (4) npm start

Enjoy it. ^_____^ ..

About

This repository contains my dockerization of Cowsay app

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published