Skip to content

Commit

Permalink
use spectro alpine instead of offical one (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
nianyush authored Aug 21, 2024
1 parent d54f9b5 commit ef3c2c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ ARG TARGETOS
ARG TARGETARCH

# Default image repositories used in the builds.
ARG ALPINE_IMG=gcr.io/spectro-images-public/alpine:3.20.2
ARG SPECTRO_PUB_REPO=gcr.io/spectro-images-public
ARG ALPINE_IMG=$SPECTRO_PUB_REPO/alpine:3.20.2
ARG SPECTRO_LUET_REPO=gcr.io/spectro-dev-public
ARG KAIROS_BASE_IMAGE_URL=gcr.io/spectro-images-public
ARG ETCD_REPO=https://github.com/etcd-io
Expand Down
6 changes: 3 additions & 3 deletions earthly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ PE_VERSION=$(git describe --abbrev=0 --tags)
SPECTRO_PUB_REPO=gcr.io/spectro-images-public
EARTHLY_VERSION=v0.8.5
source .arg

ALPINE_IMG=$SPECTRO_PUB_REPO/alpine:3.20.2
### Verify Depencies
# Check if Docker is installed
if command -v docker >/dev/null 2>&1; then
Expand All @@ -70,7 +70,7 @@ else
echo "Docker not found. Please use the guide for your platform located https://docs.docker.com/engine/install/ to install Docker."
fi
# Check if the current user has permission to run privileged containers
if ! docker run --rm --privileged alpine sh -c 'echo "Privileged container test"' &>/dev/null; then
if ! docker run --rm --privileged $ALPINE_IMG sh -c 'echo "Privileged container test"' &>/dev/null; then
echo "Privileged containers are not allowed for the current user."
exit 1
fi
Expand All @@ -91,7 +91,7 @@ if [ "$(docker container inspect -f '{{.State.Running}}' earthly-buildkitd)" = "
docker stop earthly-buildkitd
fi
docker rmi $SPECTRO_PUB_REPO/earthly/buildkitd:$EARTHLY_VERSION 2>/dev/null
docker rmi alpine:latest
docker rmi $ALPINE_IMG

if [[ "$1" == "+uki-genkey" ]]; then
./keys.sh secure-boot/
Expand Down

0 comments on commit ef3c2c6

Please sign in to comment.