-
Notifications
You must be signed in to change notification settings - Fork 99
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
Docker Support #63
Open
whit3he4d
wants to merge
7
commits into
hbashton:master
Choose a base branch
from
whit3he4d: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
Docker Support #63
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
ec6d53c
Create Dockerfile
whit3he4d dfd0ac4
Create process_lists.py
whit3he4d 2d66096
Add files via upload
whit3he4d d5e52e2
Create config.ini
whit3he4d 47dfd92
Add files via upload
whit3he4d 3f7a2f2
Update process_lists.py
whit3he4d 88afd64
fix
whit3he4d 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 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,33 @@ | ||
FROM ubuntu | ||
|
||
# installation | ||
RUN apt update && apt upgrade -y | ||
RUN apt install python -y | ||
RUN apt install wget -y | ||
RUN apt install lame -y | ||
RUN apt install build-essential -y | ||
RUN apt install libffi-dev -y | ||
RUN apt install git -y | ||
RUN apt install python-dev -y | ||
|
||
RUN wget https://bootstrap.pypa.io/get-pip.py && \ | ||
python get-pip.py | ||
|
||
RUN wget https://github.com/mopidy/libspotify-archive/raw/master/libspotify-12.1.51-Linux-x86_64-release.tar.gz && \ | ||
tar xvf libspotify-12.1.51-Linux-x86_64-release.tar.gz && \ | ||
cd libspotify-12.1.51-Linux-x86_64-release/ && \ | ||
make install prefix=/usr/local | ||
|
||
RUN git clone https://github.com/hbashton/spotify-ripper.git && \ | ||
cd spotify-ripper && \ | ||
python setup.py install | ||
|
||
# configuration | ||
ADD spotify_appkey.key /root/.spotify-ripper | ||
ADD config.ini /root/.spotify-ripper/ | ||
|
||
# install processing script | ||
ADD process_lists.py ./ | ||
|
||
# start downloading | ||
ENTRYPOINT [ "python", "/process_lists.py" ] |
This file contains 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,4 @@ | ||
#!/bin/bash | ||
|
||
docker image build . -t spori:latest | ||
docker container run -ti --privileged --mount type=bind,source="$(pwd)"/share,target=/root/.spotify-ripper/share spori:latest |
This file contains 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,14 @@ | ||
[main] | ||
user = your email or username | ||
password = your password | ||
ascii = True | ||
format = {album_artist}/{year} {album}/Disc 0{disc_idx}/0{track_idx} {track_name}.{ext} | ||
directory = /root/.spotify-ripper/share/downloads | ||
quality = 320 | ||
bitrate = 320 | ||
grouping = {label} | ||
normalize = True | ||
cbr = True | ||
mp3 = True | ||
last = False | ||
partial_check = strict |
This file contains 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,16 @@ | ||
#!/bin/python2 | ||
|
||
import sys, os, subprocess | ||
|
||
lists_dir = "/root/.spotify-ripper/share/lists" | ||
download_lists = [] | ||
|
||
for fname in os.listdir(lists_dir): | ||
absolute_fname = os.path.join(lists_dir, fname) | ||
if not os.path.isdir(absolute_fname) : | ||
download_lists.append(fname) | ||
|
||
for curr_list in download_lists: | ||
print("\n\n\n[ + ] P R O C E S S I N G C U R R E N T L I S T :{}\n\n\n".format(curr_list)) | ||
subprocess.call('spotify-ripper {} && mv {} done/{}'.format(curr_list,curr_list,curr_list), shell=True, cwd=lists_dir) | ||
|
Binary file not shown.
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.
Thanks for providing a Dockerfile, however it fails.
Please tag a specific ubuntu version, maybe even an official image for python with PIP installed