Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ target "lint" {
matrix = {
buildtags = [
{ name = "default", tags = "", target = "golangci-lint" },
{ name = "labs", tags = "dfrundevice", target = "golangci-lint" },
{ name = "labs", tags = "", target = "golangci-lint" },
{ name = "nydus", tags = "nydus", target = "golangci-lint" },
{ name = "yaml", tags = "", target = "yamllint" },
{ name = "golangci-verify", tags = "", target = "golangci-verify" },
Expand Down
16 changes: 0 additions & 16 deletions frontend/dockerfile/dockerfile2llb/convert_norundevice.go

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/dockerfile/dockerfile2llb/convert_rundevice.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//go:build dfrundevice

package dockerfile2llb

import (
Expand Down
2 changes: 0 additions & 2 deletions frontend/dockerfile/dockerfile_rundevice_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//go:build dfrundevice

package dockerfile

import (
Expand Down
7 changes: 3 additions & 4 deletions frontend/dockerfile/docs/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ The available `[OPTIONS]` for the `RUN` instruction are:

| Option | Minimum Dockerfile version |
|---------------------------------|----------------------------|
| [`--device`](#run---device) | 1.14-labs |
| [`--device`](#run---device) | 1.27 |
| [`--mount`](#run---mount) | 1.2 |
| [`--network`](#run---network) | 1.3 |
| [`--security`](#run---security) | 1.20 |
Expand All @@ -731,8 +731,7 @@ The cache for `RUN` instructions can be invalidated by [`ADD`](#add) and [`COPY`
### RUN --device

> [!NOTE]
> Not yet available in stable syntax, use [`docker/dockerfile:1-labs`](#syntax)
> version. It also needs BuildKit 0.20.0 or later.
> This option needs BuildKit 0.20.0 or later.

```dockerfile
RUN --device=name,[required]
Expand Down Expand Up @@ -804,7 +803,7 @@ In this example we use the `--device` flag to run `llama.cpp` inference using
an NVIDIA GPU device through CDI:

```dockerfile
# syntax=docker/dockerfile:1-labs
# syntax=docker/dockerfile:1

FROM scratch AS model
ADD https://huggingface.co/bartowski/Llama-3.2-1B-Instruct-GGUF/resolve/main/Llama-3.2-1B-Instruct-Q4_K_M.gguf /model.gguf
Expand Down
1 change: 0 additions & 1 deletion frontend/dockerfile/release/labs/tags
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
dfrundevice