Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
a85bda13
Commit
a85bda13
authored
Jan 24, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tech(docker-dev): update dev docker for graphite
parent
1a708da1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
54 deletions
+36
-54
docker/blocks/graphite/Dockerfile
+28
-46
docker/blocks/graphite/fig
+7
-1
docker/blocks/graphite/files/my_htpasswd
+1
-0
docker/blocks/graphite/files/supervisord.conf
+0
-7
No files found.
docker/blocks/graphite/Dockerfile
View file @
a85bda13
from
ubuntu:14.10
from
ubuntu:14.04
run
apt-get
-y
update
run
apt-get
-y
update
run
apt-get
-y
install software-properties-common
run
apt-get
-y
install python-software-properties
&&
\
add-apt-repository ppa:chris-lea/node.js
&&
\
apt-get
-y
update
run
apt-get
-y
install python-django-tagging python-simplejson python-memcache
\
python-ldap python-cairo python-django python-twisted
\
python-pysqlite2 python-support python-pip gunicorn
\
supervisor nginx-light nodejs git wget curl
# Install statsd
run
mkdir /src
&&
git clone https://github.com/etsy/statsd.git /src/statsd
run
apt-get
-y
install libcairo2-dev libffi-dev pkg-config python-dev python-pip fontconfig apache2 libapache2-mod-wsgi git-core collectd memcached gcc g++ make supervisor nginx-light gunicorn
run
cd
/usr/local/src
&&
git clone https://github.com/graphite-project/graphite-web.git
run
cd
/usr/local/src
&&
git clone https://github.com/graphite-project/carbon.git
run
cd
/usr/local/src
&&
git clone https://github.com/graphite-project/whisper.git
run
cd
/usr/local/src/whisper
&&
git checkout master
&&
python setup.py install
run
cd
/usr/local/src/carbon
&&
git checkout 0.9.x
&&
python setup.py install
run
cd
/usr/local/src/graphite-web
&&
git checkout 0.9.x
&&
python check-dependencies.py
;
python setup.py install
# statsd
add
./files/statsd_config.js /src/statsd/config.js
run
cd
/usr/local/src/carbon
&&
git checkout 0.9.x
&&
pip install
-r
requirements.txt
;
python setup.py install
run
cd
/usr/local/src/graphite-web
&&
git checkout 0.9.x
&&
pip install
-r
requirements.txt
;
python check-dependencies.py
;
python setup.py install
# Add graphite config
add
./files/initial_data.json /opt/graphite/webapp/graphite/initial_data.json
add
./files/local_settings.py /opt/graphite/webapp/graphite/local_settings.py
add
./files/carbon.conf /opt/graphite/conf/carbon.conf
add
./files/storage-schemas.conf /opt/graphite/conf/storage-schemas.conf
add
./files/storage-aggregation.conf /opt/graphite/conf/storage-aggregation.conf
add
./files/events_views.py /opt/graphite/webapp/graphite/events/views.py
run
mkdir
-p
/opt/graphite/storage/whisper
run
touch /opt/graphite/storage/graphite.db /opt/graphite/storage/index
run
chown
-R
www-data /opt/graphite/storage
run
chmod 0775 /opt/graphite/storage /opt/graphite/storage/whisper
run
chmod 0664 /opt/graphite/storage/graphite.db
run
cd
/opt/graphite/webapp/graphite
&&
python manage.py syncdb
--noinput
add
./files/initial_data.json /opt/graphite/webapp/graphite/initial_data.json
add
./files/local_settings.py /opt/graphite/webapp/graphite/local_settings.py
add
./files/carbon.conf /opt/graphite/conf/carbon.conf
add
./files/storage-schemas.conf /opt/graphite/conf/storage-schemas.conf
add
./files/storage-aggregation.conf /opt/graphite/conf/storage-aggregation.conf
add
./files/events_views.py /opt/graphite/webapp/graphite/events/views.py
run
mkdir
-p
/opt/graphite/storage/whisper
run
touch /opt/graphite/storage/graphite.db /opt/graphite/storage/index
run
chown
-R
www-data /opt/graphite/storage
run
chmod 0775 /opt/graphite/storage /opt/graphite/storage/whisper
run
chmod 0664 /opt/graphite/storage/graphite.db
run
cd
/opt/graphite/webapp/graphite
&&
python manage.py syncdb
--noinput
add
./files/my_htpasswd /etc/nginx/.htpasswd
# Add system service config
add
./files/nginx.conf /etc/nginx/nginx.conf
add
./files/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
add
./files/nginx.conf /etc/nginx/nginx.conf
add
./files/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
# Nginx
#
# graphite
expose
80
expose
80
# Carbon line receiver port
expose
2003
expose
2003
# Carbon cache query port
expose
7002
# Statsd UDP port
expose
8125/udp
# Statsd Management port
expose
8126
expose
7002
VOLUME
["/var/lib/elasticsearch"]
VOLUME
["/opt/graphite/storage/whisper"]
VOLUME
["/var/lib/log/supervisor"]
cmd
["/usr/bin/supervisord"]
cmd
["/usr/bin/supervisord"]
# vim:ts=8:noet:
docker/blocks/graphite/fig
View file @
a85bda13
graphite:
build: blocks/graphite
ports:
- "8776:80"
- "8080:80"
- "2003:2003"
volumes:
- /var/docker/gfdev/graphite:/opt/graphite/storage/whisper
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
docker/blocks/graphite/files/my_htpasswd
0 → 100644
View file @
a85bda13
grafana:$apr1$4R/20xhC$8t37jPP5dbcLr48btdkU//
docker/blocks/graphite/files/supervisord.conf
View file @
a85bda13
...
...
@@ -24,10 +24,3 @@ stdout_logfile = /var/log/supervisor/%(program_name)s.log
stderr_logfile
= /
var
/
log
/
supervisor
/%(
program_name
)
s
.
log
autorestart
=
true
[
program
:
statsd
]
;
user
=
www
-
data
command
= /
usr
/
bin
/
node
/
src
/
statsd
/
stats
.
js
/
src
/
statsd
/
config
.
js
stdout_logfile
= /
var
/
log
/
supervisor
/%(
program_name
)
s
.
log
stderr_logfile
= /
var
/
log
/
supervisor
/%(
program_name
)
s
.
log
autorestart
=
true
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment