-
Notifications
You must be signed in to change notification settings - Fork 17
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
REQUEST: Docker install #5
Comments
It's not something I'd have a use for myself, but if someone built an image I'd accept a PR. |
hi ! I personally wrote this Dockerfile which I use as a daily :
|
I'm not a docker expert but I would love to use a docker version so I'm adding my +1 to the original request :-) |
@alxrdn I'm trying to use the code above in a Dockerfile but I keep getting Where do I get /.asksonic from? |
you have to clone the repo in order to be able to build a docker image based on it you should have a tree such as this :
|
That's exactly what I have minus the docker-compose.yml file /image # ls -l /image # ls -lah asksonic/ This is the command I'm using to build the image: |
Ignore that. I managed to do it with "docker build -t asksonic ." |
i'm not building the docker image by hand but through docker-compose, you can try this :
|
Thank you for that. I managed to build the image but when I start it I get the following error: [OKAY] Loaded ENV .env File as KEY=VALUE Format Any ideas what's causing this? |
Make sure your |
Thank you so much. That fixed it. |
Trying to run this through Docker. Followed your instructions above and have the docker container running. Followed the instructions to setup the Alexa Skill. But when I test it, it always plays/tries to play from Alexa Music. Any ideas? |
Hey all, Firstly, excellent idea to get this all containerised! I'm still coming to grips with Docker but it's really cool stuff! I've tried setting it all up using the Dockerfile and docker-compose.yml files above, but when running the Dockerfile, I'm getting issues with: I've also tried eradicating the requirements.txt file and putting it all into the Dockerfile, but then I get this:
So currently a bit stuck. On a separate note, would we need to open up a specific port to access this externally? If so, what port are we binding to? |
What's the phrase you're giving to Alexa?
Is Asksonic being mounted at
4545 by default, you can specify it with the env var |
Hey,
My folder layout is the same as #5 (comment), so i've just changed ./ to ./asksonic/ in my Dockerfile and it's mounting Asksonic at /app, it's just when it's running the Dockerfile steps it breaks at Step 7:
Thanks for this! I've got to map a port, so i'll play with the .env and docker-compose.yml :) |
Ok so I've managed to get the container running with an edited Dockerfile:
Progress is being made slowly! |
i've tried a few "navi navi", "stream music", "stream navi", "stream sonic", "sonic music", etc.
yes
I left 4545 as is. |
Update:
I think you either say 'ask subsonic' or whatever you called the skill in Amazon Console. |
yes. I've changed the invocation to a few different things, hoping to get it to connect. but whatever I try it does not run properly |
You'll need to say
Yeah it needs to be available on 443 via https with a valid certificate |
Add this to Dockerfile to fix requirements.txt issue: |
I've tried to make a Dockerfile for myself
On time I got it working, but I've changed something and keep getting build errors with cryptography. |
If you make a discussion thread and post the exact error I can help troubleshoot |
I made discussion #28 providing some additional details. |
The issue is that Flask-Ask requires cryptography v2, which is not compatible with OpenSSL 3. To get everything to work, you need to force the usage of cryptography 3. You also need to update a few other dependencies, e.g. Flask. The following Dockerfile does this: FROM python:3.9-alpine
WORKDIR /app
RUN apk add --update gcc libc-dev libffi-dev openssl-dev git nodejs npm
RUN git clone https://github.com/srichter/asksonic.git /app
RUN pip3 install --upgrade pip
# Install Flask-Ask dependencies
RUN pip3 install aniso8601 "flask>=2.0.0,<2.2.0" "cryptography>=3.0.0" pyOpenSSL PyYAML six "Werkzeug<3.0.0" cachelib
# Install Flask-Ask
RUN pip3 install --no-dependencies git+https://github.com/srichter/flask-ask.git@flask2
# Install remaining asksonic dependencies
RUN pip3 install gunicorn py-sonic requests
RUN npm install -g foreman
# Environment
ENV PYTHONPATH=/usr/local/lib/python3.9/site-packages
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
# Command
CMD ["nf", "start"] |
Would a docker install option be out of the question for a self-hosted server?
The text was updated successfully, but these errors were encountered: