You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For our Nix integration we ended up taking the approach of generating a Dockerfile which is based on the nixos/nix image (and copying default.nix into it). Currently, the code for this is spread between cli-nix.ts and NixGenerator.nix.
A more general approach might be to refactor generators so that Dockter can support multiple base images. e.g. including Alpine (for small very, self contained, images)
A new command line option, base, would be used to specify the base image
dockter build --base=ubuntu:18.10
With aliases for commonly used images.
dockter build --<ubuntu,nix,alpine>
The best way to do this is refactoring is to have generators for each base image type e.g. UbuntuGenerator, NixGenerator and get rid of the language specific generators e.g. PythonGenerator.
The text was updated successfully, but these errors were encountered:
For our Nix integration we ended up taking the approach of generating a
Dockerfile
which is based on thenixos/nix
image (and copyingdefault.nix
into it). Currently, the code for this is spread betweencli-nix.ts
andNixGenerator.nix
.A more general approach might be to refactor generators so that Dockter can support multiple base images. e.g. including Alpine (for small very, self contained, images)
A new command line option,
base
, would be used to specify the base imageWith aliases for commonly used images.
The best way to do this is refactoring is to have generators for each base image type e.g.
UbuntuGenerator
,NixGenerator
and get rid of the language specific generators e.g.PythonGenerator
.The text was updated successfully, but these errors were encountered: