Skip to content

Commit 9c48d68

Browse files
authored
Merge pull request #125 from Guglio95/master
Fixed Dockerfile
2 parents 33e315e + f887b46 commit 9c48d68

File tree

2 files changed

+7
-31
lines changed

2 files changed

+7
-31
lines changed

Dockerfile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ FROM alpine
88
RUN apk add --update --no-cache nginx nodejs nodejs-npm git curl wget gcc ca-certificates \
99
python-dev py-pip musl-dev libffi-dev cairo supervisor bash \
1010
py-pyldap py-rrd &&\
11-
wget -q -O /etc/apk/keys/sgerrand.rsa.pub \
12-
https://raw.githubusercontent.com/sgerrand/alpine-pkg-glibc/master/sgerrand.rsa.pub &&\
13-
wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.26-r0/glibc-2.26-r0.apk &&\
14-
apk add --no-cache glibc-2.26-r0.apk &&\
15-
rm glibc-2.26-r0.apk &&\
11+
apk --no-cache add ca-certificates wget &&\
12+
wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub &&\
13+
wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.28-r0/glibc-2.28-r0.apk &&\
14+
apk add glibc-2.28-r0.apk &&\
15+
rm glibc-2.28-r0.apk &&\
1616
adduser -D -u 1000 -g 'www' www &&\
1717
pip install -U pip pytz gunicorn six --no-cache-dir &&\
1818
npm install -g wizzy &&\
@@ -43,7 +43,7 @@ RUN git clone --depth=1 --branch master https://github.com/etsy/statsd.git /
4343
# Install Grafana
4444
RUN mkdir /src/grafana &&\
4545
mkdir /opt/grafana &&\
46-
curl https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-4.6.3.linux-x64.tar.gz \
46+
curl https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-5.2.2.linux-amd64.tar.gz \
4747
-o /src/grafana.tar.gz &&\
4848
tar -xzf /src/grafana.tar.gz -C /opt/grafana --strip-components=1 &&\
4949
rm /src/grafana.tar.gz
@@ -68,6 +68,7 @@ ADD ./graphite/storage-schemas.conf /opt/graphite/conf/storage-schemas.conf
6868
ADD ./graphite/storage-aggregation.conf /opt/graphite/conf/storage-aggregation.conf
6969
RUN mkdir -p /opt/graphite/storage/whisper &&\
7070
mkdir -p /opt/graphite/storage/log/webapp &&\
71+
touch /opt/graphite/storage/log/webapp/info.log &&\
7172
touch /opt/graphite/storage/graphite.db /opt/graphite/storage/index &&\
7273
chown -R www /opt/graphite/storage &&\
7374
chmod 0775 /opt/graphite/storage /opt/graphite/storage/whisper &&\

nginx/nginx.conf

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -52,31 +52,6 @@ http {
5252
proxy_busy_buffers_size 64k;
5353
proxy_temp_file_write_size 64k;
5454
}
55-
location /graphite/ {
56-
proxy_pass http://127.0.0.1:8000/;
57-
proxy_set_header X-Real-IP $remote_addr;
58-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
59-
proxy_set_header X-Forwarded-Proto $scheme;
60-
proxy_set_header X-Forwarded-Server $host;
61-
proxy_set_header X-Forwarded-Host $host;
62-
proxy_set_header Host $host;
63-
64-
client_max_body_size 10m;
65-
client_body_buffer_size 128k;
66-
67-
proxy_connect_timeout 90;
68-
proxy_send_timeout 90;
69-
proxy_read_timeout 90;
70-
71-
proxy_buffer_size 4k;
72-
proxy_buffers 4 32k;
73-
proxy_busy_buffers_size 64k;
74-
proxy_temp_file_write_size 64k;
75-
76-
add_header Access-Control-Allow-Origin "*";
77-
add_header Access-Control-Allow-Methods "GET, OPTIONS";
78-
add_header Access-Control-Allow-Headers "origin, authorization, accept";
79-
}
8055
}
8156

8257
server {

0 commit comments

Comments
 (0)