Beware of Dangling Backslashes in RUN Commands in Your Dockerfile

Опубликовано: 05 Октябрь 2024
на канале: Nick Janetakis
279
16

This one misplaced character can cause tricky to debug error messages.

Hit the subscribe button to receive more videos like this!

REFERENCE LINKS
---------------------------------------------------
► https://nickjanetakis.com/blog/beware...
► https://github.com/hadolint/hadolint/...

COURSES
---------------------------------------------------
Courses I've created that focus on web dev and deployment topics.

► https://nickjanetakis.com/courses/

THE TOOLS I USE / GEAR
---------------------------------------------------
► https://nickjanetakis.com/blog/the-to...

FOLLOW ME ELSEWHERE
---------------------------------------------------
► Twitter:   / nickjanetakis  
► GitHub: https://github.com/nickjj

TIMESTAMPS
---------------------------------------------------
0:00 -- Intro
0:11 -- Someone had this issue on IRC
0:46 -- Demoing the first error and going over the Dockerfile
2:09 -- Was test a reserved keyword? Nope
2:38 -- Reducing variables to help find the root cause
4:01 -- Identifying the root cause
5:03 -- This was an interesting issue
5:40 -- Maybe Hadolint could detect this in the future
6:34 -- Can it be a lint rule? I opened an issue on GitHub