Skip to content

Commit

Permalink
update installation
Browse files Browse the repository at this point in the history
  • Loading branch information
amitksingh1490 committed Nov 22, 2024
1 parent 5b057ea commit 7d2d49d
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions Dockerfile
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 curl gcc musl-dev build-essential nginx=1.26.0-3+b1 wget nodejs npm && \
rm -rf /var/lib/apt/lists/*

# Setup Rust
Expand All @@ -25,21 +21,26 @@ 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 && \
mkdir wundergraph && \
cd wundergraph && \
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/* .
Expand Down

0 comments on commit 7d2d49d

Please sign in to comment.