-
Notifications
You must be signed in to change notification settings - Fork 86
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
Showing
7 changed files
with
392 additions
and
81 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
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,26 @@ | ||
FROM ubuntu:22.04 | ||
|
||
ENV CSV_DIR /csv | ||
ENV SERIALIZED_DIR /serialized | ||
|
||
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --no-install-recommends apt-utils | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install python3-dev python3-pip python-is-python3 cmake nodejs jq curl apt-transport-https gnupg sudo git | ||
RUN pip3 install requests psutil | ||
|
||
RUN mkdir -p $CSV_DIR $SERIALIZED_DIR | ||
|
||
RUN useradd --create-home runner | ||
RUN chown -R runner:runner $CSV_DIR $SERIALIZED_DIR | ||
|
||
USER runner | ||
RUN mkdir /home/runner/actions-runner | ||
WORKDIR /home/runner/actions-runner | ||
|
||
RUN curl -o actions-runner-linux-x64-2.298.2.tar.gz -L https://github.com/actions/runner/releases/download/v2.298.2/actions-runner-linux-x64-2.298.2.tar.gz | ||
RUN echo "0bfd792196ce0ec6f1c65d2a9ad00215b2926ef2c416b8d97615265194477117 actions-runner-linux-x64-2.298.2.tar.gz" | shasum -a 256 | ||
RUN tar xzf ./actions-runner-linux-x64-2.298.2.tar.gz | ||
|
||
COPY --chown=runner:runner start.sh start.sh | ||
RUN chmod +x start.sh | ||
|
||
ENTRYPOINT ["./start.sh"] |
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,19 @@ | ||
## Build | ||
|
||
``` | ||
docker build -t kuzu-self-hosted-benchmark-runner . | ||
``` | ||
|
||
## Start Container | ||
|
||
``` | ||
docker run --name self-hosted-benchmark-runner-<X> --detach --restart=always\ | ||
-e GITHUB_ACCESS_TOKEN=<YOUR_GITHUB_ACCESS_TOKEN>\ | ||
-e MACHINE_NAME=<NAME_OF_THE_PHYSICAL_MACHINE>\ | ||
-e JWT_TOKEN=<YOUR_JWT_TOKEN>\ | ||
-e BENCHMARK_SERVER_URL=http://<YOUR_SERVER_ADDRESS>/api/post_results\ | ||
-v <PATH_TO_RAW_CSV_FILES>:/csv\ | ||
-v <PATH_TO_SERIALIZED_DATASET>:/serialized\ | ||
--memory=<MEMORY_LIMIT> --cpuset-cpus=<RANGE_OF_CPU_CORES>\ | ||
kuzu-self-hosted-benchmark-runner | ||
``` |
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
Oops, something went wrong.