-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Systemd path is lauched as PID 1 Commands can be run pre-entrypoint in dockerfile (IE: dnf install -y sudo)
- Loading branch information
Showing
7 changed files
with
22 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
|
||
FROM {{ __docker_platform_definition.image }} | ||
COPY bash.service /etc/systemd/system/bash.service | ||
COPY entrypoint.sh /entrypoint.sh | ||
RUN chown root:root /entrypoint.sh \ | ||
&& chmod 755 /entrypoint.sh \ | ||
&& chown root:root /etc/systemd/system/bash.service \ | ||
&& chmod 644 /etc/systemd/system/bash.service \ | ||
&& systemctl enable bash.service | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
|
||
{% for __run_command in __docker_platform_definition.exec_systemd_build_commands %} | ||
RUN {{ __run_command }} | ||
{% endfor %} | ||
|
||
ENTRYPOINT ["{{ __docker_platform_definition.exec_systemd_path | default(docker_platform_container_defaults.exec_systemd_path) }}"] | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.