Skip to content

Commit 869b476

Browse files
Alex StewartJoshuaWatt
authored andcommitted
image: use consistent casing in FROM directives
As of docker runtime 28.0.1, the build command will issue a warning if the FROM and AS keywords have differing cases. It's annoying, but OK. ``` WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 445) ``` Make the keywords have consistent casing, to satisfy the warning. Signed-off-by: Alex Stewart <alex.stewart@emerson.com>
1 parent 0a79eef commit 869b476

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

image/Dockerfile

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ RUN set -x && mkdir -p /usr/src/util-linux && \
150150
#
151151
# Prebuilt static tini
152152
#
153-
FROM prebuilt-base as prebuilt-tini
153+
FROM prebuilt-base AS prebuilt-tini
154154
ENV PYREX_BASE none
155155
ENV TINI_SHA1=c3b92ce685d0387c5d508f1856aa6d4cae25db8d
156156
RUN mkdir -p /usr/src/tini && \
@@ -167,7 +167,7 @@ RUN mkdir -p /usr/src/tini && \
167167
#
168168
# Ubuntu 14.04 base
169169
#
170-
FROM ubuntu:trusty as ubuntu-14.04-base
170+
FROM ubuntu:trusty AS ubuntu-14.04-base
171171
ENV PYREX_BASE none
172172
LABEL maintainer="Joshua Watt <Joshua.Watt@garmin.com>"
173173

@@ -203,7 +203,7 @@ RUN ldconfig -v
203203
#
204204
# Ubuntu 16.04 Base
205205
#
206-
FROM ubuntu:xenial as ubuntu-16.04-base
206+
FROM ubuntu:xenial AS ubuntu-16.04-base
207207
ENV PYREX_BASE none
208208
LABEL maintainer="Joshua Watt <Joshua.Watt@garmin.com>"
209209

@@ -243,7 +243,7 @@ COPY --from=prebuilt-tini /dist/tini /
243243
#
244244
# Ubuntu 18.04 Base
245245
#
246-
FROM ubuntu:bionic as ubuntu-18.04-base
246+
FROM ubuntu:bionic AS ubuntu-18.04-base
247247
ENV PYREX_BASE none
248248
LABEL maintainer="Joshua Watt <Joshua.Watt@garmin.com>"
249249

@@ -273,7 +273,7 @@ COPY --from=prebuilt-tini /dist/tini /
273273
#
274274
# Ubuntu 20.04 Base
275275
#
276-
FROM ubuntu:focal as ubuntu-20.04-base
276+
FROM ubuntu:focal AS ubuntu-20.04-base
277277
ENV PYREX_BASE none
278278
LABEL maintainer="Joshua Watt <Joshua.Watt@garmin.com>"
279279

@@ -303,7 +303,7 @@ COPY --from=prebuilt-tini /dist/tini /
303303
#
304304
# Ubuntu 22.04 Base
305305
#
306-
FROM ubuntu:jammy as ubuntu-22.04-base
306+
FROM ubuntu:jammy AS ubuntu-22.04-base
307307
ENV PYREX_BASE none
308308
LABEL maintainer="Joshua Watt <Joshua.Watt@garmin.com>"
309309

@@ -333,7 +333,7 @@ COPY --from=prebuilt-tini /dist/tini /
333333
#
334334
# Ubuntu 24.04 Base
335335
#
336-
FROM ubuntu:noble as ubuntu-24.04-base
336+
FROM ubuntu:noble AS ubuntu-24.04-base
337337
ENV PYREX_BASE none
338338
LABEL maintainer="Joshua Watt <Joshua.Watt@garmin.com>"
339339

@@ -363,7 +363,7 @@ COPY --from=prebuilt-tini /dist/tini /
363363
#
364364
# Ubuntu 14.04 Yocto Base
365365
#
366-
FROM ubuntu-14.04-base as ubuntu-14.04-oe
366+
FROM ubuntu-14.04-base AS ubuntu-14.04-oe
367367
ENV PYREX_BASE none
368368
LABEL maintainer="Joshua Watt <Joshua.Watt@garmin.com>"
369369

@@ -442,7 +442,7 @@ COPY --from=prebuilt-icecream /dist/icecream /
442442
#
443443
# Ubuntu 16.04 Yocto Base
444444
#
445-
FROM ubuntu-16.04-base as ubuntu-16.04-oe
445+
FROM ubuntu-16.04-base AS ubuntu-16.04-oe
446446
ENV PYREX_BASE none
447447
LABEL maintainer="Joshua Watt <Joshua.Watt@garmin.com>"
448448

@@ -516,7 +516,7 @@ COPY --from=prebuilt-icecream /dist/icecream /
516516
#
517517
# Ubuntu 18.04 Base
518518
#
519-
FROM ubuntu-18.04-base as ubuntu-18.04-oe
519+
FROM ubuntu-18.04-base AS ubuntu-18.04-oe
520520
ENV PYREX_BASE none
521521
LABEL maintainer="Joshua Watt <Joshua.Watt@garmin.com>"
522522

@@ -599,7 +599,7 @@ COPY --from=prebuilt-icecream /dist/icecream /
599599
#
600600
# Ubuntu 20.04 Base
601601
#
602-
FROM ubuntu-20.04-base as ubuntu-20.04-oe
602+
FROM ubuntu-20.04-base AS ubuntu-20.04-oe
603603
ENV PYREX_BASE none
604604
LABEL maintainer="Joshua Watt <Joshua.Watt@garmin.com>"
605605

@@ -687,7 +687,7 @@ COPY --from=prebuilt-icecream /dist/icecream /
687687
#
688688
# Ubuntu 22.04 Base
689689
#
690-
FROM ubuntu-22.04-base as ubuntu-22.04-oe
690+
FROM ubuntu-22.04-base AS ubuntu-22.04-oe
691691
ENV PYREX_BASE none
692692
LABEL maintainer="Joshua Watt <Joshua.Watt@garmin.com>"
693693

@@ -764,7 +764,7 @@ COPY --from=prebuilt-icecream /dist/icecream /
764764
#
765765
# Ubuntu 24.04 Base
766766
#
767-
FROM ubuntu-24.04-base as ubuntu-24.04-oe
767+
FROM ubuntu-24.04-base AS ubuntu-24.04-oe
768768
ENV PYREX_BASE none
769769
LABEL maintainer="Joshua Watt <Joshua.Watt@garmin.com>"
770770

@@ -839,13 +839,13 @@ COPY --from=prebuilt-icecream /dist/icecream /
839839
#
840840
# Ubuntu 18.04 OE Test Image
841841
#
842-
FROM ubuntu-18.04-oe as ubuntu-18.04-oetest
842+
FROM ubuntu-18.04-oe AS ubuntu-18.04-oetest
843843
ENV PYREX_BASE none
844844

845845
#
846846
# Ubuntu 20.04 OE Test Image
847847
#
848-
FROM ubuntu-20.04-oe as ubuntu-20.04-oetest
848+
FROM ubuntu-20.04-oe AS ubuntu-20.04-oetest
849849
ENV PYREX_BASE none
850850

851851
#
@@ -890,7 +890,7 @@ ENV PYREX_BASE none
890890
# This stage sets up the minimal image startup and entry points. It also
891891
# ensures that the en_US.UTF-8 locale is installed and set correctly.
892892
#
893-
FROM ${PYREX_BASE} as pyrex-base
893+
FROM ${PYREX_BASE} AS pyrex-base
894894
ENV PYREX_BASE none
895895

896896
# Set Locales
@@ -928,7 +928,7 @@ CMD ["/usr/libexec/pyrex/run", "/bin/bash"]
928928
# Icecream destributed target setup correctly and install all of the desired
929929
# yocto dependencies.
930930
#
931-
FROM pyrex-base as pyrex-oe
931+
FROM pyrex-base AS pyrex-oe
932932
ENV PYREX_BASE none
933933

934934
# Setup Icecream distributed compiling client. The client tries several IPC
@@ -948,15 +948,15 @@ ENV ICECC_VERSION=/usr/share/icecc/toolchain/native-gcc.tar.gz
948948
#
949949
# OE build image. Includes many additional packages for testing
950950
#
951-
FROM pyrex-oe as pyrex-oetest
951+
FROM pyrex-oe AS pyrex-oetest
952952
ENV PYREX_BASE none
953953

954954
#
955955
# Garmin developer image. Same as regular Yocto-compatible target image except
956956
# it has additional Garmin-internal TLS root certificates installed into the
957957
# trust store to facilitate using internal Garmin hosts whose certificate chain
958958
# does not extend up to publicly registered CA's.
959-
FROM pyrex-oe as pyrex-oegarmin
959+
FROM pyrex-oe AS pyrex-oegarmin
960960
ENV PYREX_BASE none
961961

962962
RUN mkdir -p /usr/share/ca-certificates/garmin

0 commit comments

Comments
 (0)