Skip to content
Snippets Groups Projects
Commit d19ca8cd authored by Corné Lukken's avatar Corné Lukken
Browse files

Merge branch 'L2SS-1758' into 'master'

L2SS-1758: Copy grafana image so TAG= can be used

Closes L2SS-1758

See merge request !895
parents 60ed06e6 942cd0b9
No related branches found
No related tags found
1 merge request!895L2SS-1758: Copy grafana image so TAG= can be used
...@@ -14,9 +14,6 @@ Station Control software related to Tango devices. \ ...@@ -14,9 +14,6 @@ Station Control software related to Tango devices. \
* [Installation](#installation) * [Installation](#installation)
* [Prerequisites](#prerequisites) * [Prerequisites](#prerequisites)
* [User documentation (ReadTheDocs (Sphinx / ReStructuredText))](tangostationcontrol/docs/README.md) * [User documentation (ReadTheDocs (Sphinx / ReStructuredText))](tangostationcontrol/docs/README.md)
* [Docker compose & station services documentation](docker-compose/README.md)
* [Jupyter startup files](docker-compose/jupyterlab/ipython-profiles/stationcontrol-jupyter/startup/README.md)
* [Tango Prometheus exporter](https://git.astron.nl/lofar2.0/ska-tango-grafana-exporter)
* [Developer Documentation](#development) * [Developer Documentation](#development)
* [Deployments](deploy/README.md) * [Deployments](deploy/README.md)
* [Versioning](#versioning) * [Versioning](#versioning)
......
...@@ -116,6 +116,9 @@ resource "nomad_cluster" "station" { ...@@ -116,6 +116,9 @@ resource "nomad_cluster" "station" {
copy_image { copy_image {
name = "git.astron.nl:5000/lofar2.0/tango/lofar-device-base:${variable.image_tag}" name = "git.astron.nl:5000/lofar2.0/tango/lofar-device-base:${variable.image_tag}"
} }
copy_image {
name = "git.astron.nl:5000/lofar2.0/tango/grafana:${variable.image_tag}"
}
} }
resource "exec" "enable_oversubscription" { resource "exec" "enable_oversubscription" {
......
...@@ -52,7 +52,7 @@ while true; do ...@@ -52,7 +52,7 @@ while true; do
exit 0 exit 0
;; ;;
--no-build) --no-build)
echo "Disable docker compose build step" echo "Disable docker build step"
export no_build=1 export no_build=1
export NO_BUILD=${no_build} export NO_BUILD=${no_build}
;; ;;
...@@ -108,8 +108,14 @@ if [ -z "${no_build+x}" ]; then ...@@ -108,8 +108,14 @@ if [ -z "${no_build+x}" ]; then
cd "${LOFAR20_DIR}/tangostationcontrol" || exit 1 cd "${LOFAR20_DIR}/tangostationcontrol" || exit 1
tox -e build tox -e build
cd "$LOFAR20_DIR/docker" || exit 1 cd "$LOFAR20_DIR/docker" || exit 1
make ec-sim lofar-device-base dsconfig integration-test make ec-sim lofar-device-base dsconfig grafana integration-test
cd "$LOFAR20_DIR" cd "$LOFAR20_DIR"
else
docker pull -q "git.astron.nl:5000/lofar2.0/tango/grafana:${TAG}" || docker pull -q "git.astron.nl:5000/lofar2.0/tango/grafana:latest"
if [ -z "$(docker images -q git.astron.nl:5000/lofar2.0/tango/grafana:${TAG} 2> /dev/null)" ]; then
echo "Tagging Grafana latest as ${TAG} for nomad copy_image task"
docker tag git.astron.nl:5000/lofar2.0/tango/grafana:latest git.astron.nl:5000/lofar2.0/tango/grafana:${TAG}
fi
fi fi
docker network rm station || true docker network rm station || true
......
...@@ -104,7 +104,7 @@ LOCAL_IMAGES=( ...@@ -104,7 +104,7 @@ LOCAL_IMAGES=(
"dsconfig dsconfig y" "dsconfig dsconfig y"
"ec-sim ec-sim y" "ec-sim ec-sim y"
"grafana grafana n" "grafana grafana y"
"jupyter-lab jupyter-lab n" "jupyter-lab jupyter-lab n"
"integration-test integration-test n" "integration-test integration-test n"
"snmp-exporter snmp-exporter n" "snmp-exporter snmp-exporter n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment