Skip to content

Commit

Permalink
Dockerfiles: fix warning for 'FromAsCasing'
Browse files Browse the repository at this point in the history
We use 'as' and 'FROM' keywords which do not match with each other.
Use 'AS' instead of 'as'.

Signed-off-by: Hyeongju Johannes Lee <[email protected]>
  • Loading branch information
hj-johannes-lee committed Nov 5, 2024
1 parent 873fdab commit 71a54cd
Show file tree
Hide file tree
Showing 29 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion build/docker/intel-deviceplugin-operator.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest
## The main branch defaults to using the latest Golang base image.
ARG GOLANG_BASE=golang:1.23-bookworm
###
FROM ${GOLANG_BASE} as builder
FROM ${GOLANG_BASE} AS builder
ARG DIR=/intel-device-plugins-for-kubernetes
ARG GO111MODULE=on
ARG LDFLAGS="all=-w -s"
Expand Down
2 changes: 1 addition & 1 deletion build/docker/intel-dlb-initcontainer.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest
## The main branch defaults to using the latest Golang base image.
ARG GOLANG_BASE=golang:1.23-bookworm
###
FROM ${GOLANG_BASE} as builder
FROM ${GOLANG_BASE} AS builder
ARG DIR=/intel-device-plugins-for-kubernetes
WORKDIR $DIR
COPY . .
Expand Down
2 changes: 1 addition & 1 deletion build/docker/intel-dlb-plugin.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest
## The main branch defaults to using the latest Golang base image.
ARG GOLANG_BASE=golang:1.23-bookworm
###
FROM ${GOLANG_BASE} as builder
FROM ${GOLANG_BASE} AS builder
ARG DIR=/intel-device-plugins-for-kubernetes
ARG GO111MODULE=on
ARG LDFLAGS="all=-w -s"
Expand Down
2 changes: 1 addition & 1 deletion build/docker/intel-dsa-plugin.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest
## The main branch defaults to using the latest Golang base image.
ARG GOLANG_BASE=golang:1.23-bookworm
###
FROM ${GOLANG_BASE} as builder
FROM ${GOLANG_BASE} AS builder
ARG DIR=/intel-device-plugins-for-kubernetes
ARG GO111MODULE=on
ARG LDFLAGS="all=-w -s"
Expand Down
2 changes: 1 addition & 1 deletion build/docker/intel-fpga-admissionwebhook.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest
## The main branch defaults to using the latest Golang base image.
ARG GOLANG_BASE=golang:1.23-bookworm
###
FROM ${GOLANG_BASE} as builder
FROM ${GOLANG_BASE} AS builder
ARG DIR=/intel-device-plugins-for-kubernetes
ARG GO111MODULE=on
ARG LDFLAGS="all=-w -s"
Expand Down
2 changes: 1 addition & 1 deletion build/docker/intel-fpga-initcontainer.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest
## The main branch defaults to using the latest Golang base image.
ARG GOLANG_BASE=golang:1.23-bookworm
###
FROM ${GOLANG_BASE} as builder
FROM ${GOLANG_BASE} AS builder
ARG DIR=/intel-device-plugins-for-kubernetes
ARG GO111MODULE=on
ARG LDFLAGS="all=-w -s"
Expand Down
2 changes: 1 addition & 1 deletion build/docker/intel-fpga-plugin.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest
## The main branch defaults to using the latest Golang base image.
ARG GOLANG_BASE=golang:1.23-bookworm
###
FROM ${GOLANG_BASE} as builder
FROM ${GOLANG_BASE} AS builder
ARG DIR=/intel-device-plugins-for-kubernetes
ARG GO111MODULE=on
ARG LDFLAGS="all=-w -s"
Expand Down
2 changes: 1 addition & 1 deletion build/docker/intel-gpu-fakedev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest
## The main branch defaults to using the latest Golang base image.
ARG GOLANG_BASE=golang:1.23-bookworm
###
FROM ${GOLANG_BASE} as builder
FROM ${GOLANG_BASE} AS builder
ARG DIR=/intel-device-plugins-for-kubernetes
ARG GO111MODULE=on
ARG LDFLAGS="all=-w -s"
Expand Down
2 changes: 1 addition & 1 deletion build/docker/intel-gpu-initcontainer.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest
## The main branch defaults to using the latest Golang base image.
ARG GOLANG_BASE=golang:1.23-bookworm
###
FROM ${GOLANG_BASE} as builder
FROM ${GOLANG_BASE} AS builder
ARG DIR=/intel-device-plugins-for-kubernetes
ARG GO111MODULE=on
ARG LDFLAGS="all=-w -s"
Expand Down
2 changes: 1 addition & 1 deletion build/docker/intel-gpu-levelzero.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ARG ROCKYLINUX=1
ARG BUILD_BASE=rockylinux:9
ARG FINAL_BASE_DYN=registry.access.redhat.com/ubi9/ubi-minimal:9.3
###
FROM ${BUILD_BASE} as builder
FROM ${BUILD_BASE} AS builder
ARG DIR=/intel-device-plugins-for-kubernetes
ENV CGO_CFLAGS="-pipe -fno-plt"
ENV CGO_LDFLAGS="-fstack-protector-strong -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now,-z,noexecstack,-z,defs,-s,-w"
Expand Down
2 changes: 1 addition & 1 deletion build/docker/intel-gpu-plugin.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest
## The main branch defaults to using the latest Golang base image.
ARG GOLANG_BASE=golang:1.23-bookworm
###
FROM ${GOLANG_BASE} as builder
FROM ${GOLANG_BASE} AS builder
ARG DIR=/intel-device-plugins-for-kubernetes
ARG GO111MODULE=on
ARG LDFLAGS="all=-w -s"
Expand Down
2 changes: 1 addition & 1 deletion build/docker/intel-iaa-plugin.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest
## The main branch defaults to using the latest Golang base image.
ARG GOLANG_BASE=golang:1.23-bookworm
###
FROM ${GOLANG_BASE} as builder
FROM ${GOLANG_BASE} AS builder
ARG DIR=/intel-device-plugins-for-kubernetes
ARG GO111MODULE=on
ARG LDFLAGS="all=-w -s"
Expand Down
2 changes: 1 addition & 1 deletion build/docker/intel-qat-initcontainer.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest
## The main branch defaults to using the latest Golang base image.
ARG GOLANG_BASE=golang:1.23-bookworm
###
FROM ${GOLANG_BASE} as builder
FROM ${GOLANG_BASE} AS builder
ARG DIR=/intel-device-plugins-for-kubernetes
WORKDIR $DIR
COPY . .
Expand Down
2 changes: 1 addition & 1 deletion build/docker/intel-qat-plugin-kerneldrv.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest
## The main branch defaults to using the latest Golang base image.
ARG GOLANG_BASE=golang:1.23-bookworm
###
FROM ${GOLANG_BASE} as builder
FROM ${GOLANG_BASE} AS builder
ARG DIR=/intel-device-plugins-for-kubernetes
ARG GO111MODULE=on
ARG LDFLAGS="all=-w -s"
Expand Down
2 changes: 1 addition & 1 deletion build/docker/intel-qat-plugin.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest
## The main branch defaults to using the latest Golang base image.
ARG GOLANG_BASE=golang:1.23-bookworm
###
FROM ${GOLANG_BASE} as builder
FROM ${GOLANG_BASE} AS builder
ARG DIR=/intel-device-plugins-for-kubernetes
ARG GO111MODULE=on
ARG LDFLAGS="all=-w -s"
Expand Down
2 changes: 1 addition & 1 deletion build/docker/intel-sgx-admissionwebhook.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest
## The main branch defaults to using the latest Golang base image.
ARG GOLANG_BASE=golang:1.23-bookworm
###
FROM ${GOLANG_BASE} as builder
FROM ${GOLANG_BASE} AS builder
ARG DIR=/intel-device-plugins-for-kubernetes
ARG GO111MODULE=on
ARG LDFLAGS="all=-w -s"
Expand Down
2 changes: 1 addition & 1 deletion build/docker/intel-sgx-initcontainer.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest
## The main branch defaults to using the latest Golang base image.
ARG GOLANG_BASE=golang:1.23-bookworm
###
FROM ${GOLANG_BASE} as builder
FROM ${GOLANG_BASE} AS builder
ARG DIR=/intel-device-plugins-for-kubernetes
ARG GO111MODULE=on
ARG LDFLAGS="all=-w -s"
Expand Down
2 changes: 1 addition & 1 deletion build/docker/intel-sgx-plugin.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest
## The main branch defaults to using the latest Golang base image.
ARG GOLANG_BASE=golang:1.23-bookworm
###
FROM ${GOLANG_BASE} as builder
FROM ${GOLANG_BASE} AS builder
ARG DIR=/intel-device-plugins-for-kubernetes
ARG GO111MODULE=on
ARG LDFLAGS="all=-w -s"
Expand Down
2 changes: 1 addition & 1 deletion build/docker/intel-xpumanager-sidecar.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest
## The main branch defaults to using the latest Golang base image.
ARG GOLANG_BASE=golang:1.23-bookworm
###
FROM ${GOLANG_BASE} as builder
FROM ${GOLANG_BASE} AS builder
ARG DIR=/intel-device-plugins-for-kubernetes
ARG GO111MODULE=on
ARG LDFLAGS="all=-w -s"
Expand Down
2 changes: 1 addition & 1 deletion build/docker/lib/default_plugin.docker
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "final_base.docker"
#include "golang_base.docker"

FROM ${GOLANG_BASE} as builder
FROM ${GOLANG_BASE} AS builder

#include "default_args.docker"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "final_base.docker"
#include "golang_base.docker"

FROM ${GOLANG_BASE} as builder
FROM ${GOLANG_BASE} AS builder

ARG DIR=/intel-device-plugins-for-kubernetes
WORKDIR $DIR
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "final_base.docker"
#include "golang_base.docker"

FROM ${GOLANG_BASE} as builder
FROM ${GOLANG_BASE} AS builder

#include "default_args.docker"
ARG CRI_HOOK=intel-fpga-crihook
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "final_base.docker"
#include "golang_base.docker"

FROM ${GOLANG_BASE} as builder
FROM ${GOLANG_BASE} AS builder

#include "default_args.docker"

Expand Down
2 changes: 1 addition & 1 deletion build/docker/templates/intel-gpu-levelzero.Dockerfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ARG BUILD_BASE=rockylinux:9
ARG FINAL_BASE_DYN=registry.access.redhat.com/ubi9/ubi-minimal:9.3
###

FROM ${BUILD_BASE} as builder
FROM ${BUILD_BASE} AS builder

ARG DIR=/intel-device-plugins-for-kubernetes

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "final_base.docker"
#include "golang_base.docker"

FROM ${GOLANG_BASE} as builder
FROM ${GOLANG_BASE} AS builder

ARG DIR=/intel-device-plugins-for-kubernetes
WORKDIR $DIR
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "final_base.docker"
#include "golang_base.docker"

FROM ${GOLANG_BASE} as builder
FROM ${GOLANG_BASE} AS builder

#include "default_args.docker"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "final_base.docker"
#include "golang_base.docker"

FROM ${GOLANG_BASE} as builder
FROM ${GOLANG_BASE} AS builder

#include "default_args.docker"

Expand Down
2 changes: 1 addition & 1 deletion demo/crypto-perf/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:sid-slim as builder
FROM debian:sid-slim AS builder

ARG DIR=/dpdk-build
WORKDIR $DIR
Expand Down
2 changes: 1 addition & 1 deletion demo/dlb-dpdk-demo/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:20.04 as builder
FROM ubuntu:20.04 AS builder

ARG DIR=/dpdk-build
WORKDIR $DIR
Expand Down

0 comments on commit 71a54cd

Please sign in to comment.