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

Deploy core services from tar #725

Merged
merged 5 commits into from Jan 28, 2019
Merged

Conversation

antho1404
Copy link
Member

@antho1404 antho1404 commented Jan 22, 2019

This one depends on #724

Here we add services directly in the configs with a way to deploy them and when the core starts then all the services are automatically downloaded/deployed/started in order for the core to use them.

  • add test

@antho1404 antho1404 changed the title Deploy core services from tar WIP: Deploy core services from tar Jan 22, 2019
@antho1404 antho1404 changed the title WIP: Deploy core services from tar Deploy core services from tar Jan 22, 2019
@NicolasMahe
Copy link
Member

Did you manage to setup a dev environment for deploying service from local computer?

config/config.go Outdated Show resolved Hide resolved
@antho1404
Copy link
Member Author

not yet created the tool for dev to deploy locally, this will be done in another PR

ilgooz
ilgooz previously approved these changes Jan 23, 2019
Copy link
Contributor

@ilgooz ilgooz left a comment

Choose a reason for hiding this comment

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

manual tests are ok

Copy link
Contributor

@krhubert krhubert left a comment

Choose a reason for hiding this comment

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

This is not complete at all and doing in fast.

  1. what the problem dose it solve?

Second in order to deploy service from URL we need to have mesg.yaml then we donwload second mesg.yaml
and which one should we take?

It introduces egg and chicken problem and no solution to it. What if mesg.yaml will have url and inside new service it will be diffretn url etc....

For me this PR need to rethink more corner cases


return grpc.New(c.Server.Address, a), nil
}

func deployCoreServices(c *config.Config, api *api.API) error {
Copy link
Contributor

Choose a reason for hiding this comment

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

This logic shouldn't be in main.go

@NicolasMahe
Copy link
Member

Second in order to deploy service from URL we need to have mesg.yaml then we donwload second mesg.yaml
and which one should we take?

the url point directly to the source of the service, not to a mesg.yml

@NicolasMahe NicolasMahe changed the base branch from feature/remove-system-services to dev January 23, 2019 09:55
@krhubert
Copy link
Contributor

the url point directly to the source of the service, not to a mesg.yml

But the source will have proabably mesg.yml. If not then how we want to keep files:

  1. tar (source + mesg.yml)
  2. tar (only source) + seperate mesg.yml
  3. 1 and 2 whoever decide for an option
  4. both 1 and 2 will be mandatory

So this simple change will have effect on how the developers distrubute services and sources.

@antho1404
Copy link
Member Author

I don't understand your point, why do we need the yaml and the endpoint ? the yaml is inside the tarbal that will be downloaded with the tarball.

Here we download the full tar (source + definitions) and deploy it when the core starts like that these services are available for the core and the core can use them. For now there is the ethereum-erc20 as an example but it will be the wallet form this PR #728.

@antho1404
Copy link
Member Author

@krhubert are you ok with this one, can we merge or is there still some part to clarify ?

Copy link
Member

@NicolasMahe NicolasMahe left a comment

Choose a reason for hiding this comment

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

We can merge this PR but another PR needs to be done to save the deployed services' sid and return it in a new API info.

@antho1404 antho1404 mentioned this pull request Jan 28, 2019
@antho1404
Copy link
Member Author

This PR is done her #737.
Merging this one

@antho1404 antho1404 merged commit 84457e0 into dev Jan 28, 2019
@antho1404 antho1404 deleted the feature/deploy-core-service-from-tar branch January 28, 2019 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants