Akd v0.2.1 mix akd.gen.dockerfile View Source

This task generates a dockerfile module which can be used to run commands on a Akd.Deployment.t struct.

Info:

mix akd.gen.dockerfile expects a filename, type, os, osversion and other options:

$ `@{tsk} --type <type> --os <os> --osversion <osversion> <filename>`

Usage:

$ `@{tsk} --type base --os centos --osversion 7 Dockerfile`

Options:

Option Alias Description

—type -t Type of Dockerfile

                        Can be either `build` ot `base`

—path -p Path to where the dockerfile will be created.

OPTIONS ONLY FOR BASE DOCKERFILES:

—os NO-ALIAS OS for which Dockerfile should be generated.

                        Currently, there's support for `centos` and `ubuntu`

—osversion NO-ALIAS Version of OS

—nodejs NO-ALIAS NodeJS version to be installed on base image.

                        This switch is only for `base` build.

—elixir NO-ALIAS Elixir version to be installed on base image.

                        This switch is only for `base` build.

—erlang NO-ALIAS Erlang version to be installed on base image.

                        This switch is only for `base` build.

—asdf NO-ALIAS Asdf version to be used to install elixir and erlang

OPTIONS ONLY FOR BUILD DOCKERFILES:

—base -b Name of the base image on top of which build will

                        happen. This can be done by running `docker build`
                        for `base` Dockerfile with a flag `-t`

—cleanup NO-ALIAS Specifies whether to do the cleanup on the

                        build image. This removes the app code and just
                        keeps the built release.

—phxapps NO-ALIAS Accumulates all the phoenix app paths in the release.

—envs -e Accumulates all the environment variables that

                        need to be defined while building through
                        distillery.

—mixenv NO-ALIAS Specifies the mix environment to be set while

                        while building the release

—nodename -n Specifies the desired name of the release.

—cmd NO-ALIAS This corresponds the the command that will be ran

                        on the entry point of Docker container

Link to this section Summary

Functions

Runs the mix dockerfile to generate the dockerfile module

Link to this section Functions

Runs the mix dockerfile to generate the dockerfile module.