Skip to content

Commit ba3cd9a

Browse files
authored
Merge pull request #46 from ioggstream/ioggstream-yaml-refactor
Configurable yaml dimensions
2 parents a896c64 + af18928 commit ba3cd9a

30 files changed

Lines changed: 2592 additions & 2217 deletions

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,20 @@ RUN composer install \
88
--no-scripts \
99
--prefer-dist
1010

11+
FROM python:3 AS parser
12+
RUN mkdir /app/data -p
13+
ADD data-new/ /app/
14+
ADD scripts/merge-dimensions.py /app/
15+
WORKDIR /app
16+
RUN pip install pyyaml
17+
RUN python3 ./merge-dimensions.py
18+
1119
FROM php:7.2-apache
1220
RUN apt-get update && apt-get -y install apt-utils libyaml-dev
1321
RUN docker-php-ext-install gettext
1422
RUN pecl channel-update pecl.php.net && pecl install yaml-2.0.0 && docker-php-ext-enable yaml
1523
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
1624
COPY . /var/www/html/
1725
COPY --from=vendor /app/vendor/ /var/www/html/vendor/
26+
COPY --from=parser /app/data/dimensions.yaml /var/www/html/data/dimensions.yaml
1827

0 commit comments

Comments
 (0)