Create a dockerignore
template for data-related files
Source: R/dockerignore-templates.R
dk_template_ignore_data.Rd
Creates a `dockerignore“ template with patterns to ignore common data files and directories.
Details
This template adds patterns to ignore common data files and directories that are often large and can significantly slow down Docker builds. It includes patterns for various data file formats:
data/
: Data directories*.csv
,*.tsv
: CSV and TSV files*.xls*
: Excel files*.db
,*.sqlite*
: Database files*.h5
,*.hdf5
: HDF5 files*.parquet
,*.feather
: Columnar storage formats*.json
: JSON files*.pickle
: Python pickle files*.rdata
,*.rda
: R data files
If raw = TRUE
, it also ignores common data directories:
data-raw/
,data/raw/
: Raw datadata/interim/
: Intermediate processed datadata/processed/
: Final processed datadata/external/
: Data from external sources
See also
dk_template_ignore_raw_data()
for raw data directories only &
dk_template_ignore_common()
for a more comprehensive template
Other dockerignore template functions:
dk_template_ignore_common()
,
dk_template_ignore_editor()
,
dk_template_ignore_git()
,
dk_template_ignore_node()
,
dk_template_ignore_os()
,
dk_template_ignore_packrat()
,
dk_template_ignore_python()
,
dk_template_ignore_r()
,
dk_template_ignore_raw_data()
,
dk_template_ignore_renv()