bitsofinfo / comms-analyzer-toolbox

Tool for OSINT forensic analysis, search and graphing of communications content such as email MBOX files and CSV text message data using Elasticsearch and Kibana
Apache License 2.0
73 stars 7 forks source link

Fix "Failed to download metadata ..." error by switching to Rocky Linux. #5

Closed sfgeorge closed 2 years ago

sfgeorge commented 2 years ago

Fixes the following error:

% docker build -t comms-analyzer-toolbox .
[+] Building 2.4s (6/24)
 => [internal] load build definition from Dockerfile                                                                       0.0s
 => => transferring dockerfile: 2.74kB                                                                                     0.0s
 => [internal] load .dockerignore                                                                                          0.0s
 => => transferring context: 2B                                                                                            0.0s
 => [internal] load metadata for docker.io/library/centos:latest                                                           0.7s
 => [internal] load build context                                                                                          0.0s
 => => transferring context: 2.73kB                                                                                        0.0s
 => CACHED [ 1/20] FROM docker.io/library/centos:latest@sha256:a27fd8080b517143cbbbab9dfb7c8571c40d67d534bbdee55bd6c473f4  0.0s
 => ERROR [ 2/20] RUN yum -y install epel-release && yum clean all                                                         1.6s
------
FROM rockylinux:latest
 > [ 2/20] RUN yum -y install epel-release && yum clean all:
#5 1.505 CentOS Linux 8 - AppStream                      155  B/s |  38  B     00:00
#5 1.516 Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
------
executor failed running [/bin/sh -c yum -y install epel-release && yum clean all]: exit code: 1

As CentOS is no longer active, we need to choose b/w CentOS Stream or Rocky Linux. I chose the latter in this PR.