Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Dolibarr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NoCloud
docker
Dolibarr
Commits
97448bc8
Verified
Commit
97448bc8
authored
9 months ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Compatibility between docker-compose and docker compose
parent
4bdce1b9
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
doli
+12
-7
12 additions, 7 deletions
doli
with
12 additions
and
7 deletions
doli
+
12
−
7
View file @
97448bc8
...
@@ -53,12 +53,17 @@ usage() {
...
@@ -53,12 +53,17 @@ usage() {
}
}
if
[
"
$(
is_docker
)
"
-eq
1
]
;
then
if
[
"
$(
is_docker
)
"
-eq
1
]
;
then
cmd
=
"docker-compose exec
$APP_SERVICE
"
if
[
-z
"
$(
which docker-compose
)
"
]
;
then
cmdmy
=
"docker-compose exec
$DB_SERVICE
"
compose
=
"docker compose"
cmdmyInput
=
"docker exec -i
$(
docker-compose ps
-q
$DB_SERVICE
)
"
else
cmdrestart
=
"docker-compose restart"
compose
=
"docker-compose"
cmdup
=
"docker-compose up"
fi
cmddown
=
"docker-compose down"
cmd
=
"
$compose
exec
$APP_SERVICE
"
cmdmy
=
"
$compose
exec
$DB_SERVICE
"
cmdmyInput
=
"docker exec -i
$(
$compose
ps
-q
$DB_SERVICE
)
"
cmdrestart
=
"
$compose
restart"
cmdup
=
"
$compose
up"
cmddown
=
"
$compose
down"
else
else
cmdrestart
=
"apache2ctl restart"
cmdrestart
=
"apache2ctl restart"
fi
fi
...
@@ -142,7 +147,7 @@ case $action in
...
@@ -142,7 +147,7 @@ case $action in
;;
;;
"shell"
)
"shell"
)
if
[
$(
is_docker
)
-eq
1
]
;
then
if
[
$(
is_docker
)
-eq
1
]
;
then
docker
cp
doli_shell.php
$(
docker-
compose ps
-q
$APP_SERVICE
)
:/var/www
docker
cp
doli_shell.php
$(
$
compose
ps
-q
$APP_SERVICE
)
:/var/www
fi
fi
$cmd
php
-a
-d
auto_prepend_file
=
/var/www/doli_shell.php
$cmd
php
-a
-d
auto_prepend_file
=
/var/www/doli_shell.php
;;
;;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment