Skip to content

Commit 481b81a

Browse files
error correction
1 parent 05bebdd commit 481b81a

3 files changed

Lines changed: 17 additions & 6 deletions

File tree

tutorials/ai-core-code/ai-core-code.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,13 @@ Open your terminal and navigate to your `hello-aicore-code` directory. You will
143143
Copy and edit the following command to build your docker image. The command follows the format `docker build -t <DOCKER_REGITRY>/<YOUR_DOCKER_USERNAME>/<IMAGE_NAME>:<TAG_NAME>`. So for example, if you are using your organization's registry which has the URL `myteam.myorg`, The command should be `docker build -t myteam.myorg/yourusername/house-price:01 .`
144144

145145
```BASH
146-
docker build -t docker.io/<YOUR_DOCKER_USERNAME>/house-price:01 .
146+
docker buildx build –load --platform=<YOUR_DOCKER_PLATFORM> -t docker.io/<YOUR_DOCKER_USERNAME>/house-price:01 .
147147
```
148148

149149
> **INFORMATION** In the command, `-t` indicates that there is a tag name, followed by a colon and version. The name is your descriptive string, and the version can be in any format, here `house-price` and `01`, respectively. The `.` (dot) at the end instructs Docker to look for the filename `Dockerfile` in the present directory.
150150
151+
> **INFORMATION** The platform information relates to your operating system, for example `linux/amd64`.
152+
151153
The result of this command should be:
152154

153155
!![image](img/docker-build.png)
@@ -198,9 +200,18 @@ Click **Docker Registry Secrets** in the **AI Core Administration** app. Click *
198200

199201
!![image](img/ail/1.png)
200202

201-
Enter your details in the dialog box.
203+
Name your secret, and paste and edit the snippet into the `Secret` field.
204+
205+
```JSON
206+
{
207+
"data": {
208+
".dockerconfigjson": "{\"auths\":{\"YOUR_DOCKER_REGISTRY_URL\":{\"username\":\"YOUR_DOCKER_USERNAME\",\"password\":\"YOUR_DOCKER_ACCESS_TOKEN\"}}}"
209+
},
210+
"name": "credstutorialrepo"
211+
}
212+
```
202213

203-
!![image](img/ail/2.png)
214+
!![image](img/ail/DockerSecret.png)
204215

205216

206217
[OPTION END]
33.8 KB
Loading

tutorials/ai-core-deploy/ai-core-deploy.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
kserve---
22
title: Make Predictions for House Prices with SAP AI Core
33
description: Deploy AI models and set up serving pipelines to scale prediction server.
44
auto_validation: true
@@ -201,7 +201,7 @@ spec:
201201
- name: greetmessage # placeholder name
202202
type: string # required for every parameters
203203
template:
204-
apiVersion: "serving.kubeflow.org/v1beta1"
204+
apiVersion: "serving.kserve.org/v1beta1"
205205
metadata:
206206
annotations: |
207207
autoscaling.knative.dev/metric: concurrency # condition when to scale
@@ -216,7 +216,7 @@ spec:
216216
minReplicas: 1
217217
maxReplicas: 5 # how much to scale
218218
containers:
219-
- name: kfserving-container
219+
- name: kserve-container
220220
image: "docker.io/<YOUR_DOCKER_USERNAME>/house-server:01"
221221
ports:
222222
- containerPort: 9001 # customizable port

0 commit comments

Comments
 (0)