Skip to content

Commit 19cfe4e

Browse files
committed
fix: new docker compose parsing
1 parent 23a1b19 commit 19cfe4e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

bootstrap/helpers/shared.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1688,19 +1688,14 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = fal
16881688
$read_only = data_get($volume, 'read_only');
16891689
if ($source && $target) {
16901690
$uuid = $resource->uuid;
1691-
if ((str($source)->startsWith('.') || str($source)->startsWith('~'))) {
1691+
if ((str($source)->startsWith('.') || str($source)->startsWith('~') || str($source)->startsWith('/'))) {
16921692
$dir = base_configuration_dir().'/applications/'.$resource->uuid;
16931693
if (str($source, '.')) {
16941694
$source = str($source)->replaceFirst('.', $dir);
16951695
}
16961696
if (str($source, '~')) {
16971697
$source = str($source)->replaceFirst('~', $dir);
16981698
}
1699-
if ($pull_request_id === 0) {
1700-
$source = $uuid."-$source";
1701-
} else {
1702-
$source = $uuid."-$source-pr-$pull_request_id";
1703-
}
17041699
if ($read_only) {
17051700
data_set($volume, 'source', $source.':'.$target.':ro');
17061701
} else {

0 commit comments

Comments
 (0)