Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

service parsedmarc' failed to build: COPY failed #48

Open
HardTarget411 opened this issue Dec 11, 2023 · 1 comment
Open

service parsedmarc' failed to build: COPY failed #48

HardTarget411 opened this issue Dec 11, 2023 · 1 comment

Comments

@HardTarget411
Copy link

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

@sebastianlutter
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants