-
Notifications
You must be signed in to change notification settings - Fork 13
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
Showing
2 changed files
with
5 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
FROM --platform=linux/386 docker.io/library/alpine:3.14.3 AS ish-alpine | ||
FROM --platform=linux/386 docker.io/library/alpine:3.19.0 AS ish-alpine | ||
|
||
FROM ish-alpine | ||
LABEL ish.export=appstore-apk.tar.gz | ||
RUN mkdir /ish && touch /ish/version | ||
RUN echo 296 > /ish/apk-version | ||
RUN echo 31900 > /ish/apk-version | ||
COPY apk-motd /etc/motd |
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,14 +1,14 @@ | ||
#!/bin/bash -e | ||
cd $(dirname "$0") | ||
|
||
podman build --platform=linux/386 . | ||
docker build --platform=linux/386 . | ||
|
||
roots=(appstore-apk) | ||
mkdir -p out | ||
for root in "${roots[@]}"; do | ||
image=$(podman images --filter label=ish.export="$root.tar.gz" --quiet | head -n1) | ||
image=$(docker images --filter label=ish.export="$root.tar.gz" --quiet | head -n1) | ||
echo "exporting $root $image" | ||
podman save "$image" -o out/"$root.raw.tar" | ||
docker save "$image" -o out/"$root.raw.tar" | ||
./flatten.py out/"$root.raw.tar" | gzip -n > out/"$root.tar.gz" | ||
rm out/"$root.raw.tar" | ||
done |