Skip to content

Commit

Permalink
Alpine 3.20.0, fr24feed 1.0.48-0
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis14e committed May 23, 2024
1 parent fdfda54 commit 83dce1f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]
### Changed
- Update Alpine from 3.14 to 3.17
- Update fr24feed to 1.0.34-0
- Check fr24feed md5sum on image build
- Update Alpine from 3.14 to 3.20
- Update fr24feed to 1.0.48-0
- Check fr24feed sha1sum on image build

## [1.0.0] - 2021-11-24
### Changed
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Builder
FROM alpine:3.18.5 AS builder
FROM alpine:3.20.0 AS builder

# Workdir
WORKDIR /app
Expand All @@ -13,10 +13,10 @@ RUN chmod +x /tmp/dl-fr24feed.sh && \


# Release
FROM alpine:3.18.5 AS release
FROM alpine:3.20.0 AS release

# Packages
RUN apk add --no-cache bash sed libc6-compat libstdc++6
RUN apk add --no-cache bash sed libstdc++

# Workdir
WORKDIR /usr/lib/fr24
Expand Down
22 changes: 11 additions & 11 deletions dl-fr24feed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

case `uname -m` in
x86_64)
archive_url="https://repo-feed.flightradar24.com/linux_x86_64_binaries/fr24feed_1.0.34-0_amd64.tgz"
archive_md5="9a407411846eaf104946dac1355c723d"
archive_url="https://repo-feed.flightradar24.com/linux_binaries/fr24feed_1.0.48-0_amd64.tgz"
archive_sha1="3f5db150127d786b80b25b4eecd7aaf1c4d7e070"
;;

i386|i686)
archive_url="https://repo-feed.flightradar24.com/linux_x86_binaries/fr24feed_1.0.34-0_i386.tgz"
archive_md5="68f74f624ec60d63016df554682aeb8e"
archive_url="https://repo-feed.flightradar24.com/linux_binaries/fr24feed_1.0.48-0_i386.tgz"
archive_sha1="87ac244a0adc20c3c8f387275655c519360f0c63"
;;

armv6l|armv7l|aarch64)
archive_url="https://repo-feed.flightradar24.com/rpi_binaries/fr24feed_1.0.34-0_armhf.tgz"
archive_md5="08dd87fca7eeede316932dbacc22a417"
archive_url="https://repo-feed.flightradar24.com/rpi_binaries/fr24feed_1.0.48-0_arm64.tgz"
archive_sha1="7f41d7ed1ad157939c7dbf6f049093deba8b0763"
;;

*)
Expand All @@ -29,15 +29,15 @@ then
exit 1
fi

# Check md5
calculated_md5=$(md5sum /tmp/fr24feed.tar.gz | cut -d " " -f1)
if [ "$archive_md5" != "$calculated_md5" ]
# Check sha1
calculated_sha1=$(sha1sum /tmp/fr24feed.tar.gz | cut -d " " -f1)
if [ "$archive_sha1" != "$calculated_sha1" ]
then
>&2 echo "Verification failed ($archive_md5 != $calculated_md5)"
>&2 echo "Verification failed ($archive_sha1 != $calculated_sha1)"
exit 1
fi

echo "Verification successful ($archive_md5 == $calculated_md5)"
echo "Verification successful ($archive_sha1 == $calculated_sha1)"

# Extract
tar -xvzf /tmp/fr24feed.tar.gz --strip 1 -C /app
Expand Down

0 comments on commit 83dce1f

Please sign in to comment.