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

Pin OS release to latest known working version #63

Merged
merged 1 commit into from
May 31, 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.json
.env
3 changes: 2 additions & 1 deletion Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
ARG OS_VERSION
ARG DEVICE_TYPE=%%BALENA_MACHINE_NAME%%

FROM resin/resinos:${OS_VERSION}-${DEVICE_TYPE}
# hadolint ignore=DL3007
FROM bh.cr/balena_os/${DEVICE_TYPE}/${OS_VERSION}:latest
klutchell marked this conversation as resolved.
Show resolved Hide resolved

COPY ./entry.sh /entry.sh
COPY ./conf/systemd-watchdog.conf /etc/systemd/system.conf.d/watchdog.conf
Expand Down
8 changes: 5 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@ services:
context: .
dockerfile: Dockerfile.template
args:
OS_VERSION: ${OS_VERSION:-2.95.12_rev1}
DEVICE_TYPE: ${DEVICE_TYPE:-genericx86-64-ext}
# currently only versions below v2.114.0 are working
# see https://github.com/balena-os/balenaos-in-container/issues/60
OS_VERSION: ${OS_VERSION:-2.113.12}
DEVICE_TYPE: ${DEVICE_TYPE:-generic-amd64}
privileged: true
stop_signal: SIGRTMIN+3
stop_grace_period: 30s
volumes:
- /lib/modules:/lib/modules:ro
- ${CONFIG_JSON:-./config.json}:/var/local/config.json
- ${CONFIG_JSON:-./config.json}:/var/local/config.json:ro
- boot:/mnt/boot
- data:/mnt/data
- state:/mnt/state
Expand Down