seabreeze-project / seabreeze

🌊 [WIP] Seabreeze is a really simple container orchestration tool with superpowers.
https://seabreeze.run
MIT License
1 stars 0 forks source link

Scripts #9

Open secondtruth opened 4 months ago

secondtruth commented 4 months ago

Implement a Script Runner feature in Seabreeze to run predefined commands within containers and on the host.

Details

The Script Runner will:

This feature will streamline task automation and management across different environments.

Example Configuration

Scripts will be defined in the project configuration as follows:

scripts:
  test:
    command: npm test
    target: "service:app"
    workdir: "/usr/src/app"
    environment:
      NODE_ENV: "test"
    user: "user"
  build:
    command: make build
    target: "host"
    workdir: "/home/user/project"
    environment:
      BUILD_ENV: "production"

Libraries

Tasks