-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #923 from openzim/upgrade_watcher
Upgrade watcher dependencies
- Loading branch information
Showing
4 changed files
with
43 additions
and
28 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Contributing | ||
|
||
In order to test this component, you need: | ||
- a test Zimfarm instance with a username + password | ||
- a test S3 bucket (compliance must NOT be activated on this bucket) | ||
- credentials to access this bucket (keyId and secretAccessKey suggested below) | ||
- Docker | ||
|
||
Rebuild the Docker image: | ||
|
||
``` | ||
docker build -t local-zf-watcher . | ||
``` | ||
|
||
Export the secret `S3_URL` as environment variable. Note that the S3 URL starts with `https`. | ||
|
||
|
||
On Bash/Zsh shells (replace `<your_s3_host_name>`, `<your_key_id>`, `<your_secret_access_key>` and `<your_bucket>` with proper values): | ||
|
||
``` | ||
export S3_URL="https://<your_s3_host_name>/?keyId=<your_key_id>&secretAccessKey=<your_secret_access_key>&bucketName=<your_bucket>" | ||
``` | ||
|
||
Run a test (here my zimfarm is running in docker on a container `backend` in network `zimfarm_default`, adapt command to your local setup): | ||
``` | ||
docker run -it --rm -e ZIMFARM_API_URL=http://backend:8000/v1 -e S3_URL=$S3_URL --network zimfarm_default local-zf-watcher watcher --zimfarm-username admin --zimfarm-password admin --only tezos.stackexchange.com --runonce | ||
``` |
This file contains 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 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,6 +1,6 @@ | ||
pif==0.8.2 | ||
requests>=2.26,<3.0 | ||
humanfriendly>=9.2,<10.0 | ||
PyJWT>=2.4.0,<3.0 | ||
kiwixstorage>=0.8.2,<0.9 | ||
xml-to-dict>=0.1.6,<0.2 | ||
requests==2.31.0 | ||
humanfriendly==10.0 | ||
PyJWT==2.8.0 | ||
kiwixstorage==0.8.3 | ||
xml-to-dict==0.1.6 |
This file contains 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