Skip to content

Commit

Permalink
Pushed by gbuild.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Middleton committed Dec 26, 2017
1 parent 0b27112 commit e02a79c
Show file tree
Hide file tree
Showing 33 changed files with 711 additions and 776 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
gaze-control/docs/source/_static/
gaze-control/docs/source/_templates/
gaze/docs/source/_static/
gaze/docs/source/_templates/
gaze-web/gazeweb/
!/docs/build/
/site/
33 changes: 18 additions & 15 deletions gaze-control/Dockerfile → Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,40 +10,43 @@
# ==`==` ==` ==`
# gaze.monokal.io

FROM python:3.6.1-alpine
FROM python:alpine

# Alpine packages to install.
ENV APK_PACKAGES \
alpine-sdk \
libffi-dev \
openssl-dev \
tzdata
tzdata \
nodejs \
nginx

# PyPI packages to install.
ENV PIP_PACKAGES \
docker \
docker-compose \
termcolor \
jinja2 \
tabulate
tabulate \
pyyaml \
flask \
gunicorn

# Install the Alpine packages.
RUN apk --no-cache add $APK_PACKAGES

# Configure the system time.
RUN apk add tzdata && \
# Install the above packages, configure system time and create the gazectl directory.
RUN apk --no-cache add $APK_PACKAGES && \
pip --no-cache-dir install $PIP_PACKAGES && \
cp /usr/share/zoneinfo/Europe/London /etc/localtime && \
echo "Europe/London" > /etc/timezone && \
apk del tzdata

# Install the PyPI packages.
RUN pip install $PIP_PACKAGES

# Drop gazectl in place.
RUN mkdir -p /opt/gazectl
apk del tzdata && \
mkdir -p /opt/gazectl

WORKDIR /opt/gazectl
COPY gaze .

COPY gazectl .
# Compile Python source, then remove it.
RUN python -m compileall -b .; \
find . -name "*.py" -type f -print -delete

ENTRYPOINT ["python", "gazectl.py"]
ENTRYPOINT ["python", "gazectl.pyc"]
4 changes: 3 additions & 1 deletion GAZE.iml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/gaze" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
Expand Down

0 comments on commit e02a79c

Please sign in to comment.