Commit Graph

23 Commits

Author SHA1 Message Date
Bradley Walters
3c9fa49f30 requirements: remove no longer used PyGObject
Signed-off-by: Bradley Walters <oss@walters.app>
2022-05-27 19:24:29 -06:00
Alex Jones
e59872716e Parameterise the UID of the worker user in the docker build file. (#517)
* Parameterise the UID of the worker user in the docker build file.

Signed-off-by: Alex Jones <alex.jones@unclealex.co.uk>

* Remove spurious use of ARG uid so that it only appears after the FROM statement.

Signed-off-by: Alex Jones <alex.jones@unclealex.co.uk>
2020-11-28 21:07:43 +01:00
JoeLametta
b3aae5f162 Fix Dockerfile syntactic error
Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
2020-08-10 15:05:04 +00:00
JoeLametta
164b604cc9 Merge pull request #498 from MasterOdin/patch-1
Define libcdio version as environment variables in docker
2020-08-10 16:49:50 +02:00
JoeLametta
8676e254e2 Fix CD drive permission issue with Docker (on ArchLinux)
Fixes #499.

Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
2020-08-10 14:07:52 +00:00
Matthew Peveler
8a43568bce Define libcdio version as environment variables in docker
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
2020-07-14 13:09:57 -04:00
JoeLametta
0ffa34bc98 Fix wrong 'rm' directory name in Dockerfile
Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
2020-05-30 11:15:11 +00:00
JoeLametta
86fa4a3e77 Correct mistake in previous commit
The mistake caused the following error: "cd: can't cd to libcdio-paranoia-10.2+2.0.0".

Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
2020-04-21 14:10:19 +00:00
JoeLametta
30ab61fee2 Update libcdio-paranoia's version in Dockerfile
Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
2020-04-21 12:11:07 +00:00
JoeLametta
87e75d0f98 Drop 'requests' external dependency
It was only used in a single method and wasn't really needed.

Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
2020-02-03 15:56:07 +00:00
ABCbum
8181cacca5 Update README, dependencies and supporting files for cover art feature
Signed-off-by: ABCbum <kimlong221002@gmail.com>
Co-authored-by: JoeLametta <JoeLametta@users.noreply.github.com>
Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
2020-01-14 15:57:34 +00:00
ABCbum
8c41f4ddb3 Update whipper's dependencies
whipper now requires `discid` package - which can be installed through
pip and `discid` relies on libdiscid.

Signed-off-by: ABCbum <kimlong221002@gmail.com>
2019-12-28 12:42:26 +00:00
JoeLametta
bbd28c668f Reduce Docker image size
- Removed useless apt cache from layer 3
- Avoid installing apt recommended packages

The compressed image now weights 67 MB less (≈ -30% size).

Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
2019-11-27 22:05:36 +00:00
JoeLametta
50c8cbb237 Update README, .travis.yml and Dockerfile for Python 3
Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
2019-11-26 18:48:01 +00:00
JoeLametta
484b2f18b7 Add missing dependency to Dockerfile
Fixes #419.

Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
2019-10-28 16:07:26 +00:00
JoeLametta
81af7a4d03 Update Dockerfile
Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
2019-10-26 09:00:00 +00:00
JoeLametta
35561b51e5 Dockerfile: build newer libcdio version
Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
2019-10-21 16:30:00 +00:00
JoeLametta
f9884add1b Add git dependency to Dockerfile
Required by setuptools_scm.

Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
2019-02-18 17:32:56 +01:00
Frederik “Freso” S. Olesen
2b6b0059aa Remove references to "python-cddb"
The use of this Python package was replaced in commit
542e071443 with another CDDB/FreeDB API
implemention, but it was still being installed for Travis CI builds and
for Docker containers.

Signed-off-by: Frederik “Freso” S. Olesen <freso.dk@gmail.com>
2019-02-16 03:34:17 +01:00
JoeLametta
a011ca8d73 Update 'JoeLametta' to 'whipper-team' everywhere in repo 2018-11-02 08:00:00 +00:00
Antoine Beaupré
dad3b6e379 reorder Dockerfile for performance
it's better to install/build whipper at the end of the Dockerfile,
because it will allow us to cache costly operations like locale-gen
while rebuilding with new source changes.
2018-10-05 12:03:31 -04:00
anarcat
6d7e54f8b2 Fix Docker invocation (#300)
* fix syntax error in Dockerfile

* fix Docker invocation

It makes no sense to pass the `-t` argument twice and we need to tell
Docker where to find the Dockerfile. Also, it makes sense to write the
config file in a standard location. In my tests, I also had to create
the directory by hand otherwise I got this error:

    cdparanoia can defeat the audio cache on this drive.
    Adding drive cache behaviour to configuration file.
    Traceback (most recent call last):
      File "/usr/local/bin/whipper", line 11, in <module>
        load_entry_point('whipper==0.7.0', 'console_scripts', 'whipper')()
      File "/usr/local/lib/python2.7/dist-packages/whipper-0.7.0-py2.7.egg/whipper/command/main.py", line 36, in main
        ret = cmd.do()
      File "/usr/local/lib/python2.7/dist-packages/whipper-0.7.0-py2.7.egg/whipper/command/basecommand.py", line 139, in do
        return self.cmd.do()
      File "/usr/local/lib/python2.7/dist-packages/whipper-0.7.0-py2.7.egg/whipper/command/basecommand.py", line 139, in do
        return self.cmd.do()
      File "/usr/local/lib/python2.7/dist-packages/whipper-0.7.0-py2.7.egg/whipper/command/drive.py", line 63, in do
        info[0], info[1], info[2], t.defeatsCache)
      File "/usr/local/lib/python2.7/dist-packages/whipper-0.7.0-py2.7.egg/whipper/common/config.py", line 115, in setDefeatsCache
        section = self._findOrCreateDriveSection(vendor, model, release)
      File "/usr/local/lib/python2.7/dist-packages/whipper-0.7.0-py2.7.egg/whipper/common/config.py", line 164, in _findOrCreateDriveSection
        self.write()
      File "/usr/local/lib/python2.7/dist-packages/whipper-0.7.0-py2.7.egg/whipper/common/config.py", line 58, in write
        shutil.move(path, self._path)
      File "/usr/lib/python2.7/shutil.py", line 316, in move
        copy2(src, real_dst)
      File "/usr/lib/python2.7/shutil.py", line 144, in copy2
        copyfile(src, dst)
      File "/usr/lib/python2.7/shutil.py", line 97, in copyfile
        with open(dst, 'wb') as fdst:
    IOError: [Errno 13] Permission denied: u'/home/worker/.config/whipper/whipper.conf'

* remove needless tag version

:latest is implicit so it's useless noise as well.

* Update README.md
2018-10-03 15:43:58 +00:00
Thomas McWork
0a762e23b8 Add Dockerfile (#237)
* add dockerfile

* add cleanup and reduce produces layers

* switch to pycdio==0.21 + libcdio manual build

* use libcdio 2.0.0 and pycdio 2.0.0
2018-09-24 21:19:08 +00:00