Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable cron on Docker container/Enable automatic LDAP Imports on docker container. #5502

Closed
delize opened this issue May 8, 2018 · 8 comments
Labels

Comments

@delize
Copy link

delize commented May 8, 2018

Server (please complete the following information):

  • Snipe-IT Version 4.2.0
  • OS: [e.g. Ubuntu, CentOS] Docker - Ubuntu
  • Web Server: Docker Apache
  • PHP Version: Docker PHP version

Is your feature request related to a problem? Please describe.
Currently spinning up a docker image, cron is not installed on base image. This renders the ability to perform tasks like #4602 or #3962 not possible.

Describe the solution you'd like
Implement Cron into the docker container so that we can enable a cron script to run ldap imports automatically.

OR

Implement a configurable time interval that ldap imports occur.

Describe alternatives you've considered
Doing it manually, but this doesn't scale and isn't a good idea.

Additional context
I am not sure whether this should be a feature request or a bug, since it goes both ways.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@EarlRamirez
Copy link
Contributor

@delize you can install cronie and crontabs from the container and commit the changes as an interim solution

@stale
Copy link

stale bot commented Jul 20, 2018

Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!

@stale stale bot added the stale label Jul 20, 2018
@stale
Copy link

stale bot commented Jul 27, 2018

This issue has been automatically closed because it has not had recent activity. If you believe this is still an issue, please confirm that this issue is still happening in the most recent version of Snipe-IT and reply to this thread to re-open it.

@stale stale bot closed this as completed Jul 27, 2018
@delize
Copy link
Author

delize commented Aug 29, 2018

Please re-open this and prevent the stale tag for this. As this is an ongoing issue. We also ran into another problem where we would like to use a cron job to automate imports.

I will be trying to test adding this to the main app shortly... but this could take some time.

@snipe
Copy link
Owner

snipe commented Aug 29, 2018

I'm not sure what you're asking for, @delize. The PR to add cron to docker was already merged and will be in the next release.

@delize
Copy link
Author

delize commented Aug 29, 2018

ah, i was not aware. Nevermind then! I look forward to the next release!

@SpartacusIam
Copy link

ah, i was not aware. Nevermind then! I look forward to the next release!

Did you ever get this working? If so, what command are you actually running inside the container to do the ldap sync?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants