adapted docker files to new heatmap solution

This commit is contained in:
Per Qvarforth 2022-08-03 10:10:31 +00:00
parent f7142c031e
commit bd2704d6d8
3 changed files with 2 additions and 15 deletions

View File

@ -36,17 +36,6 @@ services:
- "db"
- "aprsc"
heatmaps:
build:
context: .
dockerfile: trackdirect-python2.dockerfile
volumes:
- $PWD/config/trackdirect.ini:/root/trackdirect/config/trackdirect.ini
- $PWD/heatmaps:/root/trackdirect/htdocs/public/heatmaps
command: /root/trackdirect/server/scripts/heatmapcreator.sh trackdirect.ini /root/trackdirect/htdocs/public/heatmaps
depends_on:
- "db"
web:
build:
context: .

View File

@ -11,7 +11,7 @@ RUN apt-get update && apt-get install -y \
inkscape \
&& rm -rf /var/lib/apt/lists/*
RUN pecl install imagick && docker-php-ext-enable imagick && docker-php-ext-install pdo pdo_pgsql
RUN pecl install imagick && docker-php-ext-enable imagick && docker-php-ext-install pdo pdo_pgsql && docker-php-ext-install gd && docker-php-ext-enable gd
COPY . /root/trackdirect
COPY config/000-default.conf /etc/apache2/sites-enabled/
@ -19,5 +19,5 @@ COPY config/000-default.conf /etc/apache2/sites-enabled/
RUN a2enmod rewrite
RUN chmod a+rx / && chmod a+rx -R /root
RUN chmod 777 /root/trackdirect/htdocs/public/symbols
RUN chmod 777 /root/trackdirect/htdocs/public/heatmaps
VOLUME /root/trackdirect/htdocs/public/heatmaps

View File

@ -13,8 +13,6 @@ RUN curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py && pyt
RUN pip2 install psycopg2-binary autobahn[twisted] twisted pympler image_slicer jsmin psutil
RUN git clone https://github.com/rossengeorgiev/aprs-python && cd aprs-python && pip2 install .
RUN wget http://jjguy.com/heatmap/heatmap-2.2.1.tar.gz && tar xzf heatmap-2.2.1.tar.gz && cd heatmap-2.2.1 && python2 setup.py install
COPY . /root/trackdirect
VOLUME /root/trackdirect/htdocs/public/heatmaps