Skip to content

Instantly share code, notes, and snippets.

@petemounce
Last active January 8, 2017 00:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save petemounce/825a022431a1504fcbe0 to your computer and use it in GitHub Desktop.
Save petemounce/825a022431a1504fcbe0 to your computer and use it in GitHub Desktop.
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