Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0b2281c

Browse files
tbalmblaschke
authored andcommitted
[TASK] Use docker-compose exec for make shell/root (#161)
Use docker-compose exec instead of docker exec for 'make shell' respectively 'make bash' and 'make root'. This also speeds up these commands, because it is not necessary to determine the container id for the app container anymore.
1 parent 28b3847 commit 0b2281c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ build:
6666
bash: shell
6767

6868
shell:
69-
docker exec -it -u application $$(docker-compose ps -q app) /bin/bash
69+
docker-compose exec --user application app /bin/bash
7070

7171
root:
72-
docker exec -it -u root $$(docker-compose ps -q app) /bin/bash
72+
docker-compose exec --user root app /bin/bash
7373

7474
#############################
7575
# Argument fix workaround

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /