Skip to content

fractos/statika-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Statika wrapped in Docker

This is the Docker wrapper for Statika

Running

docker run -t -i --rm \
	--env CONFIGURATION_URL=<s3-url> \
	--env SERVICES_URL=<s3-url> \
	--env AWS_REGION=<aws-region> \
	fractos/statika:latest

e.g.

docker run -t -i --rm \
	--env CONFIGURATION_URL=s3://mybucket/statika-conf.json \
	--env SERVICES_URL=s3://mybucket/statika-services.json \
	--env AWS_REGION=eu-west-1 \
	fractos/statika:latest

Configuration file format

{
  "cluster": "<cluster-name>",
  "sleepTimeSeconds": <time-in-seconds>
}

Services file format

[
  {
    "serviceName": "<ecs-service-name>",
    "exposedContainerName": "<container-name-to-balance>",
    "loadBalancerName": "<name-of-classic-load-balancer>"
  }
]

This is an array of JSON objects.