forked from hswaw/hscloud
personal/radex/demo: +bruh
Change-Id: Ie0ed25308284f9a9dea59c456bce77968f59524f Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1569
This commit is contained in:
parent
5e475370be
commit
e632263635
4 changed files with 33 additions and 2 deletions
2
personal/radex/demo/Dockerfile
Normal file
2
personal/radex/demo/Dockerfile
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
FROM nginxinc/nginx-unprivileged:latest
|
||||||
|
COPY ./index.html /usr/share/nginx/html/index.html
|
|
@ -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
|
prodaccess
|
||||||
# if broken, check $PATH and/or run
|
# if broken, check $PATH and/or run
|
||||||
|
|
10
personal/radex/demo/index.html
Normal file
10
personal/radex/demo/index.html
Normal 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>
|
|
@ -6,7 +6,7 @@ local kube = import "../../../kube/kube.libsonnet";
|
||||||
|
|
||||||
cfg:: {
|
cfg:: {
|
||||||
name: "demo",
|
name: "demo",
|
||||||
image: "crccheck/hello-world",
|
image: "registry.k0.hswaw.net/radex/bruh:v3",
|
||||||
domain: "demo.hs.radex.io",
|
domain: "demo.hs.radex.io",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ local kube = import "../../../kube/kube.libsonnet";
|
||||||
limits: { cpu: "1", memory: "256M" },
|
limits: { cpu: "1", memory: "256M" },
|
||||||
},
|
},
|
||||||
ports_: {
|
ports_: {
|
||||||
http: { containerPort: 8000 },
|
http: { containerPort: 8080 },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue