Skip to content

Commit

Permalink
feat(orchestrator): make the internal sonata podman compatible (#1612)
Browse files Browse the repository at this point in the history
1.This makes sure selinux context is passed when mounting
src/main/resources when starting the container using `yarn
start:backstage`

This is mainly for those developers working with podman and not docker
There's no need to hack the permissions of /tmp/orchestrator

2. Set a name for the container so it is easily identified



feat: add permissions to orchestrator plugin

Signed-off-by: Roy Golan <[email protected]>
  • Loading branch information
rgolangh authored May 6, 2024
1 parent 29e60e6 commit e4e528e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/orchestrator-backend/src/service/DevModeService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ export class DevModeService {

const launcherArgs = [
'run',
'--name',
'backstage-internal-sonataflow',
'--add-host',
'host.docker.internal:host-gateway',
];
Expand All @@ -141,7 +143,7 @@ export class DevModeService {
launcherArgs.push('-e', `KOGITO_SERVICE_URL=${this.devModeUrl}`);
launcherArgs.push(
'-v',
`${resourcesAbsPath}:${SONATA_FLOW_RESOURCES_PATH}`,
`${resourcesAbsPath}:${SONATA_FLOW_RESOURCES_PATH}:Z`,
);
launcherArgs.push('-e', 'KOGITO.CODEGEN.PROCESS.FAILONERROR=false');
launcherArgs.push(
Expand Down

0 comments on commit e4e528e

Please sign in to comment.