We released this feature sometime ago but until now haven’t officially announced it.
Dockerfile templates allow you to push variables to our resin builders. Current available variables are
What this allows you to do is push your repository to any application with any device type without having to change any code.
For example our current base-image naming scheme is:
Therefore we could use the
RESIN_MACHINE_NAME variable to push apps to multiple applications without changing the device type. All we would need to do is adjust the
FROM command and rename our
Dockerfile.template like so:
Our builders then infer
RESIN_MACHINE_NAME from what “device type” application you are pushing to. So if the resin remote you are pushing to is associated to an Intel Edison application, the machine name will be edison and an i386 architecture base image will be built.
You can read more about them in our docs
If you’d like to see more Dockerfile variables let us know the usecase and we’d be happy to implement!