MikeFoto / DockerHello

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hello World application in docker

Requisites

As this is just a demo:

  • no workflow or integration with remote services is coded;
  • not discussed cluster access nor permissions (user/namespaces/....).

Run

  • working minikube environment access

Build

  • python
  • docker running

Python

Hello World app

Webserver at a specific port with a simple message.

Configuration

shell variables are used

  • MESSAGE : message to be displayed
  • PORT : port to bind

die if they are not defined

Usage

MESSAGE="hello from demo " PORT=1344  hello.py

Container

Basic container creation in a Dockerfile based on python 2 image.

About


Languages

Language:Python 54.1%Language:Shell 24.4%Language:Dockerfile 21.5%