druidfi/donn

By druidfi

Updated over 1 year ago

Docker image which compiles CSS (from SASS) and JS files.

Image
0

325

Donn

Docker image which compiles CSS (from SASS) and JS files.

Docker Hub has variants for Node 16 and 18 (arm64 and amd64).

Requirements

  • You mount your local path (e.g. Drupal theme) to /data in the container.
  • Your local path has folder src/scss which contains SASS files.
  • Your local path has folder src/js which contains JavaScript files.

Tools

Using image in your project

Examples on Drupal project:

docker run -it --rm -v $(pwd)/path/to/theme:/data druidfi/donn:node-18 gulp production
docker run -it --rm -v $(pwd)/path/to/theme:/data druidfi/donn:node-18 gulp development
docker run -it --rm -v $(pwd)/path/to/theme:/data druidfi/donn:node-18 gulp watch

Environment variables

Environment variables (and their default values) which can be used to change configuration:

  • BROWSERSLIST="last 2 version, not dead"
  • DIST_FOLDER=dist
  • SRC_FOLDER=src

Build images

Locally with M1:

docker buildx bake -f docker-bake.hcl --pull --progress plain --no-cache --load --set "*.platform=linux/arm64"

Build and push images to Docker Hub:

docker buildx bake -f docker-bake.hcl --pull --no-cache --push

Where the name "Donn" comes from?

In Irish mythology, Donn ("the dark one", from Proto-Celtic: *Dhuosnos) is an ancestor of the Gaels and is believed to have been a god of the dead. Donn is said to dwell in Tech Duinn (the "house of Donn" or "house of the dark one"), where the souls of the dead gather.

Docker Pull Command

docker pull druidfi/donn