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
sed -i "s/tag: .* # ${i} tag managed by github actions$/tag: pr-${{ github.event.number }} # ${i} tag managed by github actions/" helm-quarry/values.yaml
Copy file name to clipboardExpand all lines: README.md
+60-24Lines changed: 60 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@ queries against Wikipedia and sister projects databases.
4
4
5
5
## Setting up a local dev environment ##
6
6
7
+
# docker-compose
7
8
Quarry uses [Docker](https://docs.docker.com/engine/install/) to set up a local
8
9
environment. You can set it up by:
9
10
@@ -18,43 +19,50 @@ will imediatelly be taken into account.
18
19
A worker node is also created to execute your queries in the background (uses the
19
20
same image). Finally, redis and two database instances are also started.
20
21
21
-
One database is your quarry database the other is a wikireplica-like database
22
-
named `mywiki`. This (or `mywiki_p`) is the correct thing to enter in the
23
-
database field on all local test queries.
24
-
25
-
In your local environment, you can query Quarry internal db itself. Use then
26
-
"quarry" as database name.
27
-
28
22
To stop, run `docker-compose stop` or hit CTRL-C on the terminal your docker-compose
29
23
is running in. After that, to start with code changes, you'll want to `docker-compose down`
30
24
to clean up. Also, this creates a docker volume where sqlite versions of query
31
25
results are found. That will not be cleaned up unless you run `docker-compose down -v`
32
26
33
27
28
+
29
+
# minikube
30
+
It is possible to run a quarry system inside [minikube](https://minikube.sigs.k8s.io/docs/)!
31
+
At this time, you need to set it up with a cluster version before 1.22, most likely.
32
+
33
+
First build the containers:
34
+
```
35
+
eval $(minikube docker-env)
36
+
docker build . -t quarry:01
37
+
cd docker-replica/
38
+
docker build . -t mywiki:01
39
+
```
40
+
41
+
You will need to install minikube (tested on minikube 1.23) and [helm](https://helm.sh) and kubectl on your system. When you are confident those are working, start minikube with:
0 commit comments