-
Notifications
You must be signed in to change notification settings - Fork 528
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
6362a33
commit 7456a8f
Showing
3 changed files
with
20 additions
and
56 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 |
---|---|---|
@@ -1,25 +1,11 @@ | ||
#!/usr/bin/env sh | ||
#!/usr/bin/env bash | ||
|
||
set -euxo pipefail | ||
|
||
docker ps | ||
image="$(docker ps --filter ancestor=jrei/systemd-debian:12 --latest --format "{{.ID}}")" | ||
echo "Running on container: ${image}" | ||
# Install tempo and check it's running | ||
dpkg -i ./tempo_*_linux_amd64.deb | ||
[ "\$(systemctl is-active tempo)" = "active" ] || (echo "tempo is inactive" && exit 1) | ||
|
||
dir="." | ||
if [ -n "${CI}" ]; then | ||
dir="/drone/src" | ||
fi | ||
echo "Running on directory: ${dir}" | ||
|
||
cat <<EOF | docker exec --interactive "${image}" sh | ||
set -x | ||
# Install tempo and check it's running | ||
dpkg -i ${dir}/dist/tempo*_amd64.deb | ||
[ "\$(systemctl is-active tempo)" = "active" ] || (echo "tempo is inactive" && exit 1) | ||
# Wait for tempo to be ready. The script is cat-ed because it is passed to docker exec | ||
apt update && apt install -y curl | ||
$(cat ${dir}/tools/packaging/wait-for-ready.sh) | ||
EOF | ||
# Wait for tempo to be ready. | ||
apt update && apt install -y curl | ||
./wait-for-ready.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 |
---|---|---|
@@ -1,27 +1,13 @@ | ||
#!/usr/bin/env sh | ||
#!/usr/bin/env bash | ||
|
||
set -euxo pipefail | ||
|
||
docker ps | ||
image="$(docker ps --filter ancestor=jrei/systemd-centos:8 --latest --format "{{.ID}}")" | ||
echo "Running on container: ${image}" | ||
# Import the Grafana GPG key | ||
rpm --import https://packages.grafana.com/gpg.key | ||
|
||
dir="." | ||
if [ -n "${CI}" ]; then | ||
dir="/drone/src" | ||
fi | ||
echo "Running on directory: ${dir}" | ||
# Install tempo and check it's running | ||
rpm -i ./tempo_*_linux_amd64.rpm | ||
[ "\$(systemctl is-active tempo)" = "active" ] || (echo "tempo is inactive" && exit 1) | ||
|
||
cat <<EOF | docker exec --interactive "${image}" sh | ||
set -x | ||
# Import the Grafana GPG key | ||
rpm --import https://packages.grafana.com/gpg.key | ||
# Install tempo and check it's running | ||
rpm -i ${dir}/dist/tempo*_amd64.rpm | ||
[ "\$(systemctl is-active tempo)" = "active" ] || (echo "tempo is inactive" && exit 1) | ||
# Wait for tempo to be ready. The script is cat-ed because it is passed to docker exec | ||
$(cat ${dir}/tools/packaging/wait-for-ready.sh) | ||
EOF | ||
# Wait for tempo to be ready. | ||
./wait-for-ready.sh |