Skip to content

Commit 8f93276

Browse files
committed
added license
1 parent e488327 commit 8f93276

File tree

3 files changed

+54
-2
lines changed

3 files changed

+54
-2
lines changed

sdks/python/apache_beam/ml/inference/test_resources/vertex_ai_custom_prediction/Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
117
FROM python:3.10-slim
218
WORKDIR /app
319
RUN pip install flask gunicorn

sdks/python/apache_beam/ml/inference/test_resources/vertex_ai_custom_prediction/README.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
<!--
2+
Licensed to the Apache Software Foundation (ASF) under one
3+
or more contributor license agreements. See the NOTICE file
4+
distributed with this work for additional information
5+
regarding copyright ownership. The ASF licenses this file
6+
to you under the Apache License, Version 2.0 (the
7+
"License"); you may not use this file except in compliance
8+
with the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing,
13+
software distributed under the License is distributed on an
14+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
KIND, either express or implied. See the License for the
16+
specific language governing permissions and limitations
17+
under the License.
18+
-->
19+
120
# Vertex AI Custom Prediction Route Test Setup
221

322
To run the `test_vertex_ai_custom_prediction_route` in [vertex_ai_inference_it_test.py](../../vertex_ai_inference_it_test.py), you need a dedicated Vertex AI endpoint with an invoke-enabled model deployed.
@@ -12,7 +31,7 @@ From this directory:
1231

1332
```bash
1433
export PROJECT_ID="apache-beam-testing" # Or your project
15-
export IMAGE_URI="gcr.io/${PROJECT_ID}/beam-invoke-echo-model:latest"
34+
export IMAGE_URI="gcr.io/${PROJECT_ID}/beam-ml/beam-invoke-echo-model:latest"
1635

1736
gcloud builds submit --tag ${IMAGE_URI} .
1837
```
@@ -26,7 +45,7 @@ from google.cloud import aiplatform
2645

2746
PROJECT_ID = "apache-beam-testing"
2847
REGION = "us-central1"
29-
IMAGE_URI = f"gcr.io/{PROJECT_ID}/beam-invoke-echo-model:latest"
48+
IMAGE_URI = f"gcr.io/{PROJECT_ID}/beam-ml/beam-invoke-echo-model:latest"
3049

3150
aiplatform.init(project=PROJECT_ID, location=REGION)
3251

sdks/python/apache_beam/ml/inference/test_resources/vertex_ai_custom_prediction/echo_server.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
118
from flask import Flask, request, jsonify
219

320
app = Flask(__name__)

0 commit comments

Comments
 (0)