-
Notifications
You must be signed in to change notification settings - Fork 0
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
5b057ea
commit be7ff1d
Showing
12 changed files
with
231 additions
and
66 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 |
---|---|---|
@@ -1,14 +1,10 @@ | ||
FROM debian:trixie-slim | ||
ARG WUNDER_URL="https://github.com/wundergraph/cosmo/releases/download/router%400.136.1/[email protected]" | ||
ARG APOLLO_URL="https://github.com/apollographql/router/releases/download/v1.57.1/router-v1.57.1-x86_64-unknown-linux-gnu.tar.gz" | ||
ARG GRAFBASE_URL="https://github.com/grafbase/grafbase/releases/download/gateway-0.17.0/grafbase-gateway-x86_64-unknown-linux-musl" | ||
ARG TAILCALL_URL="https://github.com/tailcallhq/tailcall/releases/download/v0.124.0/tailcall-x86_64-unknown-linux-gnu" | ||
|
||
WORKDIR /usr/src/benchmarks | ||
|
||
# Update, upgrade, and install dependencies | ||
RUN apt update && apt upgrade -y && \ | ||
apt install -y hey curl gcc musl-dev build-essential nginx=1.26.0-3+b1 wget && \ | ||
apt install -y hey lsof curl gcc musl-dev build-essential nginx=1.26.0-3+b1 wget nodejs npm && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Setup Rust | ||
|
@@ -25,21 +21,24 @@ RUN cargo build --release | |
# Configure NGINX | ||
COPY nginx/nginx.conf /etc/nginx/sites-available/default | ||
|
||
# Setup Wundergraph | ||
RUN wget -O wunder.tar.gz "$WUNDER_URL" && \ | ||
tar -xvf wunder.tar.gz && rm wunder.tar.gz && \ | ||
mv router wunder && chmod +x wunder | ||
# Install WunderGraph CLI and Router | ||
RUN npm install -g wgc@latest && \ | ||
wgc router download-binary -o . && \ | ||
mv router wunder && \ | ||
chmod +x wunder | ||
|
||
# Install Apollo Router | ||
RUN curl -sSL https://router.apollo.dev/download/nix/latest | sh && \ | ||
mv router apollo && chmod +x apollo | ||
|
||
# Setup Apollo | ||
RUN wget -O apollo.tar.gz "$APOLLO_URL" && \ | ||
tar -xvf apollo.tar.gz && rm apollo.tar.gz && \ | ||
mv dist/router apollo && chmod +x apollo | ||
|
||
# Setup Grafbase | ||
RUN wget -O grafbase "$GRAFBASE_URL" && chmod +x grafbase | ||
RUN curl -fsSL https://grafbase.com/downloads/gateway | bash && \ | ||
mv ~/.grafbase/bin/grafbase-gateway grafbase && chmod +x grafbase | ||
|
||
|
||
# Setup Tailcall | ||
RUN wget -O tailcall "$TAILCALL_URL" && chmod +x tailcall | ||
RUN npm install -g @tailcallhq/tailcall | ||
|
||
# Copy Configurations and Scripts | ||
COPY configurations/* . | ||
|
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
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
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
Large diffs are not rendered by default.
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
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.