Skip to content

Commit 50def67

Browse files
author
Donnie Adams
authored
Merge pull request #144 from thedadams/install-ssh
Install ssh client in the docker image
2 parents 2edd139 + 52389b9 commit 50def67

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

libmachine/provision/custom_script.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func WithCustomScript(provisioner Provisioner, customScriptPath string) error {
3030
if output, err := provisioner.SSHCommand(fmt.Sprintf("cat <<'OEOF' >/tmp/install_script.sh\n%s\nOEOF", string(customScriptContents))); err != nil {
3131
return fmt.Errorf("error uploading custom script: output: %s, error: %s", output, err)
3232
}
33-
if output, err := provisioner.SSHCommand("sh /tmp/install_script.sh"); err != nil {
33+
if output, err := provisioner.SSHCommand("sudo sh /tmp/install_script.sh"); err != nil {
3434
return fmt.Errorf("error running custom script: output: %s, error: %s", output, err)
3535
}
3636

package/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
22

33
RUN microdnf update -y && \
4-
microdnf install unzip file tar gzip && \
4+
microdnf install unzip file tar gzip openssh-clients && \
55
rm -rf /var/cache/yum
66

77
WORKDIR /root

0 commit comments

Comments
 (0)