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

Best way to make a Dockerfile #83

Open
luandro opened this issue Mar 19, 2021 · 0 comments
Open

Best way to make a Dockerfile #83

luandro opened this issue Mar 19, 2021 · 0 comments

Comments

@luandro
Copy link

luandro commented Mar 19, 2021

At Coolab we've been using Kolibri with a docker-compose nginx-proxy setup. Since there seems to be no official docker image I had to create my own.

Initially I was using this Dockerfile, using a python image. It did work, but Kolibri was really chewing CPU.

Now I'm trying to use kolibri-server as it seems to be more efficient. Here's the Dockerfile I'm trying:

FROM ubuntu:latest

RUN apt-get update -y && apt-get upgrade -y
RUN apt-get install -y software-properties-common dirmngr
RUN add-apt-repository ppa:learningequality/kolibri
RUN apt-get update -y
RUN apt-get install -y kolibri-server
USER kolibri

CMD ["kolibri", "start", "--foreground"]

It seems to install and run ok, but mapping port 8080 doesn't work. Here's the docker-compose.yml:

version: "3"

services:
  kolibri:
     build: .
     restart: always
     volumes:
        - ${MEDIA_DIR}:/root/.kolibri
     environment:
        LETSENCRYPT_HOST: ${DOMAIN}
        LETSENCRYPT_EMAIL: ${EMAIL}
        VIRTUAL_HOST: ${DOMAIN}
        VIRTUAL_PORT: 8080
networks:
  default:
    external:
      name: nginx-proxy

update: seems like the process is exiting. Full log here.

Am I missing something?

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

1 participant