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

Running container on GCP instance via GirLab #887

Open
fabiosanger opened this issue Jan 19, 2023 · 0 comments
Open

Running container on GCP instance via GirLab #887

fabiosanger opened this issue Jan 19, 2023 · 0 comments

Comments

@fabiosanger
Copy link

fabiosanger commented Jan 19, 2023

Is it possible to to run a container from a gitlab pipeline on a gcp instance which has GPU? I know that I do

steps:
    # build the container image
  - name: 'gcr.io/cloud-builders/docker'
    args: [ 'build', '--memory-swap', '-1', '-t', 'eu.gcr.io/$PROJECT_ID/${_IMAGE}', '.' ]
    # push the container image
  - name: 'gcr.io/cloud-builders/docker'
    args: [ 'push', 'eu.gcr.io/$PROJECT_ID/${_IMAGE}']
    # deploy to Cloud Run
  - name: "gcr.io/cloud-builders/docker"
    args: ['run', '--rm', \
           '--gpus', 'all', \
           'eu.gcr.io/$PROJECT_ID/${_IMAGE}', 'pytest']

It fails step 2 with error:

[Gcloud docker --push or pull](docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].)

Basically I need to test the container with a machine with GPU, since the company gitlab runner does not support GPU

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

1 participant