create cronicle user at build
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
4541df4c8a
commit
b3436f3b2c
@ -24,6 +24,8 @@ RUN chmod +x /run.sh
|
|||||||
|
|
||||||
RUN mkdir /config
|
RUN mkdir /config
|
||||||
|
|
||||||
|
RUN adduser --disabled-password --no-create-home cronicle
|
||||||
|
|
||||||
#RUN ln -sf /dev/stdout /opt/cronicle/logs/Cronicle.log
|
#RUN ln -sf /dev/stdout /opt/cronicle/logs/Cronicle.log
|
||||||
|
|
||||||
EXPOSE 3012
|
EXPOSE 3012
|
||||||
|
@ -13,12 +13,12 @@ Can function in both the **manager** and **worker** role.
|
|||||||
|
|
||||||
If you want to configure Cronicle before first run, download `config_sample.json` and adjust accordingly before placing in `/config/config.json`.
|
If you want to configure Cronicle before first run, download `config_sample.json` and adjust accordingly before placing in `/config/config.json`.
|
||||||
|
|
||||||
NOTE: You need to define the hostname of the container if using `docker run`. Cronicle expects the hostname to remain the same, so the randomly-generated container hostname can cause problems if it changes. Docker Compose containers inherit their hostname from the `container_name` parameter, but it can also be defined using `hostname: xyz`.
|
NOTE: You must define the hostname of the container. Cronicle expects the hostname to remain the same, so the randomly-generated container hostname can cause problems if it changes.
|
||||||
|
|
||||||
### Docker CLI
|
### Docker CLI
|
||||||
```
|
```
|
||||||
docker run -d --name cronicle \
|
docker run -d --name cronicle \
|
||||||
--hostname cronicle-docker \
|
--hostname cronicle-manager \
|
||||||
-p 3012:3012 \
|
-p 3012:3012 \
|
||||||
-e MODE=manager \
|
-e MODE=manager \
|
||||||
-v {path on host}:/config
|
-v {path on host}:/config
|
||||||
@ -34,6 +34,7 @@ services:
|
|||||||
container_name: cronicle
|
container_name: cronicle
|
||||||
image: git.mrmeeb.stream/mrmeeb/cronicle:latest
|
image: git.mrmeeb.stream/mrmeeb/cronicle:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
hostname: cronicle-manager
|
||||||
ports:
|
ports:
|
||||||
- 3012:3012
|
- 3012:3012
|
||||||
volumes:
|
volumes:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user