question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Setting up a custom image

See original GitHub issue

I am trying to set up a custom docker image (linux-anvil-cos7-x86_64) but regenerate doesn’t take it into account.

conda-forge.yml:

docker:
  fallback_image: linux-anvil-cos7-x86_64

After regenerate, ./scripts/run_docker_build.sh contains:

if [ -z "${DOCKER_IMAGE}" ]; then
    SHYAML_INSTALLED="$(shyaml -h || echo NO)"
    if [ "${SHYAML_INSTALLED}" == "NO" ]; then
        echo "WARNING: DOCKER_IMAGE variable not set and shyaml not installed. Falling back to linux-anvil-cos7-x86_64"
        DOCKER_IMAGE="linux-anvil-cos7-x86_64"
    else
        DOCKER_IMAGE="$(cat "${FEEDSTOCK_ROOT}/.ci_support/${CONFIG}.yaml" | shyaml get-value docker_image.0 linux-anvil-cos7-x86_64 )"
    fi
fi

but ..azure-pipelines/azure-pipelines-linux.yml contains:

jobs:
- job: linux
  pool:
    vmImage: ubuntu-16.04
  strategy:
    matrix:
      linux_:
        CONFIG: linux_
        UPLOAD_PACKAGES: 'True'
        DOCKER_IMAGE: condaforge/linux-anvil-comp7
    maxParallel: 8
  timeoutInMinutes: 360

which take precedence over the run_docker_build.sh.

I could edit manually azure-pipelines-linux.yml but it would be erased at each new regenerate. Any idea?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jakirkhamcommented, May 27, 2020

It’s because of this.

1reaction
isurufcommented, May 27, 2020

You need to do something like,

docker_image:
  - condaforge/linux-anvil-cos7-x86_64
cuda_compiler_version:
  - None
Read more comments on GitHub >

github_iconTop Results From Across the Web

Deploy a Custom Image | Microsoft Learn
Deploy a Custom Image · Step 1: Copy the Windows installation source files to a network share · Step 2: Install Windows onto...
Read more >
Creating a custom image - IBM
You can build a custom image on any server or workstation running Docker, Podman or Skopeo. The custom image does not have to...
Read more >
Create custom images - Compute Engine - Google Cloud
You can create custom images from source disks, images, snapshots, or images stored in Cloud Storage and use these images to create virtual...
Read more >
How to Create Perfect Custom Images for Your Website, Blog ...
To create your own custom images, find the best free images at your disposal and edit them wisely—within a reasonable time limit.
Read more >
Make it Pretty - Creating Custom Images - Teaching Forward
Creating a custom image requires a workspace where you can layer, re-size and move elements around. My all-time favorite site for this step...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found