Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

[Marketplace] Deploy scripts and config #5066

Merged
merged 20 commits into from
Nov 12, 2020
Merged

Conversation

yiyione
Copy link
Contributor

@yiyione yiyione commented Nov 9, 2020

Add marketplace deploy script in PAI
split marketplace to three component:

  • marketplace-db
  • marketplace-restserver
  • marketplace-webportal

Each component can deploy independent.
Also add marketplace-restserver and marketplace-webportal to pylon.

@yiyione yiyione requested a review from debuggy November 9, 2020 06:51
@yiyione yiyione mentioned this pull request Nov 9, 2020
38 tasks
@coveralls
Copy link

coveralls commented Nov 9, 2020

Coverage Status

Coverage remained the same at 34.223% when pulling ac4e9a8 on yiyi/marketplace/deploy_update into acbec7b on master.

@yiyione yiyione marked this pull request as ready for review November 10, 2020 01:57
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

FROM docker.io/openpai/pai-marketplace-restserver:v1.2.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how to change the version tag

@yiyione yiyione merged commit da3abef into master Nov 12, 2020
@yiyione yiyione deleted the yiyi/marketplace/deploy_update branch November 12, 2020 05:59
@suiguoxin suiguoxin mentioned this pull request Nov 16, 2020
39 tasks
@yiyione
Copy link
Contributor Author

yiyione commented Nov 18, 2020

Test case:

  1. Add marketplace config into services-configuration.yaml
cluster:
  common:
    marketplace: 'true'
marketplace-webportal:
  marketplace_api_uri: https://<pai-uri>/marketplace/api
  1. build images:
    e.g. ./build/pai_build.py push -i marketplace-db marketplace-restserver marketplace-webportal -c /cluster-configuration/

  2. restart service:
    ./paictl.py service stop -n marketplace-webportal marketplace-db marketplace-restserver
    ./paictl.py service start -n marketplace-webportal marketplace-db marketplace-restserver

  3. check the deployment:

    • visit https://<pai-uri>/marketplace/api and get Welcome to marketplace!
    • visit https://<pai-uri>/marketplace/plugin.js and view the marketplace js file.
    • set https://<pai-uri>/marketplace/plugin.js to webportal plugin config, and visit the marketplace page.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants