Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update folders to healthchecks binary format v0.1 #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
FROM nginx:mainline-alpine

COPY mainline /usr/share/nginx/html/mainline/
COPY images /usr/share/nginx/html/images/
COPY healthchecks /usr/share/nginx/html/healthchecks/
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,17 @@ This is the kernel/dtb/rootfs repository which must be used along with https://g
## hosting

If you want to host locally all healthchecks, a docker is provided:
* Add your healthchecks binary to the `healthchecks/` folder
* Run docker build . -t lava-healthchecks-binary-www
* Run docker run -p 8080:80 lava-healthchecks-binary-www

## Format

* Modify healthchecks with:
This is following format v0.1
```
sed -i "s,https://github.com/montjoie/lava-healthchecks-binary/blob/master,http://$(ip route | awk '/^default/ { print $3 }'):8080," health-checks/*
lava-healthchecks-binary.git/ # root of the repository
-> /healthchecks # where to put healthcheck binary
-> /Dockerfile # Dockerfile needed for docker
-> /README.md # The file you are reading now
-> / # where to put scripts not relevant to healthcheck binary
```
* Run docker build . -t lava-healthchecks-binary-www
* Run docker run -p 8080:80 lava-healthchecks-binary-www
Loading