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

[Feature Request] - Container image #132

Open
1m1tat1on opened this issue Dec 26, 2024 · 0 comments
Open

[Feature Request] - Container image #132

1m1tat1on opened this issue Dec 26, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@1m1tat1on
Copy link

Is your feature request related to a problem? Please describe.
Ensure cross-platform environment setup is the same for all users. Reducing room for problems arising from manual environment setup.

Describe the solution you'd like
Dockerfile for a 'devine' image.

Describe alternatives you've considered
Manual checks or integrating checks into devine as seen in (#125)

Additional context
As mentioned, a container image would ensure an uniform runtime environment for devine across all users, incl. developers.

Example Dockerfile:

FROM ubuntu:24.04

# Install wget, python3, pipx, git
RUN apt update
RUN apt install -y wget python3 pipx
# Install poetry
RUN PIPX_HOME=/opt/pipx PIPX_BIN_DIR=/usr/local/bin pipx install poetry

# Set up repo for mkvtools
RUN wget -O /etc/apt/keyrings/gpg-pub-moritzbunkus.gpg https://mkvtoolnix.download/gpg-pub-moritzbunkus.gpg
RUN echo "deb [signed-by=/etc/apt/keyrings/gpg-pub-moritzbunkus.gpg] https://mkvtoolnix.download/debian/ bookworm main" >> /etc/apt/sources.list 
RUN echo "deb-src [signed-by=/etc/apt/keyrings/gpg-pub-moritzbunkus.gpg] https://mkvtoolnix.download/debian/ bookworm main" >> /etc/apt/sources.list 

# Install other deps (ffmpeg, ccextractor, mkvtools, aria2)
RUN apt update 
RUN apt install -y ffmpeg ccextractor mkvtoolnix mkvtoolnix-gui aria2 

# Install shaka packager
RUN wget https://github.com/shaka-project/shaka-packager/releases/download/v3.4.1/packager-linux-x64 && \
    chmod +x packager-linux-x64 && \
    mv packager-linux-x64 packager && \
    mv packager /usr/local/bin/

# Set up devine dir 
RUN apt install -y git
WORKDIR /
RUN git clone https://github.com/devine-dl/devine
# Install deps / Configure venv
RUN poetry config virtualenvs.in-project true
WORKDIR /devine
RUN poetry install
@1m1tat1on 1m1tat1on added the enhancement New feature or request label Dec 26, 2024
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

1 participant