feat: add ssh and vim, make scp possible
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
e9fd9d3c33
commit
6755685f89
@ -25,10 +25,13 @@ RUN sudo pacman --sync --refresh --noconfirm --sysupgrade \
|
|||||||
gnupg \
|
gnupg \
|
||||||
go \
|
go \
|
||||||
make \
|
make \
|
||||||
|
openssh \
|
||||||
pacman-contrib \
|
pacman-contrib \
|
||||||
podman \
|
podman \
|
||||||
|
vim \
|
||||||
which \
|
which \
|
||||||
zip
|
zip && \
|
||||||
|
sudo rm --recursive --force /var/cache/pacman/pkg/*
|
||||||
|
|
||||||
RUN sudo usermod --append --groups docker ${BUILD_USER}
|
RUN sudo usermod --append --groups docker ${BUILD_USER}
|
||||||
|
|
||||||
@ -42,6 +45,7 @@ RUN sudo pacman --sync --refresh --noconfirm --sysupgrade \
|
|||||||
oracle-instantclient-tools \
|
oracle-instantclient-tools \
|
||||||
rpm-builder
|
rpm-builder
|
||||||
|
|
||||||
|
RUN sudo mkdir /workspace && sudo chown ${BUILD_USER}:${BUILD_USER} /workspace
|
||||||
WORKDIR /workspace
|
WORKDIR /workspace
|
||||||
VOLUME [ "/workspace" ]
|
VOLUME [ "/workspace" ]
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ if [ ! -z ${SSH_KEY+x} ]; then
|
|||||||
sudo chmod 0700 ${HOME}/.ssh
|
sudo chmod 0700 ${HOME}/.ssh
|
||||||
echo -e ${SSH_KEY} > ${HOME}/.ssh/key
|
echo -e ${SSH_KEY} > ${HOME}/.ssh/key
|
||||||
sudo chmod 0600 ${HOME}/.ssh/key
|
sudo chmod 0600 ${HOME}/.ssh/key
|
||||||
echo -e "Host *\n IdentityFile ~/.ssh/key" > ${HOME}/.ssh/config
|
echo -e "Host *\n IdentityFile ~/.ssh/key\n StrictHostKeyChecking no\n UserKnownHostsFile /dev/null\n" > ${HOME}/.ssh/config
|
||||||
fi
|
fi
|
||||||
|
|
||||||
/bin/bash ${@}
|
/bin/bash ${@}
|
Loading…
Reference in New Issue
Block a user