forked from wp-graphql/wp-graphql-woocommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Codeception configuration heavily refactored
- Loading branch information
Showing
16 changed files
with
126 additions
and
321 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.env | ||
.github_changelog_generator | ||
.travis.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,42 @@ | ||
############################################################################### | ||
# Pre-configured WordPress Installation w/ WooCommerce, WPGraphQL, WooGraphQL # | ||
# For testing only, use in production not recommended. # | ||
############################################################################### | ||
############################################################################ | ||
# Container for running Codeception tests on a WooGraphQL Docker instance. # | ||
############################################################################ | ||
|
||
# Using the 'DESIRED_' prefix to avoid confusion with environment variables of the same name. | ||
ARG DESIRED_WP_VERSION | ||
ARG DESIRED_PHP_VERSION | ||
|
||
FROM wordpress:${DESIRED_WP_VERSION}-php${DESIRED_PHP_VERSION}-apache | ||
FROM kidunot89/woographql-app:wp${DESIRED_WP_VERSION:-5.2.2}-php${DESIRED_PHP_VERSION:-7.3} | ||
|
||
LABEL author=kidunot89 | ||
LABEL author_uri=https://github.com/kidunot89 | ||
|
||
SHELL [ "/bin/bash", "-c" ] | ||
|
||
# Install system packages | ||
RUN apt-get update && \ | ||
apt-get -y install \ | ||
# CircleCI depedencies | ||
git \ | ||
ssh \ | ||
tar \ | ||
gzip \ | ||
wget \ | ||
mariadb-client | ||
|
||
# Install Dockerize | ||
ENV DOCKERIZE_VERSION v0.6.1 | ||
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \ | ||
&& tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \ | ||
&& rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz | ||
|
||
# Install WP-CLI | ||
RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \ | ||
&& chmod +x wp-cli.phar \ | ||
&& mv wp-cli.phar /usr/local/bin/wp | ||
|
||
# Set project environmental variables | ||
ENV WP_ROOT_FOLDER="/var/www/html" | ||
ENV WORDPRESS_DB_HOST=${DB_HOST} | ||
ENV WORDPRESS_DB_USER=${DB_USER} | ||
ENV WORDPRESS_DB_PASSWORD=${DB_PASSWORD} | ||
ENV WORDPRESS_DB_NAME=${DB_NAME} | ||
ENV PLUGINS_DIR="${WP_ROOT_FOLDER}/wp-content/plugins" | ||
ENV PROJECT_DIR="${PLUGINS_DIR}/wp-graphql-woocommerce" | ||
# Install php extensions | ||
RUN docker-php-ext-install pdo_mysql | ||
|
||
# Remove exec statement from base entrypoint script. | ||
RUN sed -i '$d' /usr/local/bin/docker-entrypoint.sh | ||
# Install Xdebug | ||
RUN yes | pecl install xdebug \ | ||
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \ | ||
&& echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \ | ||
&& echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini | ||
|
||
# Install composer | ||
ENV COMPOSER_ALLOW_SUPERUSER=1 | ||
|
||
RUN curl -sS https://getcomposer.org/installer | php -- \ | ||
--filename=composer \ | ||
--install-dir=/usr/local/bin | ||
|
||
# Set up Apache | ||
RUN echo 'ServerName localhost' >> /etc/apache2/apache2.conf | ||
# Add composer global binaries to PATH | ||
ENV PATH "$PATH:~/.composer/vendor/bin" | ||
|
||
# Remove exec statement from base entrypoint script. | ||
RUN sed -i '$d' /usr/local/bin/app-entrypoint.sh | ||
|
||
# Set up entrypoint | ||
WORKDIR /var/www/html | ||
COPY bin/entrypoint.sh /usr/local/bin/app-entrypoint.sh | ||
RUN chmod 755 /usr/local/bin/app-entrypoint.sh | ||
ENTRYPOINT ["app-entrypoint.sh"] | ||
CMD ["apache2-foreground"] | ||
COPY bin/testing-entrypoint.sh /usr/local/bin/testing-entrypoint.sh | ||
RUN chmod 755 /usr/local/bin/testing-entrypoint.sh | ||
ENTRYPOINT ["testing-entrypoint.sh"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.