Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisBellew authored Jun 1, 2024
1 parent 0d7b626 commit bacfe87
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions packaging/all-in-one/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,22 @@ FROM cbellew/pg-ferret-slim:latest

WORKDIR /app

RUN ARCH=$(uname -m) && \
if [ "$ARCH" = "x86_64" ]; then \
TEMPO_ARCH="amd64"; \
elif [ "$ARCH" = "aarch64" ]; then \
TEMPO_ARCH="arm64"; \
else \
echo "Unsupported architecture: $ARCH"; exit 1; \
fi && \
curl -L -o tempo_2.0.0_linux_$TEMPO_ARCH.deb https://github.com/grafana/tempo/releases/download/v2.0.0/tempo_2.0.0_linux_$TEMPO_ARCH.deb

# Install Tempo and Grafana
RUN apt-get update \
&& apt-get install -y software-properties-common curl \
&& add-apt-repository "deb https://packages.grafana.com/oss/deb stable main" \
&& curl -s https://packages.grafana.com/gpg.key | apt-key add - \
&& apt-get update \
&& apt-get install -y grafana \
&& ARCH=$(uname -m) && \
if [ "$ARCH" = "x86_64" ]; then \
TEMPO_ARCH="amd64"; \
elif [ "$ARCH" = "aarch64" ]; then \
TEMPO_ARCH="arm64"; \
else \
echo "Unsupported architecture: $ARCH"; exit 1; \
fi && \
curl -L -o tempo_2.0.0_linux_$TEMPO_ARCH.deb https://github.com/grafana/tempo/releases/download/v2.0.0/tempo_2.0.0_linux_$TEMPO_ARCH.deb \
&& dpkg -i tempo_2.0.0_linux_*.deb \
&& rm tempo_2.0.0_linux_*.deb \
&& apt-get install -y grafana \
Expand Down

0 comments on commit bacfe87

Please sign in to comment.