bluet / docker-cronicle-docker

Scheduling dockerized Cronicle cron jobs run in docker container.
MIT License
105 stars 26 forks source link

Create Event from Dockerfile #27

Closed jas1989 closed 1 year ago

jas1989 commented 2 years ago

Hi to everyone, I'd like to know if it possible to write a file for an event and copy it during docker build.

In other word, I have the following Dockerfie:

FROM bluet/cronicle-docker
COPY ./plugins /opt/cronicle/plugins
EXPOSE 3012

Is it possible to create event and load to my image like my plugins folder?

Thanks

bluet commented 1 year ago

Hi @jas1989 , sorry I do not quite understanding what "event" you mean.

If you want to mount a local folder to /opt/cronicle/plugins in the container, your can use -v $PWD/plugins:/opt/cronicle/plugins:rw.

Ref: https://github.com/bluet/docker-cronicle-docker#running

jas1989 commented 1 year ago

Hi @bluet, mount a local folder it's fine. Thank you