chris-greaves / pencil Goto Github PK
View Code? Open in Web Editor NEW✏ A Tool to fill in the blanks in your files.
License: GNU General Public License v3.0
✏ A Tool to fill in the blanks in your files.
License: GNU General Public License v3.0
The package "ghcr.io/chris-greaves/pencil" does not support the arm64 platform.
Specify platform when building and pushing docker image. See here
For some more enterprise users, they might want to pull secrets from their existing Azure KeyVault. This would enable automated deployments to pull in large amounts of secrets and variables without having to build out an .env
file or pass them all in to docker-compose.
pencil --azure-kv <connection_string_with_key> ./config.yaml
and then {{ azure "KVSecret" }}
or {{ .Azure.KVSecret }}
This change would enable users to change deployments like:
DATABASE_URL=<value> DATABASE_DB=<value> DATABASE_USER=<value> DATABASE_PASS=<value> DATABASE_SECRET_KEY=<value> docker compose up -d
to
AZURECONNSTR=<value> docker compose up -d
When setting a variable containing a =
in the value, it isn't parsed correctly and therefore brakes configs.
Example below:
pencil:
image: ghcr.io/chris-greaves/pencil:v0.0.1
environment:
- AZURE_STORAGE_ACCOUNT="devstoreaccount1" # Default Azurite storage account
- AZURE_STORAGE_KEY="Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==" # Default azurite storage key
command:
- "/mnt/configs/"
volumes:
- ./tempo/tempo.yml:/mnt/configs/tempo.yml
- ./loki/loki.yml:/mnt/configs/loki.yml
Currently, the files are replaced in-place, meaning once it's run you can't revert to your template again.
This isn't an issue if you only plan on running the template once, but if you might want to change the values in the future, then the user needs to copy the template back in.
If we handled files with the extension .gotmpl
as templates and created the file next to it without that extension, then it would be rerunnable. Example below
Before:
app/
config.yml.gotmpl
After:
app/
config.yml
config.yml.gotmpl
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.