backend services patching
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
FROM public.ecr.aws/amazonlinux/amazonlinux:2023
|
||||
|
||||
RUN dnf install -y openssh-clients openssh-server systemd \
|
||||
&& dnf clean all \
|
||||
&& systemctl enable sshd
|
||||
|
||||
COPY motd /etc/motd
|
||||
|
||||
ENV container=docker
|
||||
STOPSIGNAL SIGRTMIN+3
|
||||
CMD ["/sbin/init"]
|
||||
@@ -0,0 +1,10 @@
|
||||
# Amazon Linux 2023 EC2 guest
|
||||
|
||||
Build the local guest image before launching `ami-0abcdef1234567891`:
|
||||
|
||||
```text
|
||||
docker build --platform linux/amd64 -t floci/ami-amazonlinux:2023 docker/ec2/ami-images/amazonlinux-2023
|
||||
```
|
||||
|
||||
The image runs systemd, provides SSH, and uses the Amazon Linux 2023 login banner.
|
||||
Allow TCP 80 in an instance security group to have Floci publish an Apache service on an allocated host port.
|
||||
@@ -0,0 +1,3 @@
|
||||
__| __|_ )
|
||||
_| ( / Amazon Linux 2023
|
||||
___|\___|___|
|
||||
Reference in New Issue
Block a user