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

run management container as non-root (#19) #20

Merged
merged 3 commits into from
Aug 20, 2024
Merged

run management container as non-root (#19) #20

merged 3 commits into from
Aug 20, 2024

Conversation

tomkralidis
Copy link
Collaborator

Fixes #19 (wis2-gdc-management container now runs as user wis2-gdc).

@nbuttdwd can you test?

@nbuttdwd
Copy link

i tried it but the cronjob isn't working ...
wis2box@158bf5293a20:/$ service cron status

  • cron is not running
    the cronjob's content: /usr/local/bin/wis2-gdc archive /data/wis2-gdc-archive.zip > /home/wis2box/logs/create_metadata_zip_cron.log 2>&1
    cat /home/wis2box/logs/create_metadata_zip_cron.log
    Archiving metadata from GDC https://wis2.dwd.de/gdc

it's not executing the command.

@tomkralidis
Copy link
Collaborator Author

Thanks for the feedback @nbuttdwd. I've pushed a fix which adds the wis2-gdc user to /etc/sudoers and starts cron via sudo accrodingly. Let me know if that works, thanks.

@nbuttdwd
Copy link

Hi Tom, it works! Thank you.

@tomkralidis tomkralidis merged commit 59ab9d0 into main Aug 20, 2024
2 checks passed
@tomkralidis tomkralidis deleted the issue-19 branch August 20, 2024 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Running container as non-root user
2 participants