Skip to content

Commit 1b48950

Browse files
committed
Merge branch 'release/7.3.0'
2 parents 7e0d597 + 8b32fc7 commit 1b48950

File tree

5 files changed

+20
-6
lines changed

5 files changed

+20
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [[7.3.0]](https://github.com/iExecBlockchainComputing/iexec-worker/releases/tag/v7.3.0) 2022-12-18
6+
7+
* Add endpoint to allow health checks.
8+
59
## [[7.2.0]](https://github.com/iExecBlockchainComputing/iexec-worker/releases/tag/v7.2.0) 2022-12-09
610

711
* To conform to Task Feedback API, return a `PostComputeResponse` at the end of the post-compute stage of a standard task.

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ ARG jar
44

55
RUN test -n "$jar"
66

7+
RUN apt-get update \
8+
&& apt-get install -y curl \
9+
&& rm -rf /var/lib/apt/lists/*
10+
711
COPY $jar iexec-worker.jar
812

913
ENTRYPOINT [ "/bin/sh", "-c", "exec java -Djava.security.egd=file:/dev/./urandom -jar iexec-worker.jar" ]

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ You can configure the _iExec Worker_ with the following properties:
4646
| `IEXEC_CORE_GRAYLOG_PORT` | Graylog server port. | Positive integer | `12201` |
4747
| `IEXEC_WORKER_SGX_DRIVER_MODE` | Intel® SGX driver that should be used. | { NONE, LEGACY, NATIVE } | `NONE` |
4848

49+
## Health checks
50+
51+
A health endpoint (`/actuator/health`) is enabled by default and can be accessed on the `IEXEC_WORKER_PORT`.
52+
This endpoint allows to define health checks in an orchestrator or a [compose file](https://github.com/compose-spec/compose-spec/blob/master/spec.md#healthcheck).
53+
No default strategy has been implemented in the [Dockerfile](Dockerfile) at the moment.
54+
4955
## Build from sources
5056

5157
*Please first update your config located in `./src/main/resources/application.yml`*

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,15 @@ dependencies {
6969
implementation("org.springframework.boot:spring-boot-starter") {
7070
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging' //required for Graylog
7171
}
72+
implementation "org.springframework.boot:spring-boot-starter-actuator"
73+
implementation 'org.springframework.boot:spring-boot-starter-validation'
7274
implementation "org.springframework.boot:spring-boot-starter-web"
7375
implementation "org.springframework.boot:spring-boot-starter-websocket"
74-
implementation "org.springframework.boot:spring-boot-starter-actuator"
7576
implementation "org.springframework.cloud:spring-cloud-starter"
7677
implementation "org.springframework.cloud:spring-cloud-starter-openfeign"
7778
implementation "org.springframework.retry:spring-retry"
7879
testImplementation "org.springframework.boot:spring-boot-starter-test"
7980
testImplementation "org.mockito:mockito-inline:4.8.0" // activates mocking final classes/methods
80-
implementation 'org.springframework.boot:spring-boot-starter-validation'
8181

8282
// Web3j issues, see core build.gradle
8383
implementation 'com.squareup.okhttp3:okhttp:4.3.1'

gradle.properties

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
version=7.2.0
1+
version=7.3.0
22
iexecCommonVersion=6.1.0
3-
iexecBlockchainAdapterVersion=7.1.1
4-
iexecResultVersion=7.1.0
5-
iexecSmsVersion=7.1.0
3+
iexecBlockchainAdapterVersion=7.3.0
4+
iexecResultVersion=7.3.0
5+
iexecSmsVersion=7.3.0
66

77
nexusUser
88
nexusPassword

0 commit comments

Comments
 (0)