diff --git a/lustmolch.py b/lustmolch.py index 28ad4604089c70f80a9d0ebb6f77da80f9a38aa1..679b94304ec18e0e52ecef0318609e3f516ce7ba 100755 --- a/lustmolch.py +++ b/lustmolch.py @@ -91,7 +91,8 @@ def create_container(dry_run, config_file, name): # place configuration files context = { 'name': name, - 'ssh_port': next_ssh_port(config_file, name) + 'ssh_port': next_ssh_port(config_file, name), + 'url': f'{name}.stusta.de' } for cfg in template_files_host: template = env.get_template(cfg.source) @@ -107,11 +108,6 @@ def create_container(dry_run, config_file, name): if not dry_run: run(['debootstrap', FLAVOUR, machine_path, DEBIAN_MIRROR], capture_output=True, check=True) - # start container for the first time - # click.echo(f'Starting container for the first time') - # if not dry_run: - # run(['systemd-nspawn', '-D', machine_path], check=True) - click.echo(f'Bootstrapping container') if not dry_run: # copy and run bootstrap shell script diff --git a/www/index.html b/www/index.html new file mode 100644 index 0000000000000000000000000000000000000000..3f19249e744c1df2b1dff547d21e1947494ca41f --- /dev/null +++ b/www/index.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>StuSta</title> + <link href='/home/mikonse/stusta/stustanet/lustmolch/www/style.css' rel="stylesheet"> +</head> +<body> + <div class="container"> + <div class="link-box"> + <a href="pot.stusta.de">Pot</a> + </div> + <div class="link-box"> + <a href="manhattan.stusta.de">MANHATTAN</a> + </div> + </div> +</body> +</html> \ No newline at end of file diff --git a/www/style.css b/www/style.css new file mode 100644 index 0000000000000000000000000000000000000000..8a7b209a07987d9b215cf01d65f172c3a6f18911 --- /dev/null +++ b/www/style.css @@ -0,0 +1,11 @@ +.container { + flex: 1 1 auto; +} + +.link-box { + width: 150px; + height: 150px; + align-content: center; + justify-content: center; + background-color: red; +} \ No newline at end of file