[GH-ISSUE #1532] Dockerfile: FromAsCasing: 'as' and 'FROM' keywords' casing do not match #495

Closed
opened 2026-02-27 14:51:59 +03:00 by kerem · 1 comment
Owner

Originally created by @flyingfishflash on GitHub (Nov 9, 2024).
Original GitHub issue: https://github.com/netbootxyz/netboot.xyz/issues/1532

I'm performing a custom build netboot-xyz in a drone pipeline and am receiving the following warning:

 2 warnings found (use --debug to expand):
 - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 3)
 - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 14)
Dockerfile:15
--------------------
  14 |     FROM netbootxyz-${NBXYZ_OVERRIDES} as final
  15 | >>> RUN \
  16 | >>>   echo "**** running ansible ****" && \
  17 | >>>   cd /ansible && \
  18 | >>>   ansible-playbook -i inventory site.yml ${EXTRA_VARS}
  19 |  

Can this be resolved by fixing lines:
github.com/netbootxyz/netboot.xyz@cc085a7b60/Dockerfile (L3)
github.com/netbootxyz/netboot.xyz@cc085a7b60/Dockerfile (L14)

so that both the FROM and AS keywords are uppercase?


For context, this is my drone step:

  - name: build
    image: docker:dind
    depends_on:
      - apply upstream version
    volumes:
    - name: dockersocket
      path: /var/run/docker.sock
    commands:
      - pwd
      # place custom user overrides
      - cp -v netbootxyz-configuration/user_overrides.yml working/netbootxyz/
      # place custom menu templates (see corresponding user_overrides)
      - mkdir working/netbootxyz/roles/netbootxyz/templates/custom
      - cp -v netbootxyz-configuration/custom-menu-templates/* working/netbootxyz/roles/netbootxyz/templates/custom
      # build
      - cd working/netbootxyz
      - docker build --no-cache -t netboot-build -f Dockerfile .
      - cid=$(docker create netboot-build)
      - docker cp $cid:/mnt/ $PWD/buildout
      # place file containing upstream netboot.xyz version
      - cp -v version.txt buildout/upstream-version.txt
      # clean-up
      - docker container prune -f
      - docker image rm netboot-build
      - cd /drone/src/

Thanks!

Originally created by @flyingfishflash on GitHub (Nov 9, 2024). Original GitHub issue: https://github.com/netbootxyz/netboot.xyz/issues/1532 I'm performing a custom build netboot-xyz in a drone pipeline and am receiving the following warning: ``` 2 warnings found (use --debug to expand): - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 3) - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 14) Dockerfile:15 -------------------- 14 | FROM netbootxyz-${NBXYZ_OVERRIDES} as final 15 | >>> RUN \ 16 | >>> echo "**** running ansible ****" && \ 17 | >>> cd /ansible && \ 18 | >>> ansible-playbook -i inventory site.yml ${EXTRA_VARS} 19 | ``` --- Can this be resolved by fixing lines: https://github.com/netbootxyz/netboot.xyz/blob/cc085a7b602d235047f438b2f8e184b753f3e6e0/Dockerfile#L3 https://github.com/netbootxyz/netboot.xyz/blob/cc085a7b602d235047f438b2f8e184b753f3e6e0/Dockerfile#L14 so that both the FROM and AS keywords are uppercase? --- For context, this is my drone step: ```yaml - name: build image: docker:dind depends_on: - apply upstream version volumes: - name: dockersocket path: /var/run/docker.sock commands: - pwd # place custom user overrides - cp -v netbootxyz-configuration/user_overrides.yml working/netbootxyz/ # place custom menu templates (see corresponding user_overrides) - mkdir working/netbootxyz/roles/netbootxyz/templates/custom - cp -v netbootxyz-configuration/custom-menu-templates/* working/netbootxyz/roles/netbootxyz/templates/custom # build - cd working/netbootxyz - docker build --no-cache -t netboot-build -f Dockerfile . - cid=$(docker create netboot-build) - docker cp $cid:/mnt/ $PWD/buildout # place file containing upstream netboot.xyz version - cp -v version.txt buildout/upstream-version.txt # clean-up - docker container prune -f - docker image rm netboot-build - cd /drone/src/ ``` Thanks!
kerem 2026-02-27 14:51:59 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@flyingfishflash commented on GitHub (Nov 9, 2024):

@antonym thanks, know it's a small item.

<!-- gh-comment-id:2466437421 --> @flyingfishflash commented on GitHub (Nov 9, 2024): @antonym thanks, know it's a small item.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/netboot.xyz#495
No description provided.