Skip to content

Commit 13336cc

Browse files
authored
Merge pull request #35 from aarranz/fix/healthcheck
Configure start period to 40 seconds to avoid some problems
2 parents 0a37667 + 4ab6916 commit 13336cc

6 files changed

Lines changed: 6 additions & 0 deletions

File tree

1.0-composable/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ VOLUME /opt/wirecloud_instance
3939
EXPOSE 8000
4040

4141
HEALTHCHECK --interval=3s \
42+
--start-period=40s \
4243
CMD curl --fail http://localhost:8000/api/features || exit 1
4344

4445
COPY ./docker-entrypoint.sh /

1.0/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ WORKDIR /opt/wirecloud_instance
3030
EXPOSE 80
3131

3232
HEALTHCHECK --interval=3s \
33+
--start-period=40s \
3334
CMD curl --fail http://localhost:80/api/features || exit 1
3435

3536
COPY ./docker-entrypoint.sh /

1.1-composable/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ VOLUME /opt/wirecloud_instance
3939
EXPOSE 8000
4040

4141
HEALTHCHECK --interval=3s \
42+
--start-period=40s \
4243
CMD curl --fail http://localhost:8000/api/features || exit 1
4344

4445
COPY ./docker-entrypoint.sh /

1.1/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ WORKDIR /opt/wirecloud_instance
3030
EXPOSE 80
3131

3232
HEALTHCHECK --interval=3s \
33+
--start-period=40s \
3334
CMD curl --fail http://localhost:80/api/features || exit 1
3435

3536
COPY ./docker-entrypoint.sh /

1.2/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ VOLUME /opt/wirecloud_instance/data
3939
EXPOSE 8000
4040

4141
HEALTHCHECK --interval=3s \
42+
--start-period=40s \
4243
CMD curl --fail http://localhost:8000/api/features || exit 1
4344

4445
ENTRYPOINT ["/docker-entrypoint.sh"]

dev/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ VOLUME /opt/wirecloud_instance/data
6060
EXPOSE 8000
6161

6262
HEALTHCHECK --interval=3s \
63+
--start-period=40s \
6364
CMD curl --fail http://localhost:8000/api/features || exit 1
6465

6566
ENTRYPOINT ["/docker-entrypoint.sh"]

0 commit comments

Comments
 (0)