Code Monkey home page Code Monkey logo

mediadc-docker-example's Introduction

Nextcloud MediaDC Docker configuration

There is a basic Docker Compose configuration example to use MediaDC application.

You need to adjust your Nextcloud app container like in /mediadc/Dockerfile to install required dependecies and re-build your container like in docker-compose.yml.

Installation with hands

If you don't want to use Dockerfile, you can install the required packages for the MediaDC app with hands, but to save changes they are needed to be committed into the separate Docker image.

Connect to Nextcloud Docker container terminal

If you are using Docker GUI management (e.g. Portainer) - you can easily connect to the terminal via it (find container and the console button), otherwise, you can do it from your host server terminal:

  1. docker ps - list active containers to find one with Nextcloud app and copy CONTAINER_ID.
  2. docker exec -it [CONTAINER_ID] [shell command] - connect to the container's terminal. [shell command] - path to shell executable, for Alpine it is sh (/bin/sh), for other distros usually bash (/bin/bash).

Now, when you are logged in, you can install required packages to the container like in /mediadc/Dockerfile.

Install required packages

apk add --no-cache ffmpeg imagemagick supervisor py3-numpy py3-pillow py3-asn1crypto

Install optional packages

apk add --no-cache py3-cffi py3-scipy py3-pynacl py3-cryptography py3-pip

Upgrade pip

python3 -m pip install -U pip

Install pillow_heif

python3 -m pip install pillow_heif

Install pywavelets

python3 -m pip install pywavelets

After that check installation on the MediaDC Configuration page and it should be done.

Save Docker container image changes

To save this changes you need to commit them to the separete Docker image. By default, the container being committed and its processes will be paused while the image is committed. This reduces the likelihood of encountering data corruption during the process of creating the commit. If this behavior is undesired, set the --pause option to false. Read more on official docs.

  • docker commit [CONTAINER_ID] [new_image_name]

  • docker image ls - to check Docker [new_image_name] image created.

  • Use [new_image_name] instead of the previous default Nextcloud Docker image. This is one of the disadvantages of this way of installation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.