Skip to content

HashiCorp configuration langue (HCL) formatter on docker

Notifications You must be signed in to change notification settings

unidario/hclfmt-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

hclfmt on docker

hclfmt is a command to format and prettify HCL (HashiCorp configuration language) files.
I didn't write hclfmt. It was written by Fatih Arslan.

Run docker container

There are two modes.

  1. Overwrite ${PWD}/job.nomad with formatted output:
docker run --rm -v ${PWD}/job.nomad:/src/job.nomad unidario/hclfmt:latest -w job.nomad
  1. Print formatted output of ${PWD}/job.nomad to stdout:
docker run --rm -v ${PWD}/job.nomad:/src/job.nomad unidario/hclfmt:latest job.nomad

Build docker image locally

git clone https://github.com/unidario/hclfmt-docker.git
cd hclfmt-docker
docker build -t hclfmt:latest .

About

HashiCorp configuration langue (HCL) formatter on docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published