Skip to content

Commit

Permalink
fixed script
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayclifford345 committed Nov 27, 2024
1 parent 9ac4b43 commit 5048384
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions loki/logcli-tutorial/setup.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
#!/bin/sh

set -euf
# shellcheck disable=SC3040
(set -o pipefail 2> /dev/null) && set -o pipefail


sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc

ARCH="$(dpkg --print-architecture)"
VERSION_CODENAME="$(source /etc/os-release && echo "${VERSION_CODENAME}")"
readonly ARCH VERSION_CODENAME

printf 'deb [arch=%s signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu %s stable' "${ARCH}" "${VERSION_CODENAME}" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

sudo apt-get update && sudo apt-get install -y docker-compose-plugin && \
wget https://github.com/grafana/loki/releases/download/v3.3.0/logcli_3.3.0_amd64.deb && \
sudo apt-get install -f logcli_3.3.0_amd64.deb && \
sudo dpkg -i logcli_3.3.0_amd64.deb
clear && echo "Setup complete. You may now begin the tutorial."

0 comments on commit 5048384

Please sign in to comment.