Skip to content

Commit

Permalink
Merge pull request #2 from IntimateMerger/feature/3.6.9
Browse files Browse the repository at this point in the history
update amc
  • Loading branch information
Kazuki Matsuda authored Aug 1, 2016
2 parents 856787e + 45a31a7 commit a2cdfc9
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
FROM debian:jessie

ENV TZ=Asia/Tokyo \
VERSION=3.6.8
VERSION=3.6.9

RUN apt-get update &&\
apt-get install -y wget gcc python python-dev &&\
wget "http://www.aerospike.com/artifacts/aerospike-amc-community/${VERSION}/aerospike-amc-community-${VERSION}.all.x86_64.deb" &&\
dpkg -i aerospike-amc-community-${VERSION}.all.x86_64.deb &&\
rm -f aerospike-amc-community-${VERSION}.all.x86_64.deb &&\
RUN apt-get update && \
apt-get install -y --no-install-recommends wget gcc python python-dev && \
wget "http://www.aerospike.com/artifacts/aerospike-amc-community/${VERSION}/aerospike-amc-community-${VERSION}.all.x86_64.deb" && \
dpkg -i aerospike-amc-community-${VERSION}.all.x86_64.deb && \
rm -f aerospike-amc-community-${VERSION}.all.x86_64.deb && \
apt-get clean && \
rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/* && \
dpkg --remove wget && \
ln -sf /dev/stdout /var/log/amc/aerospike_amc.log

RUN TXT='\ \ \ \ new_sets = []\n for st in response["sets"]:\n try:\n st["set_name"].encode("ascii")\n new_sets.append(st)\n except:\n pass\n response["sets"] = new_sets' &&\
# Patch
RUN TXT='\ new_sets = []\n for st in response["sets"]:\n try:\n st["set_name"].encode("ascii")\n new_sets.append(st)\n except:\n pass\n response["sets"] = new_sets' && \
sed -i -e "180i $TXT" /opt/amc/server/flaskapp.py

EXPOSE 8081

CMD /opt/amc/bin/gunicorn --config=/etc/amc/config/gunicorn_config.py flaskapp:app
CMD /opt/amc/bin/gunicorn --config=/etc/amc/config/gunicorn_config.py flaskapp:app

0 comments on commit a2cdfc9

Please sign in to comment.