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.

Checkout isn’t working

See original GitHub issue

Behaviour

As per the docs, it should automatically checkout the repo before building the docker image. I am building an image with a build context of a subfolder and the working directory is empty.

Steps to reproduce this issue

  1. Try to build an image with a context other than .
  2. Build will fail citing missing directory

Expected behaviour

Repo should be cloned and build should succeed.

Actual behaviour

Repo is not cloned and build fails

Configuration


name: Docker Image CI

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:

  build:

    runs-on: ubuntu-latest

    steps:
    - name: Set up QEMU
      uses: docker/setup-qemu-action@v1
    - name: Set up Docker Buildx
      uses: docker/setup-buildx-action@v1
    - name: Login to DockerHub
      uses: docker/login-action@v1 
      with:
        username: ${{ secrets.DOCKER_USERNAME }}
        password: ${{ secrets.DOCKER_PASSWORD }}
    - name: Set current directory
      run: |
        pwd; ls; ls ..
    - name: Build and push
      id: docker_build
      uses: docker/build-push-action@v2
      env:
        VERSION: '7.8.0'
        ODFE_VERSION: '1.9.0.2'
        REPO: thisisqasim
      with:
        context: elasticsearch
        file: elasticsearch/Dockerfile
        build-args: VERSION=${{ env.VERSION }},ODFE_VERSION=${{ env.ODFE_VERSION }}
        platforms: linux/amd64,linux/arm64
        pull: true
        push: true
        tags: ${{ env.REPO }}/elasticsearch:${{ env.VERSION }}
    - name: Image digest
      run: echo ${{ steps.docker_build.outputs.digest }}

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
thaJeztahcommented, Sep 14, 2020

But this is not yet supported. I will add a note in the README about this.

Ah, interesting; I didn’t know it was not yet supported in BuildKit. I opened a tracking issue for that; https://github.com/moby/buildkit/issues/1684

1reaction
ThisIsQasimcommented, Sep 12, 2020

I think it’s easier and cleaner to just clone in a separate step

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: Checkout isn't available! - Shopify Community
I have gone into settings and messed with enabling Shopify payments and it started working. I assume there we're some changes made to...
Read more >
Troubleshooting checkout issues - Squarespace Help Center
Check for browser issues first · Ensure they're using the most up-to-date version of their browser. · Clear their cache, or test the...
Read more >
What Is Checkout Failure on Shopify - DSers Help Center
Checkout failure in your store. If you or your customer cannot check out on Shopify online store, please go to Shopify - Settings...
Read more >
How to Fix WooCommerce Checkout Page Not Working
1. Deactivate plugins and themes ... The most common reason for the checkout to cease working with WooCommerce is a conflicting theme or...
Read more >
My checkout isn't working, what should I do? - ShopWired Help
Firstly you'll need to identify the exact problem, i.e. what part of the checkout isn't working? Problem: Customers can't add items to their...
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