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

Feature/fix builds docker syntax #1493

Merged
merged 3 commits into from
Dec 19, 2024

Conversation

bkneis
Copy link
Contributor

@bkneis bkneis commented Dec 19, 2024

This PR fixes #1481

In summary devpod always assumes a build syntax of docker/dockerfile:1.4. The reference CLI parses out the build syntax and uses it in the feature layers - https://github.com/devcontainers/cli/blob/main/src/spec-node/containerFeatures.ts#L200

This PR does the same falling back to 1.4 if no build syntax is specified.

I tested this using examples/build and adding the problematic build commands such as RUN --checksum and watching it fail then work with the PR

Copy link
Member

@pascalbreuninger pascalbreuninger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Edit: Looks like we've hit a nil pointer somewhere in here. Could you pass along the syntax instead of the full struct?

@bkneis bkneis force-pushed the feature/fix-builds-docker-syntax branch from 02cd1f7 to 2bcb5c4 Compare December 19, 2024 10:03
@bkneis bkneis merged commit 4f561e2 into loft-sh:main Dec 19, 2024
17 of 23 checks passed
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

Successfully merging this pull request may close these issues.

Build downgrades existing docker syntax specification
2 participants