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

Nextcloud Docker needs bz2 installed before upgrade to 0.9.11 #623

Open
rhatguy opened this issue Dec 29, 2022 · 2 comments
Open

Nextcloud Docker needs bz2 installed before upgrade to 0.9.11 #623

rhatguy opened this issue Dec 29, 2022 · 2 comments

Comments

@rhatguy
Copy link

rhatguy commented Dec 29, 2022

Upon being notified that I 0.9.11 was released and trying to update via the Nextcloud app store I was informed I needed bz2 installed inside the nextcloud docker container to be able to upgrade. This required a few modifications from the default docker script referenced at the link below.

https://github.com/matiasdelellis/facerecognition/wiki/Docker

Mainly, I had to add libbz2-dev to the apt-get -y install command, and then use docker-php-ext-install to install bz2 support into php. Below are the two commands I added/modified.

apt-get -y install ffmpeg wget gnupg2 unzip libopenblas-dev liblapack-dev libbz2-dev
docker-php-ext-install bz2

Now inside the Nextcloud docker container when I run "php -m | egrep bz2" it shows the bz2 extension where it did not before and I'm able to upgrade facerecognition. Perhaps the docker instructions need to be updated?

@shperrung
Copy link

shperrung commented Jan 4, 2023

Nice hint! Thanks for sharing with that. I injected your fixes into builder's command and started in in Portainer "image buider". Works as need.

FROM nextcloud:apache

RUN apt update \
  && apt install -y wget gnupg2 unzip

# Enable repo and install dlib
RUN echo "deb https://repo.delellis.com.ar bullseye bullseye" > /etc/apt/sources.list.d/20-pdlib.list \
  && wget -qO - https://repo.delellis.com.ar/repo.gpg.key | apt-key add -
RUN apt update \
  && apt install -y libdlib-dev libbz2-dev
RUN docker-php-ext-install bz2

# Install pdlib extension
RUN wget https://github.com/goodspb/pdlib/archive/master.zip \
  && mkdir -p /usr/src/php/ext/ \
  && unzip -d /usr/src/php/ext/ master.zip \
  && rm master.zip
RUN docker-php-ext-install pdlib-master

# Increase memory limits
RUN echo memory_limit=1024M > /usr/local/etc/php/conf.d/memory-limit.ini

# These last lines are just for testing the extension.. You can delete them.
RUN wget https://github.com/matiasdelellis/pdlib-min-test-suite/archive/master.zip \
  && unzip -d /tmp/ master.zip \
  && rm master.zip
RUN cd /tmp/pdlib-min-test-suite-master \
    && make

@backupandforkacc
Copy link

Is there an official docker image? I am a bit worried what happens with update and not very experienced with docker.
@shperrung

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

No branches or pull requests

3 participants