Deploy an Assembly Inspection Solution Artifact using CLI
It can be deployed to a local or virtual machine.
1. Create a virtual machine.
Add the VM name and provide a zone and add these to the command.
2. SSH into the VM
You should see the following output:
| Linux VM 5.10.0-32cloud-amd64 #1 SMP Debian 5.10.233-1 (2024-08-10) x86-64 |
|---|
| The programs included with the Debian GNU/Linux system are free software; |
| the exact distribution terms for each program are described in the |
| individual files in usr/share/doc/*/copyright. |
| Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent |
| permitted by applicable law. |
Deploying the Solution Artifact Docker Image
Create a name and add assign docker image to the variable (DOCKER_TAG).
Artifact Container Ports
| 8601 | grpc traffic |
|---|---|
| 8602 | http traffic |
| 8603 | Prometheus metric traffic |
1. Define DockerTag as a variable:
2. Define variables for the ports:
| export | VISERVING_CPU_DOCKER_WITH_MODEL=${DOCKER_TAG} |
|---|---|
| export | HTTP_PORT=8602 |
| export | LOCAL_METRIC_PORT=8603 |
3. Pull the docker image:
(extraction will take a few minutes each the first time)
4. Start the solution artifact and name it:
| docker run -v /secrets:/secrets --rm -d --name "name" \ |
|---|
| --network="host" \ |
| -p ${HTTP_PORT}:8602 \ |
| -p ${LOCAL_METRIC_PORT}:8603 \ |
| -t ${VISERVING_CPU_DOCKER_WITH_MODEL} \ |
| --metric_project_id="${PROJECT_ID}" \ |
| --use_default_credentials=false \ |
| --service_account_credentials_json=/secrets/assembly-usage-reporter.json |
5. Verify that the container was created:

Comments