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

How is this suppoused to be ussed? #166

Open
fcolecumberri opened this issue Sep 9, 2023 · 1 comment
Open

How is this suppoused to be ussed? #166

fcolecumberri opened this issue Sep 9, 2023 · 1 comment

Comments

@fcolecumberri
Copy link

The Readme makes a great work explaining how it works, but I still find some troubles understanding how this should be used. I found this on pypi https://pypi.org/project/docker-systemctl-replacement/ so I would assume I could put inside a dockerfile:

FROM rockylinux
# ...
RUN dnf install -y python39
RUN python3 -m pip install docker-systemctl-replacement
# ...

However it doesn't work, I am almost sure it is not supposed to run that way since I could not find mention on pip in any place on the Readme.

I have also thought I could just:

FROM rockylinux
# ...
RUN dnf install -y python39
COPY ../docker-systemctl-replacement/files/docker/systemctl3.py /usr/bin/systemctl
# ...

However I am not sure if I should only do that of if I should also do something else. I am new to docker.

@gdraheim
Copy link
Owner

The pip-module installs "systemctl.py" and "systemctl3.py". In order to override "systemctl" command you would need to make the copy/symlink being an additional step in the dockerfile.

After all, you are correct - copy/download the one file and push it in place.

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

No branches or pull requests

2 participants