question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Goal: To allow updating of dependencies in a safe way even when multiple replicas are being used.

  1. Ability to execute arbitrary commands within the context of a service, meaning you have access to all the configuration setup by Tye to be able to communicate with dependencies if needed.
  2. Ability to create pre-canned, named, commands that will automatically appear as UX in the dashboard for you to invoke as-needed.
  3. option to automatically execute a command. Automatically executed commands mean we need to do startup in at least this order:
    1. Start all dependencies
    2. Run all init scripts in parallel
    3. Start all services.

strawman example:

name: VotingSample
services:
- name: worker
  project: worker/worker.csproj
  init:
    - name: migrate
      cmd: "dotnet ef migrate"
- name: postgres
  image:  postgres
  env:
  - name: POSTGRES_PASSWORD
    value: "pass@word1"
  bindings:
  - port: 5432
    connectionString: Server=${host};Port=${port};User Id=postgres;Password=${env:POSTGRES_PASSWORD};

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:12
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
xavidramcommented, Aug 13, 2021

@tungphuong While we wait for the Tye team to integrate this feature. For now there is not much else you can do other than serve your database containers independently through a docker compose file binding a command in the docker compose, then serve the Tye services. After the Database containers have been spun up.

0reactions
esskarcommented, Oct 18, 2022

Are there any updates to this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

init command in Linux with examples
init script initializes the service. So, it responsible for initializing the system. Init scripts are also called rc scripts (run command ...
Read more >
telinit or init Command
The init command initializes and controls processes. Its primary role is to start processes based on records read from the /etc/inittab file.
Read more >
init - Unix, Linux Command
Init is the parent of all processes. Its primary role is to create processes from a script stored in the file /etc/inittab (see...
Read more >
Using the init Command (Solaris Transition Guide)
The init (1M) command replaces the SunOS release 4 fasthalt command in the SunOS release 5.7 software. · The SunOS release 5.7 init...
Read more >
init/README.md
The Android Init Language consists of five broad classes of statements: Actions, Commands, Services, Options, and Imports. All of these are line-oriented, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found