ark

package module
v0.0.0-...-49d2269 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2024 License: MIT Imports: 0 Imported by: 0

README

Ark

To start your Phoenix server:

  • Run mix setup to install and setup dependencies
  • Start Phoenix endpoint with mix phx.server or inside IEx with iex -S mix phx.server

Now you can visit localhost:4000 from your browser.

Ready to run in production? Please check our deployment guides.

Learn more

Services

Inspiration / Reference

https://fly.io/blog/carving-the-scheduler-out-of-our-orchestrator/ https://grafana.com/blog/2024/02/09/how-i-write-http-services-in-go-after-13-years/#handle-decodingencoding-in-one-place https://betterstack.com/community/guides/logging/zerolog/ https://github.com/fly-apps/postgres-flex

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppBuildDefinition

type AppBuildDefinition struct {
	Dockerfile  string            `toml:"dockerfile"`
	Ignorefile  string            `toml:"ignorefile"`
	BuildTarget string            `toml:"build_target"`
	Args        map[string]string `toml:"args"`
}

type AppDefinition

type AppDefinition struct {
	Name        string                       `toml:"-"`
	Type        string                       `toml:"type"`
	RepoUrl     string                       `toml:"repo_url"`
	Build       AppBuildDefinition           `toml:"build"`
	Deploy      AppDeployDefinition          `toml:"deploy"`
	Env         map[string]string            `toml:"env"`
	HttpService AppHttpServiceDefinition     `toml:"http_service"`
	HealthCheck AppHealthCheckDefinition     `toml:"health_check"`
	Disks       map[string]AppDiskDefinition `toml:"disks"`
}

type AppDeployDefinition

type AppDeployDefinition struct {
	Command        string `toml:"command"`
	ReleaseCommand string `toml:"release_command"`
}

type AppDiskDefinition

type AppDiskDefinition struct {
	MountPath string `toml:"mount_path"`
	Size      string `toml:"size"`
}

type AppHealthCheckDefinition

type AppHealthCheckDefinition struct {
	GracePeriod string `toml:"grace_period"`
	Interval    string `toml:"interval"`
	Timeout     string `toml:"timeout"`
	Command     string `toml:"command"`
	Request     string `toml:"request"`
}

type AppHttpServiceDefinition

type AppHttpServiceDefinition struct {
	ContainerPort string `toml:"container_port"`
	KeepAlive     bool   `toml:"keep_alive"`
}

type ServiceDefinition

type ServiceDefinition struct {
	Name       string            `toml:"-"`
	Image      string            `toml:"image"`
	RepoUrl    string            `toml:"repo_url"`
	Dockerfile string            `toml:"dockerfile"`
	Env        map[string]string `toml:"env"`
}

type StackDefinition

type StackDefinition struct {
	FileVersion string                       `toml:"file_version"`
	Version     string                       `toml:"version"`
	StackName   string                       `toml:"stack"`
	RootApp     string                       `toml:"root_app"`
	Apps        map[string]AppDefinition     `toml:"apps"`
	Services    map[string]ServiceDefinition `toml:"services"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL