Commit 365d88de authored by Niklas Eiling's avatar Niklas Eiling
Browse files

CI: make access to GPU host more secure

parent baf12f28
......@@ -32,7 +32,6 @@ docker:centos:
stage: prepare
needs: []
script:
- cp -r ~/.ssh .
- docker build
--file Packaging/Docker/Dockerfile.dev-centos
--tag ${DOCKER_IMAGE_DEV}-centos:${DOCKER_TAG}
......@@ -240,6 +239,12 @@ test:jupyter:
libutil.so.1
libpthread.so.0'
script:
- mkdir ~/.ssh &&
echo "-----BEGIN OPENSSH PRIVATE KEY-----" > ~/.ssh/id_rsa &&
echo $SSH_PRIVATE | sed "s/\S\{64\}/&\n/g" >> ~/.ssh/id_rsa &&
echo "-----END OPENSSH PRIVATE KEY-----" >> ~/.ssh/id_rsa &&
echo $SSH_PUBLIC > ~/.ssh/id_rsa.pub &&
echo $KNOWN_HOSTS > ~/.ssh/known_hosts && chmod 600 ~/.ssh/id_rsa
- echo "$TEST_BINARY_PATH/$TEST_BINARY $TEST_FILES" | tr -d '\n' | xargs -r -d " " -I % cp % $LDIR
- ldd $LDIR/$TEST_BINARY |
sed -n -E -e 's/^\s+\S+ => (\S+) \S+$/\1/p' |
......
......@@ -94,6 +94,4 @@ RUN dnf -y --refresh install npm
RUN jupyter nbextension enable --py widgetsnbextension
RUN jupyter labextension install @jupyter-widgets/jupyterlab-manager
COPY --chown=root .ssh /root/.ssh
EXPOSE 8888
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment