Skip to content

Commit

Permalink
docs: update readme systemd files (#145)
Browse files Browse the repository at this point in the history
### What does this PR do?

The centos bootc image now allows using `systemctl enable`

See: CentOS/centos-bootc#167

### Screenshot / video of UI

<!-- If this PR is changing UI, please include
screenshots or screencasts showing the difference -->

N/A

### What issues does this PR fix or reference?

<!-- Include any related issues from Podman Desktop
repository (or from another issue tracker). -->

N/A

### How to test this PR?

<!-- Please explain steps to reproduce -->

N/A

Signed-off-by: Charlie Drage <[email protected]>
  • Loading branch information
cdrage authored Feb 14, 2024
1 parent 994f10c commit d5d0410
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
8 changes: 2 additions & 6 deletions docs/containerfile_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,8 @@ FROM quay.io/centos-bootc/fedora-bootc:eln
# Add the systemd service
ADD helloworld.service /usr/lib/systemd/system/helloworld.service

# Equivilant "systemctl enable helloworld"
# NOTE: Currently have to symlink until systemctl enable
# functionality works in the future
RUN ln -s \
/usr/lib/systemd/system/helloworld.service \
/usr/lib/systemd/system/default.target.wants/helloworld.service
# Enable the service
RUN systemctl enable helloworld

# Add the helloworld example
ADD helloworld.py /usr/bin/helloworld.py
Expand Down
7 changes: 2 additions & 5 deletions examples/bootc-helloworld-python-systemd/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@ FROM quay.io/centos-bootc/fedora-bootc:eln
# Add the systemd service
ADD helloworld.service /usr/lib/systemd/system/helloworld.service

# Equivalent "systemctl enable helloworld"
# will be implemented in the future
RUN ln -s \
/usr/lib/systemd/system/helloworld.service \
/usr/lib/systemd/system/default.target.wants/helloworld.service
# Enable the service
RUN systemctl enable helloworld

# Add the helloworld example
ADD helloworld.py /usr/bin/helloworld.py
Expand Down

0 comments on commit d5d0410

Please sign in to comment.