Skip to content

Commit b72c720

Browse files
Merge branch 'develop' into imported-magento-magento-cloud-docker-298
2 parents 56ffcad + 761e44c commit b72c720

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+498
-267
lines changed

.travis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,14 @@ before_install:
8686
# https://github.com/kylekatarnls/update-helper/issues/9
8787
- if [ -n "${COMPOSER_VERSION}" ]; then travis_retry composer self-update ${COMPOSER_VERSION}; fi;
8888

89-
install: if [[ $TEST_SUITE != "build-images" ]]; then composer update; fi;
89+
install:
90+
- phpenv config-add travis.php.ini
91+
- if [[ $TEST_SUITE != "build-images" ]]; then composer update; fi;
9092

9193
before_script:
92-
- if [ $TRAVIS_SECURE_ENV_VARS == "true" ] && [ $TEST_SUITE == "build-images" ]; then echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin; fi;
94+
- if [ $TRAVIS_SECURE_ENV_VARS == "true" ] && ([ $TEST_SUITE == "build-images" ] || [ $TEST_SUITE == "functional" ]); then echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin; fi;
9395
- if [ $TEST_SUITE == "functional" ]; then sudo sysctl -w vm.max_map_count=262144; fi;
94-
- if [ $TEST_SUITE == "functional" ]; then cp codeception.dist.yml codeception.yml && sed -i "s/use_generated_images:\ false/use_generated_images:\ true/" codeception.yml; fi;
96+
- if [ $TEST_SUITE == "functional" ]; then cp codeception.dist.yml codeception.yml && sed -i "s/use_custom_images:\ false/use_custom_images:\ true/" codeception.yml; fi;
9597

9698
script:
9799
- if [ $TRAVIS_SECURE_ENV_VARS == "true" ] && [ $TEST_SUITE == "functional" ]; then ./tests/travis/functional.sh; fi;

codeception.dist.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ modules:
2525
composer_magento_username: "%REPO_USERNAME%"
2626
composer_magento_password: "%REPO_PASSWORD%"
2727
composer_github_token: "%GITHUB_TOKEN%"
28-
use_generated_images: false
29-
generated_images_namespace: "cloudft"
28+
use_custom_images: false
29+
custom_images_namespace: "cloudft"
30+
version_custom_images: "%TRAVIS_BUILD_NUMBER%"
3031
use_cached_workdir: true
31-
version_generated_images: "%TRAVIS_BUILD_NUMBER%"
3232
printOutput: false
3333
Magento\CloudDocker\Test\Functional\Codeception\Docker:
3434
system_magento_dir: "%Magento.docker.settings.system.magento_dir%"

composer.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "magento/magento-cloud-docker",
33
"description": "Magento Cloud Docker",
44
"type": "magento2-component",
5-
"version": "1.2.1",
5+
"version": "1.2.2",
66
"license": [
77
"OSL-3.0",
88
"AFL-3.0"
@@ -68,6 +68,10 @@
6868
"dist/mutagen.sh",
6969
"mutagen.sh"
7070
],
71+
[
72+
"dist/php.dev.ini",
73+
"php.dev.ini"
74+
],
7175
[
7276
"dist/mnt",
7377
".docker/mnt"

dist/php.dev.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
; configuration for development mode
2+
opcache.validate_timestamps = 1

images/elasticsearch/1.7/Dockerfile

Lines changed: 0 additions & 11 deletions
This file was deleted.

images/elasticsearch/1.7/docker-healthcheck.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

images/elasticsearch/2.4/Dockerfile

Lines changed: 0 additions & 14 deletions
This file was deleted.

images/elasticsearch/2.4/docker-healthcheck.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

images/nginx/1.19/Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,14 @@ COPY etc/vhost.conf /etc/nginx/conf.d/default.conf
1818
COPY etc/xdebug-upstream.conf /etc/nginx/conf.d/xdebug/upstream.conf
1919

2020
RUN mkdir /etc/nginx/ssl
21-
COPY certs/* /etc/nginx/ssl/
21+
22+
RUN apt-get update && \
23+
apt-get install -y openssl
24+
25+
RUN openssl req -x509 -nodes -days 730 \
26+
-subj "/C=US/ST=TX/L=Austin/O=Magento/OU=Cloud Docker/CN=magento.com" \
27+
-newkey rsa:2048 -keyout /etc/nginx/ssl/magento.key \
28+
-out /etc/nginx/ssl/magento.crt;
2229

2330
VOLUME ${MAGENTO_ROOT}
2431

images/nginx/1.19/certs/magento.crt

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)