Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cgwalters/rhcos-redirector
Redirector service for RHCOS/ART
https://github.com/cgwalters/rhcos-redirector
Last synced: 1 day ago
JSON representation
Redirector service for RHCOS/ART
- Host: GitHub
- URL: https://github.com/cgwalters/rhcos-redirector
- Owner: cgwalters
- License: mit
- Created: 2021-04-26T19:46:06.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-04-26T23:49:38.000Z (over 3 years ago)
- Last Synced: 2024-11-16T21:41:57.916Z (about 1 month ago)
- Language: Dockerfile
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Redirector service
This is part of https://github.com/openshift/os/issues/542
whch is part of https://github.com/openshift/os/issues/477Hopefully in the future we'll move the full release browser
into Github and run it in app.ci, but for now this tiny
service should be run by ART to backend the openshift/installer
metadata.## Origin
I took the basic config from the currently internal
https://gitlab.cee.redhat.com/coreos/release-browser
and also used as a reference the code from
https://github.com/cgwalters/os/commit/6b4cdd758300d62d3df37c436f7b626d27224fc4After some investigation, it does seem like it's the current
`nginx.conf` from the release-browser repository that's running.## Building/running
This runs a simple read-only service on port 8080 built via a `Dockerfile`.
To test locally you can e.g.:
```
$ podman build -t localhost/redirector .
$ podman run --name redirector -d -p 8080:8080 localhost/redirector
$ curl -L --head http://127.0.0.1:8080/art/storage/releases/rhcos-4.7/47.83.202012030221-0/x86_64/rhcos-47.83.202012030221-0-qemu.x86_64.qcow2.gz
...
HTTP/1.1 200 OK
...
$
```## Deploying in OpenShift
Just needs a usual BuildConfig/Service/Route etc. that `oc new-app` will make happily.