mirror of https://github.com/ekimekim/wubloader
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
451 B
Plaintext
15 lines
451 B
Plaintext
6 years ago
|
#!/bin/bash
|
||
|
|
||
|
set -eu
|
||
|
|
||
|
# We generate first, and capture the output, to avoid overwriting the file on error.
|
||
|
# To avoid jsonnet needing to exist locally, we run it in a container.
|
||
|
output=$(docker run -i sparkprime/jsonnet - < docker-compose.jsonnet)
|
||
|
|
||
|
{
|
||
|
echo "# DO NOT EDIT THIS FILE!"
|
||
|
echo "# This file is generated from docker-compose.jsonnet"
|
||
|
echo "# It can be generated by running ./generate-docker-compose"
|
||
|
echo "$output"
|
||
|
} > docker-compose.yml
|