Skip to content

Commit 2522280

Browse files
committed
Dockerfiles: consistent casing for FROM AS
This will fix warnings during the build like this: WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match Change-Id: I710e753b5ccf39fb43fab857a3ab349ac56f02e4
1 parent 0031170 commit 2522280

17 files changed

Lines changed: 34 additions & 34 deletions

File tree

buildscripts/infrastructure/build-nodes/almalinux-9/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG IMAGE_ALMALINUX_9
22
# hadolint ignore=DL3006
3-
FROM ${IMAGE_ALMALINUX_9} as base
3+
FROM ${IMAGE_ALMALINUX_9} AS base
44

55
SHELL ["/bin/bash", "-c"]
66
ENV LC_ALL=C.UTF-8 LANG=C.UTF-8 PATH="/opt/bin:${PATH}"
@@ -121,7 +121,7 @@ RUN if test -f /usr/lib/rpm/redhat/redhat-annobin-cc1; then \
121121
# - cmake is needed for e.g. building re2
122122
# - openssl is needed by Python 3.7+
123123
# - python is needed by our build / test chain
124-
FROM base as builder
124+
FROM base AS builder
125125
ARG NEXUS_ARCHIVES_URL
126126
ARG NEXUS_USERNAME
127127
ARG NEXUS_PASSWORD

buildscripts/infrastructure/build-nodes/centos-7/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG IMAGE_CENTOS_7
22
# hadolint ignore=DL3006
3-
FROM ${IMAGE_CENTOS_7} as base
3+
FROM ${IMAGE_CENTOS_7} AS base
44

55
SHELL ["/bin/bash", "-c"]
66
ENV PATH="/opt/bin:${PATH}"
@@ -120,7 +120,7 @@ RUN yum -y makecache \
120120
# - cmake is needed for e.g. building re2
121121
# - openssl is needed by Python 3.7+
122122
# - python is needed by our build / test chain
123-
FROM base as builder
123+
FROM base AS builder
124124
ARG NEXUS_ARCHIVES_URL
125125
ARG NEXUS_USERNAME
126126
ARG NEXUS_PASSWORD

buildscripts/infrastructure/build-nodes/centos-8/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG IMAGE_CENTOS_8
22
# hadolint ignore=DL3006
3-
FROM ${IMAGE_CENTOS_8} as base
3+
FROM ${IMAGE_CENTOS_8} AS base
44

55
SHELL ["/bin/bash", "-c"]
66
ENV LC_ALL=C.UTF-8 LANG=C.UTF-8 PATH="/opt/bin:${PATH}"
@@ -126,7 +126,7 @@ RUN if test -f /usr/lib/rpm/redhat/redhat-annobin-cc1; then \
126126
# - cmake is needed for e.g. building re2
127127
# - openssl is needed by Python 3.7+
128128
# - python is needed by our build / test chain
129-
FROM base as builder
129+
FROM base AS builder
130130
ARG NEXUS_ARCHIVES_URL
131131
ARG NEXUS_USERNAME
132132
ARG NEXUS_PASSWORD

buildscripts/infrastructure/build-nodes/debian-10/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG IMAGE_DEBIAN_10
22
# hadolint ignore=DL3006
3-
FROM ${IMAGE_DEBIAN_10} as base
3+
FROM ${IMAGE_DEBIAN_10} AS base
44

55
SHELL ["/bin/bash", "-c"]
66
ENV DEBIAN_FRONTEND=noninteractive LC_ALL=C.UTF-8 LANG=C.UTF-8 PATH="/opt/bin:${PATH}"
@@ -76,7 +76,7 @@ RUN apt-get update \
7676
# - cmake is needed for e.g. building re2
7777
# - openssl is needed by Python 3.7+
7878
# - python is needed by our build / test chain
79-
FROM base as builder
79+
FROM base AS builder
8080
ARG NEXUS_ARCHIVES_URL
8181
ARG NEXUS_USERNAME
8282
ARG NEXUS_PASSWORD

buildscripts/infrastructure/build-nodes/debian-11/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG IMAGE_DEBIAN_11
22
# hadolint ignore=DL3006
3-
FROM ${IMAGE_DEBIAN_11} as base
3+
FROM ${IMAGE_DEBIAN_11} AS base
44

55
SHELL ["/bin/bash", "-c"]
66
ENV DEBIAN_FRONTEND=noninteractive LC_ALL=C.UTF-8 LANG=C.UTF-8 PATH="/opt/bin:${PATH}"
@@ -75,7 +75,7 @@ RUN apt-get update \
7575
# - cmake is needed for e.g. building re2
7676
# - openssl is needed by Python 3.7+
7777
# - python is needed by our build / test chain
78-
FROM base as builder
78+
FROM base AS builder
7979
ARG NEXUS_ARCHIVES_URL
8080
ARG NEXUS_USERNAME
8181
ARG NEXUS_PASSWORD

buildscripts/infrastructure/build-nodes/debian-12/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG IMAGE_DEBIAN_12
22
# hadolint ignore=DL3006
3-
FROM ${IMAGE_DEBIAN_12} as base
3+
FROM ${IMAGE_DEBIAN_12} AS base
44

55
SHELL ["/bin/bash", "-c"]
66
ENV DEBIAN_FRONTEND=noninteractive LC_ALL=C.UTF-8 LANG=C.UTF-8 PATH="/opt/bin:${PATH}"
@@ -73,7 +73,7 @@ RUN apt-get update \
7373
# - cmake is needed for e.g. building re2
7474
# - openssl is needed by Python 3.7+
7575
# - python is needed by our build / test chain
76-
FROM base as builder
76+
FROM base AS builder
7777
ARG NEXUS_ARCHIVES_URL
7878
ARG NEXUS_USERNAME
7979
ARG NEXUS_PASSWORD

buildscripts/infrastructure/build-nodes/sles-12sp5/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG IMAGE_SLES_12SP5
22
# hadolint ignore=DL3006
3-
FROM ${IMAGE_SLES_12SP5} as base
3+
FROM ${IMAGE_SLES_12SP5} AS base
44

55
SHELL ["/bin/bash", "-c"]
66
ENV PATH="/opt/bin:${PATH}"
@@ -99,7 +99,7 @@ ENV PATH="/usr/lib/mit/bin:${PATH}"
9999
# - cmake is needed for e.g. building re2
100100
# - openssl is needed by Python 3.7+
101101
# - python is needed by our build / test chain
102-
FROM base as builder
102+
FROM base AS builder
103103
ARG NEXUS_ARCHIVES_URL
104104
ARG NEXUS_USERNAME
105105
ARG NEXUS_PASSWORD

buildscripts/infrastructure/build-nodes/sles-15sp1/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG IMAGE_SLES_15SP1
22
# hadolint ignore=DL3006
3-
FROM ${IMAGE_SLES_15SP1} as base
3+
FROM ${IMAGE_SLES_15SP1} AS base
44

55
SHELL ["/bin/bash", "-c"]
66
ENV PATH="/opt/bin:${PATH}"
@@ -103,7 +103,7 @@ ENV PATH="/usr/lib/mit/bin:${PATH}"
103103
# - cmake is needed for e.g. building re2
104104
# - openssl is needed by Python 3.7+
105105
# - python is needed by our build / test chain
106-
FROM base as builder
106+
FROM base AS builder
107107
ARG NEXUS_ARCHIVES_URL
108108
ARG NEXUS_USERNAME
109109
ARG NEXUS_PASSWORD

buildscripts/infrastructure/build-nodes/sles-15sp2/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG IMAGE_SLES_15SP2
22
# hadolint ignore=DL3006
3-
FROM ${IMAGE_SLES_15SP2} as base
3+
FROM ${IMAGE_SLES_15SP2} AS base
44

55
SHELL ["/bin/bash", "-c"]
66
ENV PATH="/opt/bin:${PATH}"
@@ -100,7 +100,7 @@ ENV PATH="/usr/lib/mit/bin:${PATH}"
100100
# - cmake is needed for e.g. building re2
101101
# - openssl is needed by Python 3.7+
102102
# - python is needed by our build / test chain
103-
FROM base as builder
103+
FROM base AS builder
104104
ARG NEXUS_ARCHIVES_URL
105105
ARG NEXUS_USERNAME
106106
ARG NEXUS_PASSWORD

buildscripts/infrastructure/build-nodes/sles-15sp3/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG IMAGE_SLES_15SP3
22
# hadolint ignore=DL3006
3-
FROM ${IMAGE_SLES_15SP3} as base
3+
FROM ${IMAGE_SLES_15SP3} AS base
44

55
SHELL ["/bin/bash", "-c"]
66
ENV PATH="/opt/bin:${PATH}"
@@ -93,7 +93,7 @@ ENV PATH="/usr/lib/mit/bin:${PATH}"
9393
# - cmake is needed for e.g. building re2
9494
# - openssl is needed by Python 3.7+
9595
# - python is needed by our build / test chain
96-
FROM base as builder
96+
FROM base AS builder
9797
ARG NEXUS_ARCHIVES_URL
9898
ARG NEXUS_USERNAME
9999
ARG NEXUS_PASSWORD

0 commit comments

Comments
 (0)