Skip to content

[Docker] pip + env variable for modules #1109

Description

@WirlyWirly

Is your feature request related to a problem? Please describe.
The OliveTin docker container includes python, but it does not include pip. Having access to pip and all the third-party python modules that can be installed opens a whole new world of opportunities for OliveTin.

Describe the solution you'd like
This is a request to included pip with the OliveTin container as-well as an environment variable that can be set so that pip packages will be installed.

Additional context
Here is an example docker-compose block on how to create a custom image that adds pip and a few modules on-top of the official OliveTin container...

  olivetin_service:
    image: olivetin
    container_name: olivetin_container
    restart: unless-stopped
    env_file: ./docker/olivetin/variables.env
    ports:
      - '1337:1337'
    volumes:
      - ./olivetin/config/:/config/
      - ./olivetin/scripts/:/scripts/
    build: # Build a custom image from the official olivetin image
      dockerfile_inline: |
        FROM jamesread/olivetin:latest
        USER root
        RUN dnf install -y python3-pip \
            && python3 -m pip config set global.break-system-packages true \
            && pip install requests bs4 https://github.com/spinfast319/gazelle-origin/archive/master.zip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions