<commit_before>## johanmynhardt/wordpress
FROM johanmynhardt/ubuntu-mysql-apache-php
MAINTAINER <NAME> <<EMAIL>>
COPY ./scripts/wp-*.sh /
#ADD ./scripts/wp-config.sh /wp-config.sh
#ADD ./scripts/wp-cli-tasks.sh /wp-cli-tasks.sh
ADD ./scripts/start.sh /start.sh
ADD ./scripts/foreground.sh /etc/apache2/foreground.sh
ADD ./configs/supervisord.conf /etc/supervisord.conf
ADD ./configs/000-default.conf /etc/apache2/sites-available/000-default.conf
RUN rm -rf /var/www/
#ADD https://wordpress.org/latest.tar.gz /tmp/wordpress.tar.gz
COPY latest.tar.gz /tmp/wordpress.tar.gz
RUN tar xvzf /tmp/wordpress.tar.gz
RUN mv /wordpress /var/www/
## CHMOD/OWN
RUN chown -R www-data:www-data /var/www/
RUN chmod 755 /wp-config.sh
RUN chmod 755 /wp-cli-tasks.sh
RUN chmod 755 /start.sh
RUN chmod 755 /etc/apache2/foreground.sh
RUN mkdir /var/log/supervisor/
EXPOSE 80
## do wp-config
RUN /wp-config.sh
## do wp-cli setup
#ADD https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar /usr/local/bin/wp
COPY wp-cli.phar /usr/local/bin/wp
RUN chmod 755 /usr/local/bin/wp
## do plugin installs
WORKDIR /var/www
RUN wp --allow-root --info
WORKDIR /
RUN sed -i -e 's#www-data:/var/www:/usr/sbin/nologin#www-data:/var/www:/bin/sh#' /etc/passwd
RUN /wp-cli-tasks.sh
RUN sed -i -e 's#www-data:/var/www:/bin/sh#www-data:/var/www:/usr/sbin/nologin#' /etc/passwd

# start
CMD ["/bin/bash", "/start.sh"]<commit_msg>Retrieve web resources for wp-cli and wordpress latest instead of local copies<commit_after>## johanmynhardt/wordpress
FROM johanmynhardt/ubuntu-mysql-apache-php
MAINTAINER <NAME> <<EMAIL>>
COPY ./scripts/wp-*.sh /
#ADD ./scripts/wp-config.sh /wp-config.sh
#ADD ./scripts/wp-cli-tasks.sh /wp-cli-tasks.sh
ADD ./scripts/start.sh /start.sh
ADD ./scripts/foreground.sh /etc/apache2/foreground.sh
ADD ./configs/supervisord.conf /etc/supervisord.conf
ADD ./configs/000-default.conf /etc/apache2/sites-available/000-default.conf
RUN rm -rf /var/www/
ADD https://wordpress.org/latest.tar.gz /tmp/wordpress.tar.gz
#COPY latest.tar.gz /tmp/wordpress.tar.gz
RUN tar xvzf /tmp/wordpress.tar.gz
RUN mv /wordpress /var/www/
## CHMOD/OWN
RUN chown -R www-data:www-data /var/www/
RUN chmod 755 /wp-config.sh
RUN chmod 755 /wp-cli-tasks.sh
RUN chmod 755 /start.sh
RUN chmod 755 /etc/apache2/foreground.sh
RUN mkdir /var/log/supervisor/
EXPOSE 80
## do wp-config
RUN /wp-config.sh
## do wp-cli setup
ADD https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar /usr/local/bin/wp
#COPY wp-cli.phar /usr/local/bin/wp
RUN chmod 755 /usr/local/bin/wp
## do plugin installs
WORKDIR /var/www
RUN wp --allow-root --info
WORKDIR /
RUN sed -i -e 's#www-data:/var/www:/usr/sbin/nologin#www-data:/var/www:/bin/sh#' /etc/passwd
RUN /wp-cli-tasks.sh
RUN sed -i -e 's#www-data:/var/www:/bin/sh#www-data:/var/www:/usr/sbin/nologin#' /etc/passwd

# start
CMD ["/bin/bash", "/start.sh"]
{'fraction_non_alphanumeric': 0.1709014966933519, 'fraction_numerical': 0.01809954751131222, 'mean_word_length': 3.4558139534883723, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 4, 'lorem ipsum': 0, 'www.': 26, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1711874', 'n_tokens_mistral': 1234, 'n_tokens_neox': 1143, 'n_words': 244}