-
Notifications
You must be signed in to change notification settings - Fork 8
mp3 support & fixes #25
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
Open
izverev
wants to merge
4
commits into
andresch:master
Choose a base branch
from
izverev:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| # ================================= | ||
| # Dockerfile for run trackfs from source locally | ||
| # | ||
| # Copyright 2020 by Andreas Schmidt | ||
| # All rights reserved. | ||
| # This file is part of the trackfs project | ||
| # and licensed under the terms of the GNU Lesser General Public License v3.0. | ||
| # See https://github.com/andresch/trackfs for details. | ||
| # | ||
| # ================================= | ||
|
|
||
| FROM docker.io/python:3.8-alpine as builder | ||
|
|
||
| # install dependencies | ||
| RUN \ | ||
| apk --no-cache add fuse fuse-dev flac mp3splt \ | ||
| && /usr/local/bin/python -m pip install --upgrade pip | ||
|
|
||
| # enable non-root users to make FUSE fs non-private | ||
| RUN echo "user_allow_other" >> /etc/fuse.conf | ||
|
|
||
| # FUSE requires that the user that mounts the FUSE filesystem | ||
| # has an entry in /etc/passwd | ||
| # Since we want to allow (and encourage) the usage of docker's | ||
| # --user option to run the container as non-root user, | ||
| # and with that don't know the uid of the user at build time | ||
| # we can't create the entry for that user at build time | ||
| # and also can't use adduser command during runtime as this would | ||
| # require root privileges. | ||
| # Instead we open /etc/passwd for writing. | ||
| # As /ets/shadow is still protected this should not cause harm, | ||
| # even if some attacker finds a way to take over the container | ||
|
|
||
| RUN chmod 666 /etc/passwd | ||
|
|
||
| COPY ./ /usr/src/trackfs | ||
| RUN pip install /usr/src/trackfs | ||
|
|
||
| # source directory containing flac+cue files | ||
| VOLUME /src | ||
|
|
||
| # mount point where to generate the tracks from the flac+cue files | ||
| VOLUME /dst | ||
|
|
||
| COPY launcher.sh /usr/local/bin/ | ||
| RUN chmod 555 /usr/local/bin/launcher.sh | ||
|
|
||
| ENTRYPOINT ["/usr/local/bin/launcher.sh", "/src", "/dst"] | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 0.2.6 | ||
| 0.3.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you have to introduce a new dockerfile for local testing. Have you tried the Dockerfile.dev instead? Dockerfile.dev would allow you to do live editing while testing without the need to rebuild the docker image after every change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tried it, but I have some issues with it, I wasn't finding reasons why, also I need to start it in "production", and your Dokerfile depends on Pypi, so I've wrote my own)
I can remove it from pull request, If you want)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll add some comments on how to use Docker.dev. Then we can decide if there is still a need for another one.