When trying to use docker-compose on a Raspberry Pi Zero it fails due not having a supported image.
Output of trying to run:
pi@raspberrypi:~/standard-notes/syncing-server $ docker-compose up -d
Building app
Step 1/15 : FROM ruby:2.6.5-alpine
---> 508bc7d82c5a
Step 2/15 : ARG optimize_for_raspberry_pi
---> Using cache
---> e1a4bfae4e63
Step 3/15 : ARG UID=999
---> Using cache
---> de77c421c504
Step 4/15 : ARG GID=999
---> Using cache
---> 869b2f793007
Step 5/15 : RUN addgroup -S snotes -g $GID && adduser -D -S snotes -G snotes -u $UID
---> [Warning] The requested image's platform (linux/arm) does not match the detected host platform (linux/arm/v6) and no specific platform was requested
---> Running in 0eb33312b272
ERROR: Service 'app' failed to build: The command '/bin/sh -c addgroup -S snotes -g $GID && adduser -D -S snotes -G snotes -u $UID' returned a non-zero code: 139
docker-compose.yml:
version: '3'
services:
app:
build: .
depends_on:
- db
command: bash -c "bundle exec rails db:migrate && bundle exec rails server -b 0.0.0.0"
env_file: .env
restart: unless-stopped
ports:
- ${EXPOSED_PORT}:3000
db:
image: beercan1989/arm-mysql:latest
environment:
MYSQL_DATABASE: '${DB_DATABASE}'
MYSQL_USER: '${DB_USERNAME}'
MYSQL_PASSWORD: '${DB_PASSWORD}'
MYSQL_ROOT_PASSWORD: '${DB_ROOT_PASSWORD}'
expose:
- '3306'
restart: always
volumes:
- std_notes_db:/var/lib/mysql
volumes:
std_notes_db:
.env:
EXPOSED_PORT=3000
RAILS_ENV=production
RAILS_LOG_TO_STDOUT=false
DB_PORT=3306
DB_HOST=127.0.0.1
DB_DATABASE=standard_notes_db
DB_USERNAME=std_notes_user
DB_PASSWORD=verysecurepassword
DB_ROOT_PASSWORD=verysecurepassword
DB_POOL_SIZE=30
DB_WAIT_TIMEOUT=180
SECRET_KEY_BASE=79b153d06d022ae529d2d426aae56c0805916b60a641a120cf4ac9645f33af64
DATADOG_ENABLED=false
Happy to perform any tests, or if there's no plans for armv6 image that's okay as well.
When trying to use docker-compose on a Raspberry Pi Zero it fails due not having a supported image.
Output of trying to run:
pi@raspberrypi:~/standard-notes/syncing-server $ docker-compose up -d
Building app
Step 1/15 : FROM ruby:2.6.5-alpine
---> 508bc7d82c5a
Step 2/15 : ARG optimize_for_raspberry_pi
---> Using cache
---> e1a4bfae4e63
Step 3/15 : ARG UID=999
---> Using cache
---> de77c421c504
Step 4/15 : ARG GID=999
---> Using cache
---> 869b2f793007
Step 5/15 : RUN addgroup -S snotes -g $GID && adduser -D -S snotes -G snotes -u $UID
---> [Warning] The requested image's platform (linux/arm) does not match the detected host platform (linux/arm/v6) and no specific platform was requested
---> Running in 0eb33312b272
ERROR: Service 'app' failed to build: The command '/bin/sh -c addgroup -S snotes -g $GID && adduser -D -S snotes -G snotes -u $UID' returned a non-zero code: 139
docker-compose.yml:
version: '3'
services:
app:
build: .
depends_on:
- db
command: bash -c "bundle exec rails db:migrate && bundle exec rails server -b 0.0.0.0"
env_file: .env
restart: unless-stopped
ports:
- ${EXPOSED_PORT}:3000
db:
image: beercan1989/arm-mysql:latest
environment:
MYSQL_DATABASE: '${DB_DATABASE}'
MYSQL_USER: '${DB_USERNAME}'
MYSQL_PASSWORD: '${DB_PASSWORD}'
MYSQL_ROOT_PASSWORD: '${DB_ROOT_PASSWORD}'
expose:
- '3306'
restart: always
volumes:
- std_notes_db:/var/lib/mysql
volumes:
std_notes_db:
.env:
EXPOSED_PORT=3000
RAILS_ENV=production
RAILS_LOG_TO_STDOUT=false
DB_PORT=3306
DB_HOST=127.0.0.1
DB_DATABASE=standard_notes_db
DB_USERNAME=std_notes_user
DB_PASSWORD=verysecurepassword
DB_ROOT_PASSWORD=verysecurepassword
DB_POOL_SIZE=30
DB_WAIT_TIMEOUT=180
SECRET_KEY_BASE=79b153d06d022ae529d2d426aae56c0805916b60a641a120cf4ac9645f33af64
DATADOG_ENABLED=false
Happy to perform any tests, or if there's no plans for armv6 image that's okay as well.