ddsp icon indicating copy to clipboard operation
ddsp copied to clipboard

DDSP in Docker Container

Open simonwindtner opened this issue 2 years ago • 7 comments

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!

simonwindtner avatar Sep 08 '22 14:09 simonwindtner

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

mepc36 avatar Mar 14 '23 18:03 mepc36

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 ##################

simonwindtner avatar Mar 14 '23 18:03 simonwindtner

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

mepc36 avatar Mar 14 '23 19:03 mepc36

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!

mepc36 avatar Mar 14 '23 19:03 mepc36

should be ok.

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

simonwindtner avatar Mar 14 '23 19:03 simonwindtner

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

mepc36 avatar Mar 14 '23 20:03 mepc36

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

simonwindtner avatar Mar 14 '23 21:03 simonwindtner