machawk1 / wail

:whale2: Web Archiving Integration Layer: One-Click User Instigated Preservation
https://matkelly.com/wail
MIT License
345 stars 32 forks source link

Dockerfile won't build due to ubuntu image version #545

Closed sfeaster closed 2 years ago

sfeaster commented 2 years ago

When downloading the latest build zip (WAIL v0.2019.05.21) and using the contents to create a image, u docker build failed on container running apt update due to unreachable repos.

 => ERROR [ 3/10] RUN        apt update && apt install -y              apt-file              git              lib  1.4s
------
 > [ 3/10] RUN        apt update && apt install -y              apt-file              git              libgtk-3-0              libnotify4              libsdl1.2debian              libsm6              libxxf86vm1              python3              python3-pip              x11vnc              xvfb              language-pack-en        &&  rm -rf /var/lib/apt/lists/*:
#6 0.526
#6 0.526 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
#6 0.526
#6 0.794 Ign:1 http://archive.ubuntu.com/ubuntu cosmic InRelease
#6 0.794 Ign:2 http://security.ubuntu.com/ubuntu cosmic-security InRelease
#6 0.904 Ign:3 http://archive.ubuntu.com/ubuntu cosmic-updates InRelease
#6 0.904 Err:4 http://security.ubuntu.com/ubuntu cosmic-security Release
#6 0.904   404  Not Found [IP: 91.189.88.152 80]
#6 1.013 Ign:5 http://archive.ubuntu.com/ubuntu cosmic-backports InRelease
#6 1.120 Err:6 http://archive.ubuntu.com/ubuntu cosmic Release
#6 1.120   404  Not Found [IP: 91.189.88.152 80]
#6 1.231 Err:7 http://archive.ubuntu.com/ubuntu cosmic-updates Release
#6 1.231   404  Not Found [IP: 91.189.88.152 80]
#6 1.336 Err:8 http://archive.ubuntu.com/ubuntu cosmic-backports Release
#6 1.336   404  Not Found [IP: 91.189.88.152 80]
#6 1.340 Reading package lists...
#6 1.348 E: The repository 'http://security.ubuntu.com/ubuntu cosmic-security Release' does not have a Release file.
#6 1.348 E: The repository 'http://archive.ubuntu.com/ubuntu cosmic Release' does not have a Release file.
#6 1.348 E: The repository 'http://archive.ubuntu.com/ubuntu cosmic-updates Release' does not have a Release file.
#6 1.348 E: The repository 'http://archive.ubuntu.com/ubuntu cosmic-backports Release' does not have a Release file.
------
executor failed running [/bin/sh -c apt update && apt install -y              apt-file              git              libgtk-3-0              libnotify4              libsdl1.2debian              libsm6              libxxf86vm1              python3              python3-pip              x11vnc              xvfb              language-pack-en        &&  rm -rf /var/lib/apt/lists/*]: exit code: 100
sfeaster commented 2 years ago

I've updated first line of dockerfile to be FROM ubuntu:20.04. docker build works now. will submit pull request

machawk1 commented 2 years ago

@sfeaster Thanks! I will watch for your PR.

machawk1 commented 2 years ago

It looks like this change has already been made in the main branch, it just was not the case with the last release. I continue to have issues building the container on macOS 12.13.1 with the Ubuntu 20.04 in-place.

machawk1 commented 2 years ago

It looks like libgtk-3-dev should be used to build wxPython on Ubuntu 20. I will try this and report whether the build succeeds.

machawk1 commented 2 years ago

After a long container build, the build of WAIL completes. There are errors at runtime, likely due to architecture (I'm on arm64), but that is a separate issue.