GithubHelp home page GithubHelp logo

abinashk / pintail-whoami Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pintail-ai/pintail-whoami

0.0 1.0 0.0 103 KB

License: Apache License 2.0

TypeScript 65.05% JavaScript 26.54% CSS 2.58% HTML 5.84%

pintail-whoami's Introduction

Pintail Docker Example

This project is a very simple example built for a docker tutorial using Node, Express, and Angular 2. For more information about Docker and how to get started please take a look at the tutorials accompanying this project.

Docker Series — What is Docker?

Docker Series — Starting your first container

Docker Series — Creating your first Dockerfile

Docker Series — Cheat Sheet

Requirements

To build you will need the Angular CLI installed

To run you will need Node.js installed

To work with Docker you will need Docker installed

This project was generated with Angular CLI version 1.5.0.

Getting Started

To Build

ng build

To start the node server

node server.js $HOSTNAME

Docker

To pull the Docker image from the Pintail.ai Dockerhub

docker pull pintailai/pintail-whoami:0.0.1

To run the Offical Version

docker run -d --rm -p 80:80 --name pintail-whoami pintailai/pintail-whoami:0.0.1

To build the image

docker build -t pintail-whoami .

To run your local build

docker run -d --rm -p 80:80 --name pintail-whoami pintail-whoami

Docker Compose

The docker-compose.yml file is designed to explain what Docker compose is and how it works. It simply spins up two containers by default the pintail whoami image and jwilder/nginx-proxy. The nginx proxy is designed to automatically route and load balence to docker images running on a network.

To start up the images using Docker compose docker-compose up -d

To see the images running docker-compose ps

To see the logs of all the containers Docker compose started docker-compose logs -f

Once you can see that the images started up correctly go to localhost on you machine to see pintail-whoami running

To scale up the number of pintail-whoami containers running docker-compose up --scale pintail-whoami=2 -d

After you have scaled up the number of pintail-whoami containers running greater than one you can refresh localhost and you should the ID beneath "Welcome to the Pintail.ai Docker Example!" change. This indicates that the nginx-proxy is forwarding you to different Docker containers!

pintail-whoami's People

Contributors

angular-cli avatar nolangrace avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.