Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PE-4701 use spectro alpine instead of offical one #259

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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