mirror of
https://github.com/aljazceru/cyphernode.git
synced 2025-12-17 04:35:14 +01:00
First push from Satoshi Portal's own cyphernode
This commit is contained in:
11
cron_docker/Dockerfile
Normal file
11
cron_docker/Dockerfile
Normal file
@@ -0,0 +1,11 @@
|
||||
FROM alpine
|
||||
|
||||
RUN apk add --update --no-cache \
|
||||
curl
|
||||
|
||||
COPY callbacks_cron /etc/periodic/15min/callbacks_cron
|
||||
|
||||
RUN chmod +x /etc/periodic/15min/callbacks_cron
|
||||
|
||||
ENTRYPOINT ["crond"]
|
||||
CMD ["-f"]
|
||||
13
cron_docker/README.md
Normal file
13
cron_docker/README.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# Cyphernode CRON container
|
||||
|
||||
## Configure your container by modifying `env.properties` file
|
||||
|
||||
```properties
|
||||
PROXY_URL=cyphernode:8888/executecallbacks
|
||||
```
|
||||
|
||||
## Building docker image
|
||||
|
||||
```shell
|
||||
docker build -t proxycronimg .
|
||||
```
|
||||
3
cron_docker/callbacks_cron
Normal file
3
cron_docker/callbacks_cron
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
curl ${PROXY_URL}
|
||||
1
cron_docker/env.properties
Normal file
1
cron_docker/env.properties
Normal file
@@ -0,0 +1 @@
|
||||
PROXY_URL=cyphernode:8888/executecallbacks
|
||||
Reference in New Issue
Block a user