-
Notifications
You must be signed in to change notification settings - Fork 37
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
First line on Dockerfile's Syntax seems to terminate debugging session instantly #100
Comments
@danielschulz Thank you for reporting this issue. Which version of buildg are you using? And according to the 1st screenshot you shared, # syntax=docker/dockerfile:1.4.3
...(omit)...
ARG BASE_IMAGE
FROM ${BASE_IMAGE} Could you set If the above doesn't solve the issue, could you try |
Thank you for getting back to me so swiftly. This got nothing to do with the empty build argument: I provided this in both cases. So the only difference in working and not-working setups was the first line pertaining Dockerfile's Syntax. I am using the latest buildg, which I build from sources using GoLang 17.5. I used this Docker image to build it and am using buildg wo/ any container since this... Do you need more information to work on my findings? |
@danielschulz I've tried to reproduce your problem following the steps you provided but can't reproduce the problem and all builds worked perfectly on my matchine.
Tests on my machine:
Preparation: build and install the latest commit of buildg$ pwd
/home/ktock/go/src/github.com/ktock/buildg
$ cat <<'EOF' > Dockerfile.repro
FROM golang:1.17.5-buster AS dev
COPY . /go/src/github.com/ktock/buildg
WORKDIR /go/src/github.com/ktock/buildg
RUN PREFIX=/out/ make
FROM scratch
COPY --from=dev /out/buildg /
EOF
$ docker build --output=type=local,dest=/tmp/out/ -f Dockerfile.repro .
$ mv /tmp/out/buildg /home/ktock/.local/bin/buildg
$ buildg version
buildg v999.999.999-25-g176d749 176d749a80081d6a5ca47e1d5f39b5d30dffc2c9 Create Dockerfile to testContains $ mkdir -p /tmp/test && cat <<'EOF' > /tmp/test/Dockerfile
# syntax=docker/dockerfile:1.4.3
FROM ubuntu:22.04
RUN echo 1 > /1
RUN echo 2 > /2
RUN echo 3 > /3
RUN echo 4 > /4
EOF Test on CLI with
|
Thank you so much for your setup. I will give this a try soon.For the time being: I am working on your latest release and experience this issue. Here are my versions, which tend to align with your mentioned ones. VersionsHere is my failing attempt in these versions shown before.buildg-issue-Dockerfile-syntax2.webm |
Thank you for this cool OpenSource project!
I have an issue, when debugging my Dockerfiles, which start using Docker BuildKit's Dockerfile-Syntax declarations like this one.
When I remove this first line "# syntax = docker/dockerfile:1.4.3", the debugger IS working perfectly. Having this first line included results in weird output of it:
The debugger seems to not understand this line and terminates directly — even when this image is present locally in my repository.
The text was updated successfully, but these errors were encountered: