diff --git a/APIs/python/Rocket_Lauch_Simulator/examples/lockheed_martin.py b/APIs/python/Rocket_Lauch_Simulator/examples/lockheed_martin similarity index 100% rename from APIs/python/Rocket_Lauch_Simulator/examples/lockheed_martin.py rename to APIs/python/Rocket_Lauch_Simulator/examples/lockheed_martin diff --git a/src/crew_espace_system/Containerfile-template-image-for-rocket-components-or-services b/src/crew_espace_system/Containerfile-template-image-for-rocket-components-or-services new file mode 100644 index 0000000..21d4e1b --- /dev/null +++ b/src/crew_espace_system/Containerfile-template-image-for-rocket-components-or-services @@ -0,0 +1,59 @@ +# How to build +# ================== +# podman login quay.io +# podman build --cap-add=sys_admin -t quay.io/qm-images/space-grade-linux-template-image-for-rocket-components-or-services:latest -f Containerfile-template-image-for-rocket-components-or-services +# +# Running example: +# ================== +# podman run -it --privileged --name spaceship-engine1 quay.io/qm-images/space-grade-linux-template-image-for-rocket-components-or-services:latest +# podman run -it --privileged --name spaceship-payload quay.io/qm-images/space-grade-linux-template-image-for-rocket-components-or-services:latest +# +# Podman push into the repo +# =========================== +# podman push quay.io/qm-images/space-grade-linux-template-image-for-rocket-components-or-services:latest +# +#FROM registry.fedoraproject.org/fedora:latest +FROM quay.io/centos/centos:stream9 + +WORKDIR /root + +RUN echo "root:password" | chpasswd +RUN dnf update -y && \ +dnf install -y 'dnf-command(config-manager)' + +RUN dnf install -y epel-release # comment for Fedora build +RUN dnf config-manager --set-enabled crb # comment for Fedora build + +RUN dnf -y install systemd procps-ng && dnf clean all + +RUN dnf install -y hostname \ + git \ + make \ + gcc \ + podman \ + g++ \ + bluechi-agent \ + bluechi-ctl \ + bluechi-selinux \ + rpm-build \ + container-selinux \ + golang-github-cpuguy83-md2man \ + selinux-policy \ + iproute \ + iproute-devel \ + iputils \ + systemd-devel \ + selinux-policy-devel + +# Bluechi +RUN systemctl enable bluechi-agent + +# Agent settings +RUN echo -e "[bluechi-agent]\nNodeName=engineX-spaceship\nControllerHost=spaceship_base\nControllerPort=842\n" > /etc/bluechi/agent.conf.d/agent.conf + +# Dynamically fetch IP and append to /etc/hosts +RUN IP=$(hostname -I | awk '{print $1}') & echo "$IP bluechi_controller" >> /etc/hosts + +#VOLUME ["/sys/fs/cgroup"] +#CMD ["tail", "-f", "/dev/null"] +ENTRYPOINT ["/sbin/init"] diff --git a/src/crew_espace_system/run b/src/crew_espace_system/run new file mode 100755 index 0000000..576c1d5 --- /dev/null +++ b/src/crew_espace_system/run @@ -0,0 +1,2 @@ +podman run -d --replace --privileged --name crew_espace_system quay.io/qm-images/space-grade-linux-template-image-for-rocket-components-or-services:latest +podman ps diff --git a/src/flight_termination_system/Containerfile-template-image-for-rocket-components-or-services b/src/flight_termination_system/Containerfile-template-image-for-rocket-components-or-services new file mode 100644 index 0000000..21d4e1b --- /dev/null +++ b/src/flight_termination_system/Containerfile-template-image-for-rocket-components-or-services @@ -0,0 +1,59 @@ +# How to build +# ================== +# podman login quay.io +# podman build --cap-add=sys_admin -t quay.io/qm-images/space-grade-linux-template-image-for-rocket-components-or-services:latest -f Containerfile-template-image-for-rocket-components-or-services +# +# Running example: +# ================== +# podman run -it --privileged --name spaceship-engine1 quay.io/qm-images/space-grade-linux-template-image-for-rocket-components-or-services:latest +# podman run -it --privileged --name spaceship-payload quay.io/qm-images/space-grade-linux-template-image-for-rocket-components-or-services:latest +# +# Podman push into the repo +# =========================== +# podman push quay.io/qm-images/space-grade-linux-template-image-for-rocket-components-or-services:latest +# +#FROM registry.fedoraproject.org/fedora:latest +FROM quay.io/centos/centos:stream9 + +WORKDIR /root + +RUN echo "root:password" | chpasswd +RUN dnf update -y && \ +dnf install -y 'dnf-command(config-manager)' + +RUN dnf install -y epel-release # comment for Fedora build +RUN dnf config-manager --set-enabled crb # comment for Fedora build + +RUN dnf -y install systemd procps-ng && dnf clean all + +RUN dnf install -y hostname \ + git \ + make \ + gcc \ + podman \ + g++ \ + bluechi-agent \ + bluechi-ctl \ + bluechi-selinux \ + rpm-build \ + container-selinux \ + golang-github-cpuguy83-md2man \ + selinux-policy \ + iproute \ + iproute-devel \ + iputils \ + systemd-devel \ + selinux-policy-devel + +# Bluechi +RUN systemctl enable bluechi-agent + +# Agent settings +RUN echo -e "[bluechi-agent]\nNodeName=engineX-spaceship\nControllerHost=spaceship_base\nControllerPort=842\n" > /etc/bluechi/agent.conf.d/agent.conf + +# Dynamically fetch IP and append to /etc/hosts +RUN IP=$(hostname -I | awk '{print $1}') & echo "$IP bluechi_controller" >> /etc/hosts + +#VOLUME ["/sys/fs/cgroup"] +#CMD ["tail", "-f", "/dev/null"] +ENTRYPOINT ["/sbin/init"] diff --git a/src/flight_termination_system/run b/src/flight_termination_system/run new file mode 100755 index 0000000..291a457 --- /dev/null +++ b/src/flight_termination_system/run @@ -0,0 +1,2 @@ +podman run -d --replace --privileged --name flight_termination_system quay.io/qm-images/space-grade-linux-template-image-for-rocket-components-or-services:latest +podman ps diff --git a/src/heat_shield_protection/Containerfile-template-image-for-rocket-components-or-services b/src/heat_shield_protection/Containerfile-template-image-for-rocket-components-or-services new file mode 100644 index 0000000..21d4e1b --- /dev/null +++ b/src/heat_shield_protection/Containerfile-template-image-for-rocket-components-or-services @@ -0,0 +1,59 @@ +# How to build +# ================== +# podman login quay.io +# podman build --cap-add=sys_admin -t quay.io/qm-images/space-grade-linux-template-image-for-rocket-components-or-services:latest -f Containerfile-template-image-for-rocket-components-or-services +# +# Running example: +# ================== +# podman run -it --privileged --name spaceship-engine1 quay.io/qm-images/space-grade-linux-template-image-for-rocket-components-or-services:latest +# podman run -it --privileged --name spaceship-payload quay.io/qm-images/space-grade-linux-template-image-for-rocket-components-or-services:latest +# +# Podman push into the repo +# =========================== +# podman push quay.io/qm-images/space-grade-linux-template-image-for-rocket-components-or-services:latest +# +#FROM registry.fedoraproject.org/fedora:latest +FROM quay.io/centos/centos:stream9 + +WORKDIR /root + +RUN echo "root:password" | chpasswd +RUN dnf update -y && \ +dnf install -y 'dnf-command(config-manager)' + +RUN dnf install -y epel-release # comment for Fedora build +RUN dnf config-manager --set-enabled crb # comment for Fedora build + +RUN dnf -y install systemd procps-ng && dnf clean all + +RUN dnf install -y hostname \ + git \ + make \ + gcc \ + podman \ + g++ \ + bluechi-agent \ + bluechi-ctl \ + bluechi-selinux \ + rpm-build \ + container-selinux \ + golang-github-cpuguy83-md2man \ + selinux-policy \ + iproute \ + iproute-devel \ + iputils \ + systemd-devel \ + selinux-policy-devel + +# Bluechi +RUN systemctl enable bluechi-agent + +# Agent settings +RUN echo -e "[bluechi-agent]\nNodeName=engineX-spaceship\nControllerHost=spaceship_base\nControllerPort=842\n" > /etc/bluechi/agent.conf.d/agent.conf + +# Dynamically fetch IP and append to /etc/hosts +RUN IP=$(hostname -I | awk '{print $1}') & echo "$IP bluechi_controller" >> /etc/hosts + +#VOLUME ["/sys/fs/cgroup"] +#CMD ["tail", "-f", "/dev/null"] +ENTRYPOINT ["/sbin/init"] diff --git a/src/heat_shield_protection/run b/src/heat_shield_protection/run new file mode 100755 index 0000000..08c1bda --- /dev/null +++ b/src/heat_shield_protection/run @@ -0,0 +1,2 @@ +podman run -d --replace --privileged --name heat_shield_protection quay.io/qm-images/space-grade-linux-template-image-for-rocket-components-or-services:latest +podman ps diff --git a/src/life_support_system/Containerfile-template-image-for-rocket-components-or-services b/src/life_support_system/Containerfile-template-image-for-rocket-components-or-services new file mode 100644 index 0000000..21d4e1b --- /dev/null +++ b/src/life_support_system/Containerfile-template-image-for-rocket-components-or-services @@ -0,0 +1,59 @@ +# How to build +# ================== +# podman login quay.io +# podman build --cap-add=sys_admin -t quay.io/qm-images/space-grade-linux-template-image-for-rocket-components-or-services:latest -f Containerfile-template-image-for-rocket-components-or-services +# +# Running example: +# ================== +# podman run -it --privileged --name spaceship-engine1 quay.io/qm-images/space-grade-linux-template-image-for-rocket-components-or-services:latest +# podman run -it --privileged --name spaceship-payload quay.io/qm-images/space-grade-linux-template-image-for-rocket-components-or-services:latest +# +# Podman push into the repo +# =========================== +# podman push quay.io/qm-images/space-grade-linux-template-image-for-rocket-components-or-services:latest +# +#FROM registry.fedoraproject.org/fedora:latest +FROM quay.io/centos/centos:stream9 + +WORKDIR /root + +RUN echo "root:password" | chpasswd +RUN dnf update -y && \ +dnf install -y 'dnf-command(config-manager)' + +RUN dnf install -y epel-release # comment for Fedora build +RUN dnf config-manager --set-enabled crb # comment for Fedora build + +RUN dnf -y install systemd procps-ng && dnf clean all + +RUN dnf install -y hostname \ + git \ + make \ + gcc \ + podman \ + g++ \ + bluechi-agent \ + bluechi-ctl \ + bluechi-selinux \ + rpm-build \ + container-selinux \ + golang-github-cpuguy83-md2man \ + selinux-policy \ + iproute \ + iproute-devel \ + iputils \ + systemd-devel \ + selinux-policy-devel + +# Bluechi +RUN systemctl enable bluechi-agent + +# Agent settings +RUN echo -e "[bluechi-agent]\nNodeName=engineX-spaceship\nControllerHost=spaceship_base\nControllerPort=842\n" > /etc/bluechi/agent.conf.d/agent.conf + +# Dynamically fetch IP and append to /etc/hosts +RUN IP=$(hostname -I | awk '{print $1}') & echo "$IP bluechi_controller" >> /etc/hosts + +#VOLUME ["/sys/fs/cgroup"] +#CMD ["tail", "-f", "/dev/null"] +ENTRYPOINT ["/sbin/init"] diff --git a/src/life_support_system/run b/src/life_support_system/run new file mode 100755 index 0000000..aa31a81 --- /dev/null +++ b/src/life_support_system/run @@ -0,0 +1,2 @@ +podman run -d --replace --privileged --name life_support_system quay.io/qm-images/space-grade-linux-template-image-for-rocket-components-or-services:latest +podman ps