Skip to content
Snippets Groups Projects
Commit 2d552299 authored by Michael Loipführer's avatar Michael Loipführer
Browse files

script, www files

parent 07b1a6d4
No related branches found
No related tags found
No related merge requests found
...@@ -91,7 +91,8 @@ def create_container(dry_run, config_file, name): ...@@ -91,7 +91,8 @@ def create_container(dry_run, config_file, name):
# place configuration files # place configuration files
context = { context = {
'name': name, '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: for cfg in template_files_host:
template = env.get_template(cfg.source) template = env.get_template(cfg.source)
...@@ -107,11 +108,6 @@ def create_container(dry_run, config_file, name): ...@@ -107,11 +108,6 @@ def create_container(dry_run, config_file, name):
if not dry_run: if not dry_run:
run(['debootstrap', FLAVOUR, machine_path, DEBIAN_MIRROR], capture_output=True, check=True) 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') click.echo(f'Bootstrapping container')
if not dry_run: if not dry_run:
# copy and run bootstrap shell script # copy and run bootstrap shell script
......
<!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
.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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment