EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit 31b5fe6c authored by Lubomir Dolezal's avatar Lubomir Dolezal
Browse files

fix registrar test

parent b01069dc
No related branches found
No related tags found
No related merge requests found
...@@ -27,11 +27,10 @@ file_env() { ...@@ -27,11 +27,10 @@ file_env() {
val="$(< "${!fileVar}")" val="$(< "${!fileVar}")"
fi fi
cat >> /etc/bash.bashrc <<EOF cat >> /etc/bash.bashrc <<EOF
export ${var}=${val}
EOF EOF
echo "the value of variable ${var} is set" >&2 echo "the value of variable ${var} is set" >&2
# make them also available in preparatory steps until container starts # make them also available in preparatory steps until container starts
export ${var}=${val} export "${var}"="${val}"
unset "$fileVar" unset "$fileVar"
} }
......
...@@ -28,7 +28,7 @@ file_env() { ...@@ -28,7 +28,7 @@ file_env() {
elif [ "${!fileVar:-}" ]; then elif [ "${!fileVar:-}" ]; then
val="$(< "${!fileVar}")" val="$(< "${!fileVar}")"
fi fi
cat >> /root/.profile <<EOF cat >> /etc/bash.bashrc <<EOF
EOF EOF
echo "the value of variable ${var} is set" >&2 echo "the value of variable ${var} is set" >&2
# make them also available in preparatory steps until container starts # make them also available in preparatory steps until container starts
......
...@@ -27,11 +27,10 @@ file_env() { ...@@ -27,11 +27,10 @@ file_env() {
val="$(< "${!fileVar}")" val="$(< "${!fileVar}")"
fi fi
cat >> /etc/bash.bashrc <<EOF cat >> /etc/bash.bashrc <<EOF
export ${var}=${val}
EOF EOF
echo "the value of variable ${var} is set" >&2 echo "the value of variable ${var} is set" >&2
# make them also available in preparatory steps until container starts # make them also available in preparatory steps until container starts
export ${var}=${val} export "${var}"="${val}"
unset "$fileVar" unset "$fileVar"
} }
......
...@@ -5,7 +5,7 @@ echo "inside registrar_test" ...@@ -5,7 +5,7 @@ echo "inside registrar_test"
IFS="," IFS=","
while read product; do while read product; do
docker exec -i $(docker ps -qf "name=emg-pvs_registrar") \ docker exec -e OS_PASSWORD=$OS_PASSWORD -i $(docker ps -qf "name=emg-pvs_registrar") \
python3 /registrar.py \ python3 /registrar.py \
--objects-prefix $product \ --objects-prefix $product \
--service-url $SERVICE_URL \ --service-url $SERVICE_URL \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment