bug fixes: backend services patches - Implemented and deployed systemd-backed AMIs
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
FROM registry.fedoraproject.org/fedora:42
|
||||
|
||||
RUN dnf install -y \
|
||||
systemd \
|
||||
openssh-clients \
|
||||
openssh-server \
|
||||
iproute \
|
||||
iptables \
|
||||
socat \
|
||||
curl \
|
||||
ca-certificates \
|
||||
&& dnf clean all \
|
||||
&& systemctl enable sshd
|
||||
|
||||
ENV container=docker
|
||||
STOPSIGNAL SIGRTMIN+3
|
||||
CMD ["/sbin/init"]
|
||||
@@ -0,0 +1,10 @@
|
||||
# Fedora 42 systemd EC2 guest
|
||||
|
||||
Build the local guest image before launching `ami-fedora42`:
|
||||
|
||||
```text
|
||||
docker build --platform linux/amd64 -t floci/ami-fedora:42 docker/ec2/ami-images/fedora-42
|
||||
```
|
||||
|
||||
The image runs systemd and starts SSH on every EC2 boot. Enable application services with
|
||||
`systemctl enable --now <service>` so they restart after `StopInstances` and `StartInstances`.
|
||||
Reference in New Issue
Block a user