ItsEcholot / ContainerNursery

Puts Docker Containers to sleep and wakes them back up when they're needed

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Container Nursery docker image not working on ARM

kn-f opened this issue · comments

commented

Existing docker image is not working on ARM machines probably due to the fact that the image is built just for x86 machines.

As a temporary workaround I'm using this Dockerfile:

FROM node:alpine

RUN apk add --no-cache git

WORKDIR /usr/src/app
RUN git clone https://github.com/ItsEcholot/ContainerNursery.git .
RUN npm install
RUN npm run build

CMD ["node", "build/index.js"]

And this as docker-compose.yml:

services:
  containernursery:
    build:
      context: .
    image: containernursery
    container_name: containernursery
    networks:
      - proxy
    volumes:
      - '/var/run/docker.sock:/var/run/docker.sock'
      - '/home/xxxx/xxxx/config:/usr/src/app/config'
    labels:
      com.centurylinklabs.watchtower.enable: false

    restart: unless-stopped

networks:
  proxy:
    external: true

Hope this helps ARM users as the application is extremely useful on low RAM devices.

EDIT: Corrected formatting & typos

Good idea, I will look into creating an image compatible with ARM.

I built a multiarch image (docker pull ghcr.io/itsecholot/containernursery:multiarch). Could you try it and report if everything is working as expected? If so I will publish all future update with amd64 and arm64 multi-architecture support.

commented

Works like a charm! (BTW I'm on an aarch64 architecture)
I'm not going to use this image at the moment due to the issue in #37.
Once that's solved I'll switch to this image.

Glad to hear it.
arm64 and aarch64 should be the same, no?

commented

Correct :)