reticivis-net / mediaforge

A Discord bot for editing and creating videos, images, GIFs, and more!
GNU General Public License v3.0
82 stars 28 forks source link

Weird error when running docker build -t #189

Closed VendorAttestation closed 1 year ago

VendorAttestation commented 1 year ago

Describe the issue

 => CACHED [internal] load git source https://github.com/HexCodeFFF/media  0.6s
 => [internal] load metadata for docker.io/library/python:3.11             0.4s
 => [ 1/15] FROM docker.io/library/python:3.11@sha256:d73088ce13d5a1eec1d  0.0s
 => CACHED [ 2/15] COPY . mediaforge                                       0.0s
 => CACHED [ 3/15] WORKDIR mediaforge                                      0.0s
 => CACHED [ 4/15] RUN dpkg -i $(curl -w "%{filename_effective}" -LO "htt  0.0s
 => CACHED [ 5/15] RUN printf "\ndeb https://deb.debian.org/debian bullse  0.0s
 => CACHED [ 6/15] RUN apt-get -y update                                   0.0s
 => ERROR [ 7/15] RUN apt-get -t testing --no-install-recommends install   0.6s
------
 > [ 7/15] RUN apt-get -t testing --no-install-recommends install -y ffmpeg libgif-dev libvips-dev:
0.187 Reading package lists...
0.607 W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/debian-extended.list:3 and /etc/apt/sources.list.d/debian.sources:1
0.607 W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/debian-extended.list:3 and /etc/apt/sources.list.d/debian.sources:1
0.607 E: The value 'testing' is invalid for APT::Default-Release as such a release is not available in the sources
------
Dockerfile:23
--------------------
  21 |     # libgif-dev is here because apt is weird see #128
  22 |     # libvips is here cause stable is old
  23 | >>> RUN apt-get -t testing --no-install-recommends install -y ffmpeg libgif-dev libvips-dev
  24 |     # most packages
  25 |     RUN apt-get -t stable --no-install-recommends install -y nano imagemagick nodejs
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get -t testing --no-install-recommends install -y ffmpeg libgif-dev libvips-dev" did not complete successfully: exit code: 100

### Expected Behavior

to complete docker build -t melodyflorum/mediaforge https://github.com/HexCodeFFF/mediaforge.git

### Steps To Reproduce

1:) install fresh ubuntu / docker
2:) run docker build -t melodyflorum/mediaforge https://github.com/HexCodeFFF/mediaforge.git

### Logs

[+] Building 1.7s (9/17)                                         docker:default
 => CACHED [internal] load git source https://github.com/HexCodeFFF/media  0.6s
 => [internal] load metadata for docker.io/library/python:3.11             0.4s
 => [ 1/15] FROM docker.io/library/python:3.11@sha256:d73088ce13d5a1eec1d  0.0s
 => CACHED [ 2/15] COPY . mediaforge                                       0.0s
 => CACHED [ 3/15] WORKDIR mediaforge                                      0.0s
 => CACHED [ 4/15] RUN dpkg -i $(curl -w "%{filename_effective}" -LO "htt  0.0s
 => CACHED [ 5/15] RUN printf "\ndeb https://deb.debian.org/debian bullse  0.0s
 => CACHED [ 6/15] RUN apt-get -y update                                   0.0s
 => ERROR [ 7/15] RUN apt-get -t testing --no-install-recommends install   0.6s
------
 > [ 7/15] RUN apt-get -t testing --no-install-recommends install -y ffmpeg libgif-dev libvips-dev:
0.187 Reading package lists...
0.607 W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/debian-extended.list:3 and /etc/apt/sources.list.d/debian.sources:1
0.607 W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/debian-extended.list:3 and /etc/apt/sources.list.d/debian.sources:1
0.607 E: The value 'testing' is invalid for APT::Default-Release as such a release is not available in the sources
------
Dockerfile:23
--------------------
  21 |     # libgif-dev is here because apt is weird see #128
  22 |     # libvips is here cause stable is old
  23 | >>> RUN apt-get -t testing --no-install-recommends install -y ffmpeg libgif-dev libvips-dev
  24 |     # most packages
  25 |     RUN apt-get -t stable --no-install-recommends install -y nano imagemagick nodejs
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get -t testing --no-install-recommends install -y ffmpeg libgif-dev libvips-dev" did not complete successfully: exit code: 100

Config

none didnt get this far

Hosting Provider

My local Unraid Server in VM on ubuntu 22.04

Hosting Method

My local Unraid Server in VM on ubuntu 22.04

Hosting Resources

4 Cores 8GB Ram

Anything Else

No response

reticivis-net commented 1 year ago

The docker build constantly breaks because it’s a bit of a bodge This issue is known and I will fix it At Some Point:tm: