personal/radex/demo: +bruh

Change-Id: Ie0ed25308284f9a9dea59c456bce77968f59524f
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1569
changes/69/1569/3
radex 2023-08-12 15:27:32 +02:00
parent 5e475370be
commit e632263635
4 changed files with 33 additions and 2 deletions

View File

@ -0,0 +1,2 @@
FROM nginxinc/nginx-unprivileged:latest
COPY ./index.html /usr/share/nginx/html/index.html

View File

@ -1,3 +1,22 @@
build:
```
docker build -t registry.k0.hswaw.net/radex/bruh:VERSION --platform linux/amd64 personal/radex/demo
```
check locally:
```
docker run -it --rm -d -p 8080:8080 --name web registry.k0.hswaw.net/radex/bruh:VERSION
docker stop web
```
push image:
```
docker push registry.k0.hswaw.net/radex/bruh:VERSION
# if needed, authenticate via https://registry.k0.hswaw.net
# update cfg.image in prod.jsonnet
```
deploy:
```
prodaccess
# if broken, check $PATH and/or run

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en"></html>
<h1>bruh</h1>
<marquee>bruh bruh bruh bruh bruh bruh bruh bruh bruh bruh bruh bruh bruh bruh</marquee>
<marquee>bruh bruh bruh bruh bruh bruh bruh bruh bruh bruh bruh bruh bruh bruh</marquee>
<marquee>bruh bruh bruh bruh bruh bruh bruh bruh bruh bruh bruh bruh bruh bruh</marquee>
<marquee>bruh bruh bruh bruh bruh bruh bruh bruh bruh bruh bruh bruh bruh bruh</marquee>
<style>
marquee { color: pink }
</style>

View File

@ -6,7 +6,7 @@ local kube = import "../../../kube/kube.libsonnet";
cfg:: {
name: "demo",
image: "crccheck/hello-world",
image: "registry.k0.hswaw.net/radex/bruh:v3",
domain: "demo.hs.radex.io",
},
@ -25,7 +25,7 @@ local kube = import "../../../kube/kube.libsonnet";
limits: { cpu: "1", memory: "256M" },
},
ports_: {
http: { containerPort: 8000 },
http: { containerPort: 8080 },
},
},
},