diff --git a/dockerdebug/templates/base.html b/dockerdebug/templates/base.html new file mode 100644 index 0000000..c1fa1d4 --- /dev/null +++ b/dockerdebug/templates/base.html @@ -0,0 +1,14 @@ + + + + LocalStack Docker Debug + + + + + + {% block content %} + {% endblock content %} + + + diff --git a/dockerdebug/templates/index.html b/dockerdebug/templates/index.html new file mode 100644 index 0000000..c10d5b6 --- /dev/null +++ b/dockerdebug/templates/index.html @@ -0,0 +1,4 @@ +{% extends "base.html" %} +{% block content %} +

Hello world

+{% endblock content %} diff --git a/dockerdebug/ui.py b/dockerdebug/ui.py new file mode 100644 index 0000000..8a31822 --- /dev/null +++ b/dockerdebug/ui.py @@ -0,0 +1,8 @@ +from flask import Flask, render_template + +app = Flask(__name__) + + +@app.route("/") +def index(): + return render_template("index.html") diff --git a/setup.cfg b/setup.cfg index 91973a2..3468adf 100644 --- a/setup.cfg +++ b/setup.cfg @@ -24,6 +24,7 @@ install_requires = requests>=2.31.0,<2.32.0 click>=8.1.6,<8.2.0 graphviz>=0.20.1,<0.21.0 + flask>=2.2.5,<2.3.0 [options.extras_require] # required to actually run localstack on the host diff --git a/shell.nix b/shell.nix index 0669ddc..d556260 100644 --- a/shell.nix +++ b/shell.nix @@ -6,15 +6,16 @@ mkShell { dive act (python311.withPackages (ps: with ps; [ - dnspython - dnslib - ipython - go awscli2 - docker - pudb click + dnslib + dnspython + docker + flask + go graphviz + ipython + pudb pytest ])) watchexec