File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,14 @@ COPY --from=builder /project-clone/_output/bin/project-clone /usr/local/bin/proj
44
44
45
45
ENV USER_UID=1001 \
46
46
USER_NAME=project-clone \
47
- HOME=/home/user
47
+ HOME=/home/user \
48
+ DISPLAY=":0" \
49
+ SSH_ASKPASS=/usr/local/bin/ssh-askpass.sh
48
50
49
51
COPY build/bin /usr/local/bin
52
+ COPY project-clone/ssh-askpass.sh /usr/local/bin
50
53
RUN /usr/local/bin/user_setup
54
+ RUN chmod +x /usr/local/bin/ssh-askpass.sh
51
55
52
56
USER ${USER_UID}
53
57
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ PASSPHRASE_FILE_PATH=" /etc/ssh/passphrase"
3
+ if [ ! -f $PASSPHRASE_FILE_PATH ]; then
4
+ echo " Error: passphrase file is missing in the '/etc/ssh/' directory" 1>&2
5
+ exit 1
6
+ fi
7
+ cat $PASSPHRASE_FILE_PATH
You can’t perform that action at this time.
0 commit comments