Git Product home page Git Product logo

donkey's People

Contributors

3xx0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

entercloud

donkey's Issues

Client must be run as root

When running donkey get as a non-root user, I get an empty output and the server outputs could not establish connection: Operation not permitted.

I spent some time figuring out you are using abstract sockets. As they don't have permissions, it is possible for other users to read the secret. A short paragraph explaining how this tool works (and the drawbacks) would be nice.

donkey: could not establish connection: Connection refused (DinD build process, nvidia-driver GPU)

Hi!
I have an issue trying to sign nvidia drivers with these lines:

    if [ -n "${PRIVATE_KEY}" ]; then
        echo "Signing NVIDIA driver kernel modules..."
        donkey get "${PRIVATE_KEY}" sh -c "PATH=${PATH}:/usr/src/linux-headers-${KERNEL_VERSION}/scripts && \
          sign-file sha512 \$DONKEY_FILE pubkey.x509 nvidia.ko nvidia.ko.sign &&                          \
          sign-file sha512 \$DONKEY_FILE pubkey.x509 nvidia-modeset.ko nvidia-modeset.ko.sign &&          \
          sign-file sha512 \$DONKEY_FILE pubkey.x509 nvidia-uvm.ko"
        nvidia_sign_args="--linked-module nvidia.ko --signed-module nvidia.ko.sign"
        nvidia_modeset_sign_args="--linked-module nvidia-modeset.ko --signed-module nvidia-modeset.ko.sign"
        nvidia_uvm_sign_args="--signed"
    fi

The source code doesn't come from me, I'm just trying to compile and sign the drivers by myself based on the work done by the nvidia team because those are not available to ubuntu23.10 for now.

The documentation doesn't say anything related to donkey but, it's into the file nvidia-drivers:
https://download.nvidia.com/XFree86/Linux-x86/361.45.11/README/installdriver.html#modulesigning

I'm trying to run the docker build process like this:

 docker build  --network=host  -t <private-registry>/gen-driver:535.129.03-ubuntu23.10 -f generate_drivers.dockerfile  .

In my dockerfile named generate_drivers.dockerfile I have this related to donkey:

RUN /tmp/install.sh reposetup && /tmp/install.sh depinstall && \
    curl -fsSL -o /usr/local/bin/donkey https://github.com/3XX0/donkey/releases/download/v1.1.0/donkey && \
    chmod +x /usr/local/bin/donkey
# (...)
RUN /usr/local/bin/nvidia-driver init

The last RUN execution triggers many things and when it reach out the if statement pasted on top fails saying:

#0 30.13 Signing NVIDIA driver kernel modules...
#0 30.13 donkey: could not establish connection: Connection refused

I don't have docker utility in the host with the GPU so I'm creating the container using a DinD manifest for it:

apiVersion: v1
kind: Pod
metadata:
  name: dind-nvidia-driver
  namespace: default
spec:
  hostNetwork: true
  containers:
  - image: docker:24.0.0-rc.1-dind
    name: dind
    securityContext:
      privileged: true
    resources: {}
    volumeMounts:
    - name: repo-drivers
      mountPath: "/drivers"
  volumes:
  - name: repo-drivers
    hostPath:
      path: /home/user/dind

Could you help me to fix this issue, please?

Doesn't compile on Mac OS X

I would like to use Donkey on Mac OS X, but it appears that the code is linux-specific. This should at least be be documented in the README.

FWIW, here is the log from attempting to build on OSX:

MAKE.LOG

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.