You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fetch more jobs messages, add diagnostics for job board startup (#435)
* Lots more details around ops and debugging production
* Extend message fetch to 90 days
* Don't limit how many messages get fetched
* Debug logging, why aren't we getting as many HIRING posts as expected
Also it appears the FORHIRE posts aren't getting cleaned up as intended
Copy file name to clipboardExpand all lines: README.md
+72-21Lines changed: 72 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,8 +12,8 @@ See [the contributing guide](./CONTRIBUTING.md) for specific instructions.
12
12
13
13
You must have a working `.env` file that enables you to run the bot locally. With the values in `.env`, create a `reactibot-env` secret in your local minikube cluster. Everything must be provided a value, but it's okay if some of them are just random strings.
14
14
15
-
```sh
16
-
kubectl create secret generic reactibot-env \
15
+
```bash
16
+
$ kubectl create secret generic reactibot-env \
17
17
--from-literal=DISCORD_HASH= \
18
18
--from-literal=DISCORD_PUBLIC_KEY= \
19
19
--from-literal=DISCORD_APP_ID= \
@@ -31,29 +31,29 @@ Set up kubectl and minikube locally. It's kinda hard.
31
31
32
32
Start up a local Docker image registry.
33
33
34
-
```sh
35
-
docker run -d -p 5000:5000 --name registry registry:2.7
34
+
```bash
35
+
$ docker run -d -p 5000:5000 --name registry registry:2.7
36
36
```
37
37
38
38
`-d` means this will run in "detached mode", so it will exit without logs after pulling required images and starting. You can view logs for it with `docker logs -f registry`.
39
39
40
40
Create a file, `k8s-context`, in the project root, alongside the Dockerfile, with an IMAGE variable for kubectl to use.
41
41
42
-
```sh
43
-
echo IMAGE=reactibot:latest > k8s-context
42
+
```bash
43
+
$ echo IMAGE=reactibot:latest > k8s-context
44
44
```
45
45
46
46
Run a docker build and tag it. We need to retrieve the image ID of the build we run, which complicates the command.
If it doesn't deploy correctly (e.g. `kubectl get pods` shows a status other than success), you can debug it with `kubectl describe pod reactibot-deployment`
@@ -64,28 +64,79 @@ I actually couldn't get a local registry working so I fell back on using ghcr.io
64
64
65
65
[Create a Personal Access Token (Classic)](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic) and log in to ghcr.io. Use the PAT(C) as your password.
66
66
67
-
```sh
68
-
docker login ghcr.io
67
+
```bash
68
+
$ docker login ghcr.io
69
69
```
70
70
71
71
Create a file, `k8s-context`, in the project root, alongside the Dockerfile, with an IMAGE variable for kubectl to use.
If it doesn't deploy correctly (e.g. `kubectl get pods` shows a status other than success), you can debug it with `kubectl describe pod reactibot-deployment`
0 commit comments