CLI: added exec hosts subcommand list

This commit is contained in:
2025-07-23 22:04:48 -05:00
parent 3eced64453
commit 14c81a00a7
7 changed files with 209 additions and 26 deletions

View File

@ -1,4 +1,4 @@
FROM debian:buster
FROM ubuntu:latest
# Install SSH server
RUN apt-get update && \
@ -19,7 +19,7 @@ EXPOSE 22
RUN mkdir /var/run/sshd
RUN chmod 0755 /var/run/sshd
# RUN apt-get update && apt-get install -y
RUN apt-get update && apt-get install -y curl
# Start SSH service
CMD ["/usr/sbin/sshd", "-D"]

View File

@ -45,6 +45,16 @@ commands:
- name: "jq"
packageManager: apt
packageOperation: install
output:
toLog: true
testJq:
cmd: jq
shell: bash
Args:
- '--version'
output:
toLog: true
checkDockerVersionWithInvalidRegex:
type: package
@ -56,7 +66,7 @@ commands:
version: '5:28\.0\K.4-1~([A-Za-z0-9]+(\.[A-Za-z0-9]+)+)*'
packageManager: apt
packageOperation: checkVersion
# host: mail.andrewnw.com
cmdLists:
packageCommands:
@ -67,6 +77,13 @@ cmdLists:
- checkDockerPartialVersionWithRegex
- checkDockerVersionWithInvalidRegex
- checkDockerNoVersion
aptCommands:
output:
onFailure: true
order:
- installJq
logging:
verbose: true
verbose: true
cmd-std-out: true