mix francis.release (Francis v0.1.20)

View Source

Generates Docker deployment files for Francis projects.

This task creates a Dockerfile and .dockerignore in the current working directory, using the project name and configuration. It is intended to simplify containerization and deployment of Francis-based applications.

Usage

mix francis.release [OPTIONS]

Command line options

  • -p, --port <port> - Port to expose in the Docker container (default: 4000).
  • --elixir-version <version> - Elixir version to use in the Docker image (default: 1.18.4).
  • --otp-version <version> - Erlang/OTP version to use in the Docker image (default: 27.3.4).

Example:

mix francis.release --port 8080 --elixir-version 1.16.2 --otp-version 26.2.1

This will generate a Dockerfile exposing port 8080 and using the specified Elixir and OTP versions. If you use some combination of versions that are not compatible it will fail when building the docker image.

All files are generated in the current working directory. Unknown options are ignored.

Summary

Callbacks

generate_files(args)

@callback generate_files(args :: list()) :: any()