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

Raspberry Pi Docker Compose #3

Closed
mouzzampk2014-zz opened this issue Dec 28, 2019 · 18 comments
Closed

Raspberry Pi Docker Compose #3

mouzzampk2014-zz opened this issue Dec 28, 2019 · 18 comments
Labels
enhancement New feature or request

Comments

@mouzzampk2014-zz
Copy link

Hi, would be great if its possible to make Rapdberry Pi Image please? Thank you

@mynttt
Copy link
Owner

mynttt commented Dec 28, 2019

This sadly looks to be impossible right now. I've only seen Java 7/8 base images as Java 11 is not really supported on the Pi at the moment. Maybe in the future if Java 11 releases on the Pi and this tool is still relevant it would be possible.

@mouzzampk2014-zz
Copy link
Author

This sadly looks to be impossible right now. I've only seen Java 7/8 base images as Java 11 is not really supported on the Pi at the moment. Maybe in the future if Java 11 releases on the Pi and this tool is still relevant it would be possible.

Thank you so much for reply. I will run this on Ubuntu. Is it possible to make a docker compose? Thank you so much again for keeping everyone update in reddit. Much appreciated

@mynttt mynttt added the enhancement New feature or request label Dec 28, 2019
@mynttt
Copy link
Owner

mynttt commented Dec 29, 2019

I don't know much about docker, but a docker compose appears to be a way to manage multiple containers with one command. This utility only needs one container, so I don't know how a docker compose would be helpful here. Is there anything else a compose can do?

@mynttt
Copy link
Owner

mynttt commented Jan 8, 2020

Closed duo to inactivity.

@mynttt mynttt closed this as completed Jan 8, 2020
@b2un0
Copy link

b2un0 commented Feb 17, 2020

here is a working docker-compose.yml from my personal unRAID setup

version: '2.4'

services:
    pms:
        image: plexinc/pms-docker:beta
        restart: always
        container_name: plex
        hostname: plex
        network_mode: bridge
        mem_limit: 2048MB
        environment:
            TZ: Europe/Berlin
            PLEX_UID: 99
            PLEX_GID: 100
        ports:
            - 32400:32400/tcp
            - 33400:33400/tcp # Plex WebTools
        devices:
            - /dev/dri:/dev/dri
        volumes:
            - /mnt/user/appdata/plex:/config
            - /mnt/user/multimedia:/mnt/user/multimedia
            - /mnt/user/appdata/plex/transcode:/transcode

    imdb_updater:
        image: mynttt/updatetool:latest
        restart: always
        network_mode: bridge
        container_name: plex_imdb_updater
        mem_limit: 512MB
        environment:
            TZ: Europe/Berlin
            RUN_EVERY_N_HOURS: 24
            TMDB_API_KEY: XYZ
        volumes:
            - "/mnt/user/appdata/plex/Library/Application Support/Plex Media Server:/plexdata" #quoted !
            - /mnt/user/appdata/plex_imdb_updater:/config

    tautulli:
        image: tautulli/tautulli:latest
        restart: always
        container_name: tautulli
        hostname: tautulli
        network_mode: bridge
        mem_limit: 512MB
        environment:
            TZ: Europe/Berlin
            PUID: 99
            PGID: 100
        volumes:
            - /mnt/user/appdata/tautulli:/config
            - /mnt/user/appdata/plex:/plex_logs:ro

@b2un0
Copy link

b2un0 commented Feb 17, 2020

This sadly looks to be impossible right now. I've only seen Java 7/8 base images as Java 11 is not really supported on the Pi at the moment. Maybe in the future if Java 11 releases on the Pi and this tool is still relevant it would be possible.

do you really need the JDK for this Application?
your Docker Baseimage is FROM openjdk:11 but should be FROM openjdk:11-jre or better
FROM openjdk:11-jre-slim

https://hub.docker.com/_/openjdk?name=11-jre-slim&tab=tags&page=1

Then you could build a RPI 4 arm64 Image.

@mynttt
Copy link
Owner

mynttt commented Feb 17, 2020

I completly forgot about the JRE! This should definitly not depend on the JDK - supporting ARM should be as simple as changing the FROM openjdk:11 line to FROM openjdk:11-jre-slim. I'm going to test it later with a VM and see if it works. Thanks for letting me know!

@mouzzampk2014-zz
Copy link
Author

Hi, thank you so much @b2un0. Much appreciated :)

@b2un0
Copy link

b2un0 commented Feb 18, 2020

@mynttt no, you must build a arm64v8 image by yourself and push them to the docker hub.

https://docs.docker.com/docker-for-mac/multi-arch/

@mynttt
Copy link
Owner

mynttt commented Feb 18, 2020

@b2un0 I did some testing with the slim jre image today and it works perfectly. I'm going to push the changes later in the evening today and then it should support both architectures. Thanks for letting me know =)

@mouzzampk2014-zz
Copy link
Author

Hooray thank you

@mynttt
Copy link
Owner

mynttt commented Feb 19, 2020

Multiarch image is up now! Let me know if it works on your Pi.

@b2un0
Copy link

b2un0 commented Feb 19, 2020

nice! the image size is now 232MB, before 615MB 👍

@mouzzampk2014-zz
Copy link
Author

mouzzampk2014-zz commented Feb 19, 2020

Thank you guys. @b2un0 shall I use your compose with latest tag? I am running raspberry pi 3b+

imdb_updater:
    image: mynttt/updatetool:latest
    restart: always
    network_mode: bridge
    container_name: plex_imdb_updater
    mem_limit: 512MB
    environment:
        TZ: Europe/London
        RUN_EVERY_N_HOURS: 24
        TMDB_API_KEY: XYZ
    volumes:
        - "/mnt/user/appdata/plex/Library/Application Support/Plex Media Server:/plexdata"
        - /mnt/user/appdata/plex_imdb_updater:/config

@b2un0
Copy link

b2un0 commented Feb 20, 2020

@mouzzampk2014 yes, yo can use the latest tag as you can see here the tag has a linux/arm64 arch.

but you need to use a 64bit Kernel on your RPI 3b+ which is still beta/tricky, read here

Otherwise @mynttt could try to switch to a older Debian Base Image and push also a linux/arm/v7 for RPI3x86 from this: FROM openjdk:11-jre-slim-stretch

https://hub.docker.com/_/openjdk?name=11-jre-slim-stretch&tab=tags&page=1

i suggest also to build the linux/386 image.

it should lock like this

2020-02-20 at 09 19

@mynttt
Copy link
Owner

mynttt commented Feb 21, 2020

If I have time tomorrow I will look into creating a legacy tag with all these unsupported architectures. Thanks for informing me about the 11-jre-slim-stretch!

@mouzzampk2014-zz
Copy link
Author

Hi @mynttt thank you so much for that.

@mynttt
Copy link
Owner

mynttt commented Feb 22, 2020

There is now a 32bit tag that uses the older jre! Let me know if it runs without issues on your pi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants