Skip to content

Commit 2dfc277

Browse files
authored
Merge branch 'develop' into MAGECLOUD-5112
2 parents 89ebaf8 + 6caf597 commit 2dfc277

24 files changed

+1093
-559
lines changed

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
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

0 commit comments

Comments
 (0)