Using relative paths

It is best to use relative paths over absolute paths. A developer might have a certain filesystem or folder structure that does not exist in the environment where the deployment pipeline is running, so it is best to use relative paths so as not to create unintended breakages. It may be difficult at times to do this, but it is best to follow it as much as you can. Docker containers can map folder structures for each container; for example, if a Docker container is spawned on a particular part of the deployment pipeline, it can be mapped to a certain relative folder structure as well.

Get Hands-On Continuous Integration and Delivery now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.