unsonic
unsonic copied to clipboard
ERROR: Service 'unsonic' failed to build: lstat requirements.txt: no such file or directory
Expected behavior
For everything to just work. :)
Actual behavior
It did not.
Steps to reproduce the behavior
make MUSIC_DIR=/music docker-postgres
Steps to fix
see comment below
later on that build...
'python3: can't open file 'setup.py': [Errno 2] No such file or directory'
reaction
"fuuuck...why?"
fix (what worked for me)
diff --git a/Makefile b/Makefile
index a4ea3db..6ca6054 100644
--- a/Makefile
+++ b/Makefile
@@ -146,7 +146,7 @@ dist-clean: clean
tests-clean:
rm -f $(VENV)/testing.sqlite $(VENV)/testing.sqlite.org
-DOCKER_COMPOSE := docker-compose -f docker/docker-compose.yml
+DOCKER_COMPOSE := docker-compose --verbose --project-directory /root/unsonic -f docker/docker-compose.yml
image:
@$(DOCKER_COMPOSE) build
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 9e2b507..67b1ef5 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -27,8 +27,9 @@ RUN set -ex; \
# Install ffmpeg
ARG FFMPEG_CHANNEL=release
-ARG FFMPEG_URL=https://johnvansickle.com/ffmpeg/releases/ffmpeg-$FFMPEG_CHANNEL-64bit-static.tar.xz
-ARG FFMPEG_MD5=93e5c1a01bd4df99ecedaea6537765d2
+#ARG FFMPEG_URL=https://johnvansickle.com/ffmpeg/releases/ffmpeg-$FFMPEG_CHANNEL-64bit-static.tar.xz
+ARG FFMPEG_URL=https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz
+ARG FFMPEG_MD5=d20e007536c6a7ab2ee63ea66c97472b
RUN set -ex; \
cd /usr/src \
&& curl -fSL -o ffmpeg.tar.xz "$FFMPEG_URL" \
@@ -51,6 +52,7 @@ RUN set -ex; \
pip3 install -r requirements.txt
COPY . /usr/src/unsonic/
+WORKDIR /usr/src/unsonic
RUN set -ex; \
python3 setup.py build \
&& python3 setup.py install --prefix=/usr/local \
diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml
index 44e41e7..8c64633 100644
--- a/docker/docker-compose.yml
+++ b/docker/docker-compose.yml
@@ -4,8 +4,8 @@ services:
unsonic:
build:
- context: .
- dockerfile: Dockerfile
+ context: ./
+ dockerfile: docker/Dockerfile
image: unsonic
postgres:
an another thing...
eventually there will be an error that the py module pyramid_debugtoolbar isn't installed, so added to requirements.txt
diff --git a/requirements.txt b/requirements.txt
index 5874344..68c0d55 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -2,6 +2,7 @@ pyramid==1.9.2
SQLAlchemy>=1.3.0
alembic==1.0.0
pyramid_mako==1.0.2
+pyramid_debugtoolbar==4.4
zope.sqlalchemy==1.0
waitress==1.1.0
pastedeploy>=2.0
end result
a pretty sweet streaming host. thank you for making this, it works great
Thanks for the report. I've taken some of your changes and did more fixes to the docker setup. If you have a chance, I'd love to hear if they work for you.