Skip to content

Commit da1574b

Browse files
Merge branches 'MAGECLOUD-5215' and 'develop' of https://github.com/magento/magento-cloud-docker into MAGECLOUD-5215
� Conflicts: � src/Command/BuildCompose.php � src/Compose/FunctionalBuilder.php � src/Compose/ProductionBuilder.php
2 parents e8c469b + ad2ef1e commit da1574b

Some content is hidden

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

51 files changed

+1372
-628
lines changed

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ You must have a [GitHub account](https://help.github.com/en/github/getting-start
2424

2525
## Contribution process
2626
1. Search current [listed issues](https://github.com/magento/magento-cloud-docker/issues) (open or closed) for similar proposals of intended contribution before starting work on a new contribution.
27-
2. Review the [Contributor License Agreement](https://magento.com/legaldocuments/mca) if this is your first time contributing.
27+
2. Review and sign the [Contributor License Agreement (CLA)](https://opensource.adobe.com/cla.html) if this is your first time contributing. You only need to sign the CLA once.
2828
3. Create and test your work.
2929
4. Fork the Magento Cloud repository according to the [Fork A Repository instructions](https://devdocs.magento.com/guides/v2.3/contributor-guide/contributing.html#fork) and when you are ready to send us a pull request – follow the [Create A Pull Request instructions](https://devdocs.magento.com/guides/v2.3/contributor-guide/contributing.html#pull_request).
3030
5. After you submit the pull request, the Magento Cloud development team will review the contribution and collaborate with you as needed to incorporate your proposed changes.

composer.json

Lines changed: 1 addition & 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.0.0",
5+
"version": "1.1.0",
66
"license": [
77
"OSL-3.0",
88
"AFL-3.0"

dist/mutagen.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/bin/bash
2+
mutagen terminate --label-selector=magento-docker
3+
mutagen terminate --label-selector=magento-docker-vendor
4+
25
mutagen create \
36
--label=magento-docker \
47
--sync-mode=two-way-resolved \
@@ -8,10 +11,19 @@ mutagen create \
811
--ignore=/.magento \
912
--ignore=/.docker \
1013
--ignore=/.github \
14+
--ignore=/vendor \
1115
--ignore=*.sql \
1216
--ignore=*.gz \
1317
--ignore=*.zip \
1418
--ignore=*.bz2 \
1519
--ignore-vcs \
1620
--symlink-mode=posix-raw \
1721
./ docker://$(docker-compose ps -q fpm|awk '{print $1}')/app
22+
23+
mutagen create \
24+
--label=magento-docker-vendor \
25+
--sync-mode=two-way-resolved \
26+
--default-file-mode=0644 \
27+
--default-directory-mode=0755 \
28+
--symlink-mode=posix-raw \
29+
./vendor docker://$(docker-compose ps -q fpm|awk '{print $1}')/app/vendor

images/elasticsearch/1.7/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@ RUN echo "xpack.security.enabled: false" >> /usr/share/elasticsearch/config/elas
44
RUN plugin --install elasticsearch/elasticsearch-analysis-icu/2.7.0 && \
55
plugin --install elasticsearch/elasticsearch-analysis-phonetic/2.7.0
66

7+
ADD docker-healthcheck.sh /docker-healthcheck.sh
8+
9+
HEALTHCHECK --retries=3 CMD ["sh", "/docker-healthcheck.sh"]
10+
711
EXPOSE 9200 9300
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
set -eo pipefail
3+
4+
if health="$(curl -fsSL "http://${ES_HOST:-elasticsearch}:${ES_PORT:-9200}/_cat/health?h=status")"; then
5+
health="$(echo "$health" | sed -r 's/^[[:space:]]+|[[:space:]]+$//g')" # trim whitespace (otherwise we'll have "green ")
6+
if [ "$health" = 'green' ] || [ "$health" = 'yellow' ]; then
7+
exit 0
8+
fi
9+
echo >&2 "Unexpected health status: $health"
10+
fi
11+
12+
exit 1

images/elasticsearch/2.4/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@ RUN echo "xpack.security.enabled: false" >> /usr/share/elasticsearch/config/elas
44
RUN bin/plugin install analysis-icu && \
55
bin/plugin install analysis-phonetic
66

7+
ADD docker-healthcheck.sh /docker-healthcheck.sh
8+
9+
HEALTHCHECK --retries=3 CMD ["sh", "/docker-healthcheck.sh"]
10+
711
EXPOSE 9200 9300
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
set -eo pipefail
3+
4+
if health="$(curl -fsSL "http://${ES_HOST:-elasticsearch}:${ES_PORT:-9200}/_cat/health?h=status")"; then
5+
health="$(echo "$health" | sed -r 's/^[[:space:]]+|[[:space:]]+$//g')" # trim whitespace (otherwise we'll have "green ")
6+
if [ "$health" = 'green' ] || [ "$health" = 'yellow' ]; then
7+
exit 0
8+
fi
9+
echo >&2 "Unexpected health status: $health"
10+
fi
11+
12+
exit 1

images/elasticsearch/5.2/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@ RUN echo "xpack.security.enabled: false" >> /usr/share/elasticsearch/config/elas
44
RUN bin/elasticsearch-plugin install analysis-icu && \
55
bin/elasticsearch-plugin install analysis-phonetic
66

7+
ADD docker-healthcheck.sh /docker-healthcheck.sh
8+
9+
HEALTHCHECK --retries=3 CMD ["sh", "/docker-healthcheck.sh"]
10+
711
EXPOSE 9200 9300
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
set -eo pipefail
3+
4+
if health="$(curl -fsSL "http://${ES_HOST:-elasticsearch}:${ES_PORT:-9200}/_cat/health?h=status")"; then
5+
health="$(echo "$health" | sed -r 's/^[[:space:]]+|[[:space:]]+$//g')" # trim whitespace (otherwise we'll have "green ")
6+
if [ "$health" = 'green' ] || [ "$health" = 'yellow' ]; then
7+
exit 0
8+
fi
9+
echo >&2 "Unexpected health status: $health"
10+
fi
11+
12+
exit 1

images/elasticsearch/6.5/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@ RUN echo "xpack.security.enabled: false" >> /usr/share/elasticsearch/config/elas
44
RUN bin/elasticsearch-plugin install analysis-icu && \
55
bin/elasticsearch-plugin install analysis-phonetic
66

7+
ADD docker-healthcheck.sh /docker-healthcheck.sh
8+
9+
HEALTHCHECK --retries=3 CMD ["sh", "/docker-healthcheck.sh"]
10+
711
EXPOSE 9200 9300

0 commit comments

Comments
 (0)