File tree Expand file tree Collapse file tree 3 files changed +23
-11
lines changed Expand file tree Collapse file tree 3 files changed +23
-11
lines changed Original file line number Diff line number Diff line change @@ -32,20 +32,14 @@ ENV SENTRY_URL=
32
32
# default: `infinite`
33
33
ENV SINGLE_TICK=
34
34
35
- RUN echo ${KEYSTORE_FILE:+-k $KEYSTORE_FILE} ${SENTRY_URL:+-u $SENTRY_URL}
36
-
37
35
WORKDIR /usr/local/bin
38
36
39
37
RUN apt update && apt-get install -y libssl-dev
40
38
41
39
COPY --from=builder /usr/local/bin/validator_worker .
42
40
43
- ENTRYPOINT [ \
44
- "sh" , "-c" , \
45
- "validator_worker" , \
46
- "-a" , "${ADAPTER:-ethereum}" , \
47
- "${DUMMY_IDENTITY:+-i $DUMMY_IDENTITY}" , \
48
- "${KEYSTORE_FILE:+-k $KEYSTORE_FILE}" , \
49
- "${SINGLE_TICK:+-t}" , \
50
- "${SENTRY_URL:+-u $SENTRY_URL}" , "${CONFIG}" \
51
- ]
41
+ ENTRYPOINT validator_worker -a ${ADAPTER:-ethereum} \
42
+ ${KEYSTORE_FILE:+-k $KEYSTORE_FILE} \
43
+ ${DUMMY_IDENTITY:+-i $DUMMY_IDENTITY} \
44
+ ${SINGLE_TICK:+-t} \
45
+ ${SENTRY_URL:+-u $SENTRY_URL} ${CONFIG}
Original file line number Diff line number Diff line change
1
+ version : ' 3.7'
2
+
3
+ services :
4
+ validator :
5
+ build : .
6
+ container_name : ' adex-network-validator'
7
+ restart : always
8
+ # For Ethereum adapter
9
+ # volumes:
10
+ # - "/root/keystore.json:/app/keystore.json"
11
+ env_file :
12
+ - validator.env
Original file line number Diff line number Diff line change
1
+ SENTRY_URL=http://localhost:8005
2
+ ADAPTER=dummy
3
+ DUMMY_IDENTITY=ce07CbB7e054514D590a0262C93070D838bFBA2e
4
+ # for Ethereum adapter
5
+ #KEYSTORE_FILE="/app/keystore.json"
6
+ #KEYSTORE_PWD="adexvalidator"
You can’t perform that action at this time.
0 commit comments