add key.wf
This commit is contained in:
parent
1c7c8fcad1
commit
585e2a8809
6 changed files with 54 additions and 29 deletions
|
|
@ -8,7 +8,6 @@ if [ $# -lt 1 ]; then
|
|||
fi
|
||||
container=$1; shift
|
||||
|
||||
name=harbor.k8s.ungleich.ch/ungleich-public/${container}
|
||||
|
||||
push=""
|
||||
if [ $# -ge 1 ]; then
|
||||
|
|
@ -16,13 +15,18 @@ if [ $# -ge 1 ]; then
|
|||
fi
|
||||
|
||||
cd $container
|
||||
for df in Dockerfile_*; do
|
||||
version=$(echo $df | cut -d_ -f 2)
|
||||
tag=${name}:${version}
|
||||
for upstream in harbor.k8s.ungleich.ch/ungleich-public docker.io/ungleich;
|
||||
do
|
||||
name=${upstream}/${container}
|
||||
|
||||
docker build -t ${tag} -f ${df} .
|
||||
for df in Dockerfile_*; do
|
||||
version=$(echo $df | cut -d_ -f 2)
|
||||
tag=${name}:${version}
|
||||
|
||||
if [ "$push" ]; then
|
||||
docker push ${tag}
|
||||
fi
|
||||
docker build -t ${tag} -f ${df} .
|
||||
|
||||
if [ "$push" ]; then
|
||||
docker push ${tag}
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
|
|
|||
21
build.sh
21
build.sh
|
|
@ -1,21 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -exu
|
||||
|
||||
if [ $# -lt 2 ]; then
|
||||
echo "$0 <container> <version> [push]" >&2
|
||||
exit 1
|
||||
fi
|
||||
container=$1; shift
|
||||
version=$1; shift
|
||||
|
||||
name=harbor.k8s.ungleich.ch/ungleich-public/${container}
|
||||
|
||||
tag=${name}:${version}
|
||||
|
||||
cd $container
|
||||
docker build -t ${tag} .
|
||||
|
||||
if [ "$#" -ge 1 ]; then
|
||||
docker push ${tag}
|
||||
fi
|
||||
3
key-wf/Dockerfile_20260325-1
Normal file
3
key-wf/Dockerfile_20260325-1
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
FROM nginx:1-alpine3.23
|
||||
|
||||
COPY keys/* /usr/share/nginx/html
|
||||
29
key-wf/README.md
Normal file
29
key-wf/README.md
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
## key.wf
|
||||
|
||||
This is a service for providing access to your public ssh key.
|
||||
|
||||
## How to add your key
|
||||
|
||||
Place your key in the keys/ directory, create a pull request on
|
||||
https://code.ungleich.ch/ungleich-public/ungleich-containers.
|
||||
|
||||
## How to get your key
|
||||
|
||||
```
|
||||
curl key.wf/yourkeyname
|
||||
```
|
||||
|
||||
## How to use with ssh
|
||||
|
||||
```
|
||||
curl key.wf/yourkeyname >> ~/.ssh/authorized_keys
|
||||
```
|
||||
|
||||
## Security warning
|
||||
|
||||
This container is hosted by ungleich.ch and deployed using
|
||||
kubernetes. It means that ungleich can place whatever ungleich wants
|
||||
at any location.
|
||||
|
||||
While me, Nico Schottelius, CEO of ungleich, considers this service
|
||||
secure, you might not and you should use it with caution.
|
||||
9
key-wf/index.html
Normal file
9
key-wf/index.html
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>key.wf - ssh key distribution center</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>key.wf - ssh key distribution center</h1>
|
||||
This service provides access to public ssh keys.
|
||||
You can add your own ssh key by following the guide
|
||||
on <a href="
|
||||
1
key-wf/keys/nico
Normal file
1
key-wf/keys/nico
Normal file
|
|
@ -0,0 +1 @@
|
|||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE9P5aA5O4Vsgg5sB6Ojk+z1f5F97hvwRRd3gi+a+GGq nico-2016
|
||||
Loading…
Add table
Add a link
Reference in a new issue