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

Missing package during docker-compose build #1

Closed
tckelly38 opened this issue Mar 26, 2018 · 3 comments
Closed

Missing package during docker-compose build #1

tckelly38 opened this issue Mar 26, 2018 · 3 comments

Comments

@tckelly38
Copy link

I am trying to implement this DockerFile in a project, and I get the following error during build:

W: Failed to fetch http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu/dists/jessie/main/binary-amd64/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
ERROR: Service 'worker' failed to build: The command '/bin/sh -c apt-get update && apt-get install -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold"     nvidia-opencl-icd-384' returned a non-zero code: 100

Is there an alternative or workaround for this?

@dizcza
Copy link
Owner

dizcza commented Mar 27, 2018

Before installing nvidia-opencl-icd-384 make sure you have included all the first lines from my nvidia-full Dockerfile branch.

FROM nvidia/cuda:8.0-runtime-ubuntu16.04
ENV http_proxy=
ENV https_proxy=
ENV DEBIAN_FRONTEND noninteractive
ENV HOME /root
RUN apt-get update && apt-get install -y software-properties-common && add-apt-repository -y ppa:graphics-drivers/ppa

Try running docker build --no-cache -t hashcat-nvidia-full . in nvidia-full branch.
You can use binaries from my docker-hub.
Or inherit in your Dockerfile like so:

ARG branch=nvidia-full
FROM dizcza/docker-hashcat:$branch

@tckelly38
Copy link
Author

So I'm trying to add this image to my existing project, when I simply inherit the docker file:

ARG branch=nvidia-full
FROM dizcza/docker-hashcat:$branch

in my existing Dockerfile, it ends up overwriting my app if placed at the end. If I place the inheritance at the beginning of my docker file, my image won't contain the hashcat directory or binary in my /.

At the end of the day, I believe this issue stems from my incompetence with Docker, and not with the project. But was looking for help either way.

@dizcza
Copy link
Owner

dizcza commented Mar 28, 2018

binaries are placed in /hashcat dir. symlink or copy them wherever you want.
inheritance (FROM keyword) has to be at the beginning of Dockerfile.
please, read the docker docs first. the Dockerfiles in this repo are complex

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