CLI: added exec hosts
subcommand list
This commit is contained in:
@ -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"]
|
||||
|
@ -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
|
Reference in New Issue
Block a user