-
-
Notifications
You must be signed in to change notification settings - Fork 37
Integrate zimfarm dev setup #1027
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
Open
elfkuzco
wants to merge
16
commits into
main
Choose a base branch
from
pass-offliner-definition-version
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
1993b08
pass offliner definition version while creating tasks
elfkuzco fae7176
document compose setup
elfkuzco de7afb9
remove keys
elfkuzco fc088ff
add version in zimfarm test params
elfkuzco 001366e
add definition version in example credentials
elfkuzco 812f745
update definition version in examples
elfkuzco 9b97249
use minio bucket to receive files/artifacts/logs
elfkuzco 55f06fc
update README and worker configuration
elfkuzco 45bf765
update worker resources in compose environment
elfkuzco 20f1f6d
Minor tweaks
audiodude a3b3b35
Mention that jq is required
audiodude 6a514da
Change shebang lines to be portable, for macOS
audiodude 53c3c0e
Portable head command
audiodude 466e2e9
Add WP1 api ("web") to dev docker compose graph. Also provide separat…
audiodude 5277375
update zimfarm-api startup command
elfkuzco b1eb250
fetch offliner definitions from farm.openzim.org
elfkuzco File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,3 +16,9 @@ cookies.txt | |
|
|
||
| # Don't commit logs | ||
| log/** | ||
|
|
||
|
|
||
| # Don't commit SSH keys | ||
| id_ed25519 | ||
| id_rsa | ||
| *.pub | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,24 @@ | ||
| #!/bin/sh | ||
| #!/bin/bash | ||
|
|
||
| MINIO_ALIAS="dev_minio" | ||
| MINIO_URL="http://minio:9000" | ||
| MINIO_USER="minio_key" | ||
| MINIO_PASSWORD="minio_secret" | ||
| BUCKET_NAME="org-kiwix-dev-wp1" | ||
| BUCKETS=("org-kiwix-dev-wp1" "org-kiwix-dev-artifacts" "org-kiwix-dev-logs" "org-kiwix-dev-zims" "org-kiwix-dev-cache") | ||
|
|
||
| # Wait for MinIO | ||
| echo "Waiting for MinIO to be ready..." | ||
| for i in $(seq 1 30); do | ||
| # Set up MinIO alias if it's ready | ||
| /usr/bin/mc alias set $MINIO_ALIAS $MINIO_URL $MINIO_USER $MINIO_PASSWORD && echo "MinIO is ready!" && break | ||
| sleep 2 | ||
| [ $i -eq 30 ] && { echo "ERROR: MinIO timeout"; exit 1; } | ||
| [ "$i" -eq 30 ] && { echo "ERROR: MinIO timeout"; exit 1; } | ||
| done | ||
|
|
||
| # Setup bucket | ||
| /usr/bin/mc mb $MINIO_ALIAS/$BUCKET_NAME --ignore-existing # Create bucket if it doesn't exist | ||
| /usr/bin/mc anonymous set public $MINIO_ALIAS/$BUCKET_NAME # Set bucket to public | ||
| # Setup buckets | ||
| for bucket in "${BUCKETS[@]}"; do | ||
| echo "Setting up bucket: $bucket" | ||
| /usr/bin/mc mb "$MINIO_ALIAS/$bucket" --ignore-existing # Create bucket if it doesn't exist | ||
| /usr/bin/mc anonymous set public "$MINIO_ALIAS/$bucket" # Set bucket to public | ||
| done | ||
| echo "MinIO setup complete" |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.