Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6ab4ce0
commit 623cef0
Showing
8 changed files
with
55 additions
and
18 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 |
---|---|---|
|
@@ -2,6 +2,7 @@ public_html/out | |
public_html/status | ||
*.log | ||
.pywikibot | ||
.toolskube | ||
.python_history | ||
.cache | ||
ArkivBot.err | ||
|
This file was deleted.
Oops, something went wrong.
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,18 @@ | ||
#!/bin/bash | ||
# Usage: | ||
# toolforge-jobs run bootstrap-venv --command "./bootstrap-venv.sh" --image python3.9 --wait | ||
set -euo pipefail | ||
|
||
rm -rf ENV | ||
python3 -m venv ENV | ||
|
||
. ENV/bin/activate | ||
|
||
# upgrade pip inside the venv and add support for the wheel package format | ||
pip install -U pip wheel | ||
|
||
pip install requests mwparserfromhell wikitextparser | ||
|
||
cd $HOME/pywikibot | ||
git pull | ||
pip install -e .[mwparserfromhell,mwoauth,mysql] |
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,8 @@ | ||
--- | ||
# Ref: https://wikitech.wikimedia.org/wiki/Help:Toolforge/Jobs_framework | ||
- name: arkivbot | ||
command: ./run.sh | ||
image: python3.9 | ||
schedule: "0 5 * * *" | ||
emails: onfailure | ||
|
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 @@ | ||
# This file is used by toollabs infrastructure. | ||
# This file is used by Toolforge infrastructure. | ||
# Please do not edit manually at this time. | ||
backend: gridengine | ||
distribution: debian | ||
version: 2 | ||
web: lighttpd | ||
# Sun Apr 9 19:24:41 2023 | ||
backend: kubernetes | ||
version: 4 | ||
web: php7.4 |
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,11 @@ | ||
# Toolforge webservice template | ||
# Provide default arguments for `webservice start` commands for this tool. | ||
# | ||
# Uncomment lines below and adjust as needed | ||
|
||
# Set backend cluster to run this webservice (--backend={gridengine,kubernetes}) | ||
backend: kubernetes | ||
|
||
# Runtime type | ||
# See "Supported webservice types" in `webservice --help` output for valid values. | ||
type: php7.4 |
This file was deleted.
Oops, something went wrong.