Init commands
See original GitHub issueGoal: To allow updating of dependencies in a safe way even when multiple replicas are being used.
- 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.
- Ability to create pre-canned, named, commands that will automatically appear as UX in the dashboard for you to invoke as-needed.
- option to automatically execute a command. Automatically executed commands mean we need to do startup in at least this order:
- Start all dependencies
- Run all init scripts in parallel
- 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:
- Created 3 years ago
- Reactions:12
- Comments:5 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.
Are there any updates to this?