Unverified Commit dfe22a04 authored by ODA CI Bot's avatar ODA CI Bot
Browse files

by default no ssh

parent eeb038ee
......@@ -109,13 +109,12 @@ function run() {
# TODO: this logic should be within oda eval
function run-one() {
set -x
cname=cc-ci-run-$SOURCE_NAME-${RANDOM}
docker run --entrypoint cat $IMAGE /etc/passwd > passwd
< passwd sed 's/1000/'$(id -u)'/' > passwd.new
if [ ${MOUNT_SSH_FLAG:-no} == "yes" ]; then
if [ ${MOUNT_SSH_FLAG:=no} == "yes" ]; then
extra="-v /${HOME:?HOME variable is not set?}/.ssh:/home/oda/.ssh:ro"
echo -e "\033[32mYES mounting ssh keys\033[0m: will rely on ssh when possible"
else
......@@ -129,7 +128,6 @@ function run-one() {
$extra \
--entrypoint bash $IMAGE \
-c '''
set -x
mkdir -pv /tmp/outputs
export
export | grep CI_J
......@@ -149,18 +147,20 @@ function run-one() {
echo $MINIO_UPLOAD_KEY > /tmp/home-run/.minio
chmod 400 /tmp/home-run/.minio
##
if git clone git@gitlab.astro.unige.ch:integral/cc-workflows/cc-isgri-oda-nustar-reference.git /tmp/test-clone; then
echo "\033[32mSUCCESS\033[0mfully cloned private repo from gitlab";
if [ "'$MOUNT_SSH_FLAG'" == "yes" ]; then
if git clone git@gitlab.astro.unige.ch:integral/cc-workflows/cc-isgri-oda-nustar-reference.git /tmp/test-clone; then
echo -e "\033[32mSUCCESS\033[0mfully cloned private repo from gitlab";
else
echo -e "\033[31mFAILED033[0m to cloned private repo from gitlab";
echo "make sure that your home contains ssh keys"
exit 1
fi
else
echo "\033[31mFAILED033[0m to cloned private repo from gitlab";
echo "make sure that your home contains ssh keys"
exit 1
echo "skipping ssh check: ssh will not be used"
fi
git clone /repo /tmp/home-run/repo
cd /tmp/home-run/repo
set -x
echo "${NBARGS_PYDICT:-{\}}" > nbargs.py
cat nbargs.py
......
Supports Markdown
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