# -*- coding: utf-8 -*-
import json
import os

from flask import Flask

app = Flask(__name__)

app_name = os.environ.get('APP_NAME', 'World')
container_id = os.environ.get('CONTAINER_ID')


@app.route('/')
def hello_world():
    ret = '<pre>Hello %s' % app_name
    if container_id:
        ret += '\nRunning inside container %s' % container_id
    os_environment_json = json.dumps(
        dict(os.environ),
        sort_keys=True,
        indent=4,
        separators=(',', ':'),
    )
    ret += '\nEnvironment dump:\n%s' % os_environment_json
    ret += '\n</pre>\n'
    return ret


if __name__ == '__main__':
    app.run(
        debug=True,
        port=8069,
        host='0.0.0.0',
    )

9062d7e5d1d1f2473eb347941148136614267c5b
<mask token>


@app.route('/')
def hello_world():
    ret = '<pre>Hello %s' % app_name
    if container_id:
        ret += '\nRunning inside container %s' % container_id
    os_environment_json = json.dumps(dict(os.environ), sort_keys=True,
        indent=4, separators=(',', ':'))
    ret += '\nEnvironment dump:\n%s' % os_environment_json
    ret += '\n</pre>\n'
    return ret


<mask token>

<mask token>


@app.route('/')
def hello_world():
    ret = '<pre>Hello %s' % app_name
    if container_id:
        ret += '\nRunning inside container %s' % container_id
    os_environment_json = json.dumps(dict(os.environ), sort_keys=True,
        indent=4, separators=(',', ':'))
    ret += '\nEnvironment dump:\n%s' % os_environment_json
    ret += '\n</pre>\n'
    return ret


if __name__ == '__main__':
    app.run(debug=True, port=8069, host='0.0.0.0')

<mask token>
app = Flask(__name__)
app_name = os.environ.get('APP_NAME', 'World')
container_id = os.environ.get('CONTAINER_ID')


@app.route('/')
def hello_world():
    ret = '<pre>Hello %s' % app_name
    if container_id:
        ret += '\nRunning inside container %s' % container_id
    os_environment_json = json.dumps(dict(os.environ), sort_keys=True,
        indent=4, separators=(',', ':'))
    ret += '\nEnvironment dump:\n%s' % os_environment_json
    ret += '\n</pre>\n'
    return ret


if __name__ == '__main__':
    app.run(debug=True, port=8069, host='0.0.0.0')

import json
import os
from flask import Flask
app = Flask(__name__)
app_name = os.environ.get('APP_NAME', 'World')
container_id = os.environ.get('CONTAINER_ID')


@app.route('/')
def hello_world():
    ret = '<pre>Hello %s' % app_name
    if container_id:
        ret += '\nRunning inside container %s' % container_id
    os_environment_json = json.dumps(dict(os.environ), sort_keys=True,
        indent=4, separators=(',', ':'))
    ret += '\nEnvironment dump:\n%s' % os_environment_json
    ret += '\n</pre>\n'
    return ret


if __name__ == '__main__':
    app.run(debug=True, port=8069, host='0.0.0.0')

# -*- coding: utf-8 -*-
import json
import os

from flask import Flask

app = Flask(__name__)

app_name = os.environ.get('APP_NAME', 'World')
container_id = os.environ.get('CONTAINER_ID')


@app.route('/')
def hello_world():
    ret = '<pre>Hello %s' % app_name
    if container_id:
        ret += '\nRunning inside container %s' % container_id
    os_environment_json = json.dumps(
        dict(os.environ),
        sort_keys=True,
        indent=4,
        separators=(',', ':'),
    )
    ret += '\nEnvironment dump:\n%s' % os_environment_json
    ret += '\n</pre>\n'
    return ret


if __name__ == '__main__':
    app.run(
        debug=True,
        port=8069,
        host='0.0.0.0',
    )
