-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: init project, working ripperx container with config
- Loading branch information
0 parents
commit 73ef05f
Showing
6 changed files
with
153 additions
and
0 deletions.
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,35 @@ | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build-push: | ||
name: Build and Push | ||
# Set the type of machine to run on | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Get the Ref | ||
id: get-ref | ||
uses: ankitvgupta/ref-to-tag-action@master | ||
with: | ||
ref: ${{ github.ref }} | ||
head_ref: ${{ github.head_ref }} | ||
- uses: docker/setup-buildx-action@v1 | ||
- uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: ./Dockerfile | ||
platforms: linux/amd64 | ||
push: true | ||
tags: | | ||
zamnuts/ripperx:latest | ||
zamnuts/ripperx:${{ steps.get-ref.outputs.tag }} | ||
build-args: | | ||
ripperxVersion=${{ steps.get-ref.outputs.tag }} |
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,27 @@ | ||
FROM jlesage/baseimage-gui:ubuntu-18.04-v3 | ||
ARG ripperxVersion='2.8.0' | ||
|
||
ENV \ | ||
APP_NAME='ripperx' \ | ||
HOME='/' | ||
VOLUME ['/output'] | ||
COPY startapp.sh /startapp.sh | ||
COPY ripperX.rc /config/.ripperXrc | ||
|
||
RUN \ | ||
apt-get update && \ | ||
DEBIAN_FRONTEND='noninteractive' \ | ||
apt-get \ | ||
-y \ | ||
-o Dpkg::Options::='--force-confdef' \ | ||
-o Dpkg::Options::='--force-confold' \ | ||
install \ | ||
ca-certificates \ | ||
ripperx="${ripperxVersion}-*" \ | ||
flac \ | ||
lame \ | ||
mppenc \ | ||
vorbis-tools \ | ||
&& \ | ||
apt-get clean && \ | ||
update-ca-certificates |
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2020 Andrew Zammit | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,13 @@ | ||
# ripperx in a web-based X session | ||
|
||
A [ripperx](https://sourceforge.net/projects/ripperx/) web-based GUI based | ||
on [jlesage/baseimage-gui](https://github.com/jlesage/docker-baseimage-gui). | ||
Rip CDs to wav using cdparanoia III, and can encode to mp3, flac, | ||
and other formats. Integrates with CDDB for audio CD information. | ||
Writes id3 tags. Creates m3u playlists. | ||
|
||
- To override the default configuration, mount to `/config/.ripperXrc`. | ||
Embeds a [`.ripperXrc`](ripperX.rc) containing a default configuration. | ||
- Access via `http://localhost:5800`. HTTPS is supported, see the [README in jlesage/baseimage-gui](https://github.com/jlesage/docker-baseimage-gui/blob/master/README.md). | ||
- Outputs files to the volume declared at path `/output`. | ||
- Bundles a handful of encoders: `flac`, `lame`, `mppenc`, and `ogg` |
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,53 @@ | ||
// | ||
// ~/.ripperXrc | ||
// This is the resource file for ripperX. | ||
// If you edit this file with an editor, note | ||
// that this file is overwritten each time ripperX is run. | ||
// | ||
// You can configure everything in the config menu within ripperX. | ||
// | ||
|
||
//-v 2.8.0 | ||
|
||
CDDBConfig::AutoLookup = 0 | ||
CDDBConfig::ConvertSpaces = 0 | ||
CDDBConfig::CreateID3 = 1 | ||
CDDBConfig::CreatePlaylist = 0 | ||
CDDBConfig::DirFormatString = %a/%v | ||
CDDBConfig::FormatString = %# - %s | ||
CDDBConfig::MakeDirectories = 1 | ||
CDDBConfig::Port = 80 | ||
CDDBConfig::ProxyPort = 8080 | ||
CDDBConfig::ProxyServer = | ||
CDDBConfig::Server = freedb.freedb.org/~cddb/cddb.cgi | ||
CDDBConfig::UseHttp = 1 | ||
CdPlayer::Play_command = cdplay % | ||
CdPlayer::Stop_command = cdstop | ||
Encoder::Bitrate = 320 | ||
Encoder::Encoder = lame | ||
Encoder::HighQual = 1 | ||
Encoder::Plugin = ripperX_plugin-lame | ||
Encoder::Priority = 10 | ||
Encoder::Type = 2 | ||
Encoder::VBRQual = 4 | ||
Encoder::VarBitrate = 0 | ||
Encoder::extraOptions = | ||
Encoder::fullCommand = lame -b 320 --nohist -v -h | ||
Encoder::useCRC = 1 | ||
General::AskWhenFileExists = 1 | ||
General::AutoAppendExtension = 1 | ||
General::CDDBPath = ./.cddbslave | ||
General::KeepWav = 0 | ||
General::MakeMp3FromExistingWav = 0 | ||
General::Mp3FileNameFormat = track% | ||
General::Mp3Path = /output/mp3 | ||
General::Mp3Ratio = 0.08 | ||
General::PrependChar = _ | ||
General::ShellForExecution = /bin/sh | ||
General::WavFileNameFormat = track% | ||
General::WavPath = /output/wav | ||
General::WavRatio = 0.006 | ||
Mp3Player::Command = mpg123 % | ||
Ripper::Plugin = ripperX_plugin-cdparanoia | ||
Ripper::Ripper = cdparanoia | ||
WavPlayer::Command = play % |
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 @@ | ||
#!/usr/bin/env sh | ||
|
||
export HOME=/config | ||
ripperx |