Skip to content

Instantly share code, notes, and snippets.

@petemounce
Last active Jan 8, 2017
Embed
What would you like to do?
docker hackday

Anthracite

boot2docker start
docker --tls build -t=anthracite .
docker --tls run -e ELASTICSEARCH_HOSTNAME=your-es-host.com anthracite
import os
listen_host = '0.0.0.0' # defaults to "all interfaces"
listen_port = 8081
opsreport_start = '01/01/2013 12:00:00 AM'
timezone = "UTC"
es_url = 'http://' + os.environ['ELASTICSEARCH_HOSTNAME'] + ':9200'
es_index = 'anthracite-docker-hacks'
recommended_tags = [
]
from model import Attribute
extra_attributes = [
]
helptext = {
}
plugins = []
FROM ubuntu
RUN apt-get update
RUN apt-get -y install curl wget git vim python python-pip python-dev
# Install anthracite
RUN git clone --recursive https://github.com/Dieterbe/anthracite.git /opt/anthracite
add ./config.py /opt/anthracite/config.py
EXPOSE 8081
CMD ["python", "/opt/anthracite/anthracite-web.py"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment