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

feat: oneliner deployment setup for Linux and Mac #451

Merged
merged 2 commits into from
Nov 28, 2022
Merged

Conversation

kon14
Copy link
Contributor

@kon14 kon14 commented Nov 25, 2022

This PR re-introduces the oneliner deployment bootstrap script, utilizing Conduit CLI.
It makes use of plain sh and generally attempts to be compatible across different shell setups.

Works for Linux and Mac, on both arm64 and amd64, performing the following:

  • Installs/updates CLI
  • Adds it to the executable $PATH
  • Runs: conduit deploy setup --config

Once merged, installing CLI and setting up a deployment on Linux/Mac should be as simple as:
sh <(curl -s https://getconduit.dev/bootstrap)

Notes:
Conduit CLI is currently installed under ~/conduit/bin/conduit.
On Linux we should respect Freedesktop XDG standards and use $HOME/.local/bin instead.
I'll update this PR addressing the latter.

Upon further consideration, the above could prove troublesome, as even though the majority of distros adhere to freedesktop standards and respect the XDG for their bash environment, explicit zsh installations don't seem to come with $HOME/.local/bin as part of the default $PATH.
Seeing as changing this one down the road is not gonna result in any significant trouble for us or the users I'm just gonna ignore this for now(?) so as not to further clutter the installation script.

This oneliner does not raise any warnings regarding missing Docker or Docker compose.
That should ideally be internally handled by CLI.

Addressed in ConduitPlatform/CLI#36

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Build-related changes
  • Other (please describe)

Does this PR introduce a breaking change?

  • Yes
  • No

The PR fulfills these requirements:

  • It's submitted to the main branch
  • When resolving a specific issue, it's referenced in the PR's description (e.g. fix #xxx, where "xxx" is the issue number)

If adding a new feature, the PR's description includes:

  • A convincing reason for adding this feature

@kon14 kon14 marked this pull request as ready for review November 27, 2022 14:43
@kkopanidis kkopanidis merged commit 9838056 into main Nov 28, 2022
@kkopanidis kkopanidis deleted the bootstrap branch November 28, 2022 09:57
kkopanidis added a commit that referenced this pull request Dec 5, 2022
* feat(grpc-sdk)!: conduit manifest

BREAKING CHANGE:

Modified Conduit Config Service RPCs:
-Dropped ModuleExists()
-Dropped ModuleList()
-Refactored WatchModules() into WatchDeployemntState()
-Updated RegisterModule()

Services need also expose an `ActivateModule()` RPC

GetModules route return type modified.

* fix(grpc-sdk): isModuleUp()

* chore: code-factor cleanup

* feat(core): update config rpc tests

* fix(sms): registering admin routes before onRegister()

* fix(grpc-sdk,core): core schema ownership

* build: versioning change

* feat: oneliner deployment setup for Linux and Mac (#451)

* docs: update main readme, contributing guide (#450)

* feat(authentication): teams & roles (#411)


Co-authored-by: codefactor-io <support@codefactor.io>
Co-authored-by: Konstantinos Feretos <konferetos@tutanota.com>
Co-authored-by: chris <christinapdgn@gmail.com>

* feat: get-conduit.sh --no-deploy flag (#452)

* feat(database): sort option in admin doc query

* fix(authentication): admin patch user twoFaMethod (#454)

* build(grpc-sdk): fix build missing gRPC health check proto file (#455)

* feat: expose compose container grpc ports (#456)

* fix(grpc-sdk): redis url remap (#457)

* feat(grpc-sdk): conduit module service

* chore(grpc-sdk): import package.json using require()

Co-authored-by: Konstantinos Kopanidis <kkopanidis@users.noreply.github.com>
Co-authored-by: codefactor-io <support@codefactor.io>
Co-authored-by: chris <christinapdgn@gmail.com>
Co-authored-by: Sotiria Stefa <72135844+SotiriaSte@users.noreply.github.com>
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.

2 participants