Skip to content

Commit

Permalink
Fix Geneva mdm Docker checks (#77)
Browse files Browse the repository at this point in the history
* Fix Geneva mdm Docker checks

* Fix tab

* Small permission fix

* Remove image ID

---------

Co-authored-by: Pei Wang <[email protected]>
  • Loading branch information
PPPW and Pei Wang authored Mar 19, 2024
1 parent 39e1903 commit f17bdc7
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 1,
"id": 45,
"links": [
{
"asDropdown": true,
Expand Down Expand Up @@ -1889,7 +1888,5 @@
},
"timezone": "utc",
"title": "Cluster Unified View (Experimental)",
"uid": "e12394be-6c26-4c19-a089-f69930b17e7e",
"version": 75,
"weekStart": ""
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 39,
"links": [
{
"asDropdown": true,
Expand Down Expand Up @@ -2135,7 +2134,5 @@
},
"timezone": "utc",
"title": "GPU View",
"uid": "dHpbWBP4z",
"version": 43,
"weekStart": ""
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 40,
"links": [
{
"asDropdown": true,
Expand Down Expand Up @@ -1226,7 +1225,5 @@
},
"timezone": "utc",
"title": "Network View",
"uid": "IziFPI8Vk",
"version": 16,
"weekStart": ""
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 41,
"links": [
{
"asDropdown": true,
Expand Down Expand Up @@ -1033,7 +1032,5 @@
},
"timezone": "utc",
"title": "Node View",
"uid": "DBUc8IU4k",
"version": 19,
"weekStart": ""
}
10 changes: 6 additions & 4 deletions src/worker/install/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ then
# Install open telemetry related packages
python3 -m pip -qqq install opentelemetry-sdk opentelemetry-exporter-otlp

# Pull Geneva Metrics Extension(MA) docker image
docker pull linuxgeneva-microsoft.azurecr.io/genevamdm:$MDM_DOCKER_VERSION
docker tag linuxgeneva-microsoft.azurecr.io/genevamdm:$MDM_DOCKER_VERSION genevamdm
docker rmi linuxgeneva-microsoft.azurecr.io/genevamdm:$MDM_DOCKER_VERSION
if ! sudo docker images | grep -q genevamdm ; then
# Pull Geneva Metrics Extension(MA) docker image
docker pull linuxgeneva-microsoft.azurecr.io/genevamdm:$MDM_DOCKER_VERSION
docker tag linuxgeneva-microsoft.azurecr.io/genevamdm:$MDM_DOCKER_VERSION genevamdm
docker rmi linuxgeneva-microsoft.azurecr.io/genevamdm:$MDM_DOCKER_VERSION
fi
elif [ $PUBLISHER_INSTALL == 'azure_monitor' ];
then
$(dirname "${BASH_SOURCE[0]}")/azure_monitor.sh
Expand Down
2 changes: 1 addition & 1 deletion src/worker/start_geneva.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ CONTAINER_NAME="genevamdmagent"

GENEVA_CONFIG=$CONFIG/geneva_config.json
# check if the docker container is running
if docker ps --format '{{.Names}}' | grep -q "^${CONTAINER_NAME}$"; then
if sudo docker ps -a --format '{{.Names}}' | grep -q "^${CONTAINER_NAME}$"; then
echo "Geneva Docker is running"
exit 0
fi
Expand Down

0 comments on commit f17bdc7

Please sign in to comment.