Skip to content

Commit

Permalink
Install and use bash that support process substitution
Browse files Browse the repository at this point in the history
  • Loading branch information
claudyus committed Sep 12, 2017
1 parent 691a843 commit 7557862
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM alpine:latest

RUN apk add --update openssh-client git && rm -rf /var/cache/apk/*
RUN apk add --update bash openssh-client git && rm -rf /var/cache/apk/*

COPY config.sh /ssh/config.sh

Expand Down
4 changes: 2 additions & 2 deletions config.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/sh
#!/bin/bash

eval $(ssh-agent -s)

ssh-add <(echo $SSH_PRIVATE_KEY)

# set or ignore know_hosts file
mkdir -p ~/.ssh
if [ $KNOW_HOSTS_LINE ]; then
if [[ -n "$KNOW_HOSTS_LINE" ]]; then
echo $KNOW_HOSTS_LINE > ~/.ssh/known_hosts
else
echo "WARNING: host key checking disabled (NOTE: makes you susceptible to man-in-the-middle attacks)"
Expand Down

0 comments on commit 7557862

Please sign in to comment.