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

DDSP in Docker Container #469

Open
simonwindtner opened this issue Sep 8, 2022 · 7 comments
Open

DDSP in Docker Container #469

simonwindtner opened this issue Sep 8, 2022 · 7 comments

Comments

@simonwindtner
Copy link

Have anybody set up a docker container with the ddsp package ? I'm actually trying to set up one, but unfortunately I got errors by installing the numpy package. So would be nice if anybody can give some hints which python version should work with the ddsp package in a docker container.

Thanks!

@mepc36
Copy link

mepc36 commented Mar 14, 2023

Hey @simonwindtner did you ever finish this docker container? Maybe you could post your code so I can keep working on it?

@simonwindtner
Copy link
Author

simonwindtner commented Mar 14, 2023

Hey @mepc36, yes finished the docker image.
here u can find the dockerfile - I set up a docker container with a small file system to exchange, these are all the section where my name is written ;-)
##################
FROM python:3.8-buster

RUN useradd -m -d /home/Simon Simon
WORKDIR /home/Simon

RUN apt-get update
RUN apt-get install libsndfile-dev -y
RUN apt-get -y install libc-dev
RUN apt-get -y install build-essential
RUN pip install -U pip
COPY requirments.txt .
RUN pip install -r requirments.txt
RUN rm requirments.txt

RUN echo 'root:rt' | chpasswd

USER Simon
ENV PATH "${PATH}:/home/Simon/.local/bin"
ENV HOME /home/Simon
RUN mkdir files

CMD /bin/bash
##################

and also the requirements file:

##################
ddsp
ipykernel
##################

@mepc36
Copy link

mepc36 commented Mar 14, 2023

Awesome thank you so much @simonwindtner! I will try to get this working and circle back if I have any questions

@mepc36
Copy link

mepc36 commented Mar 14, 2023

Hey @simonwindtner so I can get the Dockerfile to build the image using this command...

docker build -t ddsp .

...but then the container starts and immediately exits (with no logs) when I run this command:

docker run ddsp -d

Any help? How are you starting the container and logging onto it so you can use DDSP there? Thanks man!

@simonwindtner
Copy link
Author

should be ok.

but I use the docker desktop app to start/stopp the containers, and attach afterwards to VSCode.

@mepc36
Copy link

mepc36 commented Mar 14, 2023

Great, thanks. You're not on a Mac M1 are you?

@simonwindtner
Copy link
Author

my docker is running on the „old“ 13pro, but i‘ve M1 as well. up to now i did not check
if the containers run on the M1 -
sorry

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

2 participants