Comments (2)
Thanks for your comments and issues, @epcim! I agree that would definitely be great to have methods for additional parameterization within the docker-makefile.
For my personal use cases, docker build-args have gone a long way towards addressing this need. Jinja is a little out of scope for my conception of this tool - if I personally needed this functionality, I'd likely just use a separate Jinja CLI tool to generate DockerMake.yml, rather than building templating into docker-make.
from dockermake.
I think so finally, jinja2 is out of scope. For anything other, I found pyInvoke (python kind of Makefile) can do the remaining magic quite well. https://github.com/epcim/docker-salt-formulas/blob/master/tasks.py
What I would like to see anyway is "args" to tasks names and have them available in FROM. Simply as python Template formatting stuff, not the jinja. I know it may pain for "keys" but it's doable.
# --build-arg os_codename=stretch
debian-${os_codename}:
FROM: debian:${os_codename}
from dockermake.
Related Issues (20)
- The included example doesn't work HOT 1
- --push-to-registry option fails due to typo in variable name
- get_console_width() failure can result in 'Inappropriate ioctl for device' HOT 1
- Missing placeholder HOT 1
- Since 0.5.7: Modules/images with no base image no longer allowed, breaks inclusion to multiple base images HOT 3
- Since 0.5.7, relative paths are computed differently HOT 2
- colons in image names cause trouble HOT 3
- pre-build step? HOT 4
- Build arg to use as an variable in makefile HOT 1
- BuildError on termcolor - TypeError: unicode argument expected, got 'str' HOT 1
- Update readme how --requires and --name should be used HOT 1
- --all option stops when target has no FROM defined HOT 2
- Build-time secrets: features and/or best practices with DockerMake (decision) HOT 4
- Evaluate selective squashing with secrets HOT 3
- port in docker registry url
- can't use tags in image names
- Is Python 2.7 Supported? HOT 1
- --pull does not propagate to docker build command
- Issue with PyYAML 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dockermake.