Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

push of MLServer images for Red Hat certification #4417

Merged
merged 3 commits into from
Nov 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions marketplaces/redhat/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
artifacts
46 changes: 46 additions & 0 deletions marketplaces/redhat/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
SHELL := /bin/bash

VERSION ?= $(shell cat ../../version.txt)
MLSERVER_VERSION ?= 1.2.0.dev12

IMG_MLSERVER ?= docker.io/seldonio/mlserver:${MLSERVER_VERSION}
IMG_MLSERVER_SC ?= docker.io/seldonio/mlserver-sc:${VERSION}
IMG_MLSERVER_SC_SLIM ?= docker.io/seldonio/mlserver-sc-slim:${VERSION}

redhat-image-scan: scan-mlserver scan-mlserver-sc scan-mlserver-sc-slim

# password can be found at: https://connect.redhat.com/projects/63566bb9822ce8cef9ba27fc/overview
project-mlserver=63566bb9822ce8cef9ba27fc
scan-mlserver:
docker pull ${IMG_MLSERVER}
source ~/.config/seldon/seldon-core/redhat-image-passwords.sh && \
echo $${rh_mlserver} | docker login -u redhat-isv-containers+${project-mlserver}-robot quay.io --password-stdin
docker tag ${IMG_MLSERVER} quay.io/redhat-isv-containers/${project-mlserver}:${MLSERVER_VERSION}
docker push quay.io/redhat-isv-containers/${project-mlserver}:${MLSERVER_VERSION}
source ~/.config/seldon/seldon-core/redhat-image-passwords.sh && \
preflight check container quay.io/redhat-isv-containers/${project-mlserver}:${MLSERVER_VERSION} --docker-config=${HOME}/.docker/config.json --certification-project-id=${project-mlserver} --pyxis-api-token=$${pyxis_api_token} --submit


# password can be found at: https://connect.redhat.com/projects/635670d3624969b495b6936f/overview
project-mlserver-sc=635670d3624969b495b6936f
scan-mlserver-sc:
docker pull ${IMG_MLSERVER_SC}
source ~/.config/seldon/seldon-core/redhat-image-passwords.sh && \
echo $${rh_mlserver_sc} | docker login -u redhat-isv-containers+${project-mlserver-sc}-robot quay.io --password-stdin
docker tag ${IMG_MLSERVER_SC} quay.io/redhat-isv-containers/${project-mlserver-sc}:${VERSION}
docker push quay.io/redhat-isv-containers/${project-mlserver-sc}:${VERSION}
source ~/.config/seldon/seldon-core/redhat-image-passwords.sh && \
preflight check container quay.io/redhat-isv-containers/${project-mlserver-sc}:${VERSION} --docker-config=${HOME}/.docker/config.json --certification-project-id=${project-mlserver-sc} --pyxis-api-token=$${pyxis_api_token} --submit


# password can be found at: https://connect.redhat.com/projects/63567143624969b495b69370/overview
project-mlserver-sc-slim=63567143624969b495b69370
scan-mlserver-sc-slim:
docker pull ${IMG_MLSERVER_SC_SLIM}
source ~/.config/seldon/seldon-core/redhat-image-passwords.sh && \
echo $${rh_mlserver_sc_slim} | docker login -u redhat-isv-containers+${project-mlserver-sc-slim}-robot quay.io --password-stdin
docker tag ${IMG_MLSERVER_SC_SLIM} quay.io/redhat-isv-containers/${project-mlserver-sc-slim}:${VERSION}
docker push quay.io/redhat-isv-containers/${project-mlserver-sc-slim}:${VERSION}
source ~/.config/seldon/seldon-core/redhat-image-passwords.sh && \
rm -rf ./artifacts && \
preflight check container quay.io/redhat-isv-containers/${project-mlserver-sc-slim}:${VERSION} --docker-config=${HOME}/.docker/config.json --certification-project-id=${project-mlserver-sc-slim} --pyxis-api-token=$${pyxis_api_token} --submit
25 changes: 13 additions & 12 deletions marketplaces/redhat/scan-images.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,19 @@ def run_command(args, debug=False):

def scan_images(debug=False):
paths = [
"operator",
"executor",
"examples/models/mean_classifier",
"components/alibi-detect-server",
"servers/sklearnserver",
"servers/mlflowserver",
"servers/xgboostserver",
"servers/tfserving_proxy",
"components/alibi-explain-server",
"components/storage-initializer",
"components/rclone-storage-initializer",
"servers/tfserving",
"operator",
"executor",
"examples/models/mean_classifier",
"components/alibi-detect-server",
"servers/sklearnserver",
"servers/mlflowserver",
"servers/xgboostserver",
"servers/tfserving_proxy",
"components/alibi-explain-server",
"components/storage-initializer",
"components/rclone-storage-initializer",
"servers/tfserving",
"marketplaces/redhat",
]

for path in paths:
Expand Down
3 changes: 3 additions & 0 deletions operator/openshift.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ publish
* https://connect.redhat.com/projects/5ea15983ebed1415210b4b26/images (Seldon Dummy Model)
* https://connect.redhat.com/projects/5e9c7eea929b3d289e60977a/images (Seldon Storage Initializer)
* https://connect.redhat.com/projects/622b6fcf8a65f13d3bd4172f/images (Rclone Storage Initializer)
* https://connect.redhat.com/projects/63566bb9822ce8cef9ba27fc/images (MLServer)
* https://connect.redhat.com/projects/635670d3624969b495b6936f/images (MLServer SC)
* https://connect.redhat.com/projects/63567143624969b495b69370/images (MLServer SC Slim)

previously used images:
* https://connect.redhat.com/project/1366491/view (Seldon Engine)
Expand Down