dmarc-visualizer icon indicating copy to clipboard operation
dmarc-visualizer copied to clipboard

service parsedmarc' failed to build: COPY failed

Open HardTarget411 opened this issue 2 years ago • 1 comments

When install dmarc-visualizer, I get the following error.

Error: Service 'parsedmarc' failed to build: COPY failed: file not found in the build context or excluded by .dockerignore: stat parsedmarc.ini: file does not exist

Installed on vanilla ubuntu 20.04. Here is the video I followed: https://www.youtube.com/watch?v=a9CUTfzADLQ

Instructions: Run each of these lines one at a time

########### Installing Docker on Ubuntu

sudo apt update

sudo apt install apt-transport-https ca-certificates curl software-properties-common

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

sudo apt-key fingerprint 0EBFCD88

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

sudo apt update

apt-cache policy docker-ce

sudo apt install docker-ce

sudo systemctl status docker

############ Install Docker compose

sudo curl -L "https://github.com/docker/compose/releases/download/1.26.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

sudo chmod +x /usr/local/bin/docker-compose

docker-compose --version

############ Running Hello World sudo docker run hello-world

############ Running the YML file

sudo docker-compose up -d sudo docker-compose up

HardTarget411 avatar Dec 11 '23 18:12 HardTarget411

I guess you did not configure paresdmarc.ini, try this:

cp parsedmarc/parsedmarc.sample.ini parsedmarc/parsedmarc.ini

Then try again:

docker-compose up --build

And please use code tags to make your report easier to read. You should also insert the exact error message, i.e.

 => CACHED [3/4] RUN apk add --update --no-cache --virtual .build_deps build-base libffi-dev       0.0s
 => ERROR [4/4] COPY parsedmarc.ini /                                                              0.0s
------
 > [4/4] COPY parsedmarc.ini /:
------
Dockerfile:8
--------------------
   6 |         && apk del .build_deps
   7 |     
   8 | >>> COPY parsedmarc.ini /
   9 |     #COPY GeoLite2-Country.mmdb /usr/share/GeoIP/GeoLite2-Country.mmdb
  10 |     
--------------------
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref eaa04227-d7b7-469f-b78c-00b570da301a::ozqth1c6xng54fbtzze2fsy2u: "/parsedmarc.ini": not found
ERROR: Service 'parsedmarc' failed to build : Build failed

I use my spare time to help, so you should also invest some time to make a proper issue description

sebastianlutter avatar Dec 14 '23 19:12 sebastianlutter