Skip to content

Commit 0f00e4c

Browse files
committed
Adding Make command, docs
1 parent 2377dce commit 0f00e4c

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ run-local:
2323
cd dev-local ; make run-local ; cd ..
2424

2525
exec-web:
26-
docker exec -it `docker ps -a --filter "name=.*web.*" --quiet` /bin/bash
26+
cd dev-local ; make exec-web ; cd ..

dev-local/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ build-local:
1818
--platform "linux/amd64" \
1919
-t selenium-local:latest \
2020
-f Dockerfile.selenium-local ..
21+
2122
run-local:
2223
@echo "Configuring for ${ENV}" ; \
2324
./run-appropriate-stack.bash
24-
25+
26+
exec-web:
27+
docker exec -it `docker ps -a --filter "name=.*web.*" --quiet` /bin/bash

dev-local/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ or maybe
2626
make run-local bfd=sbx auth=live
2727
```
2828

29+
To exec into the web container for the new stack:
30+
31+
```
32+
make exec-web
33+
```
34+
35+
This will look up, using `docker ps`, a container matching the pattern `.*web.*` and exec into it. If you are running/testing the BB2 stack, then there should be only one container matching this spec.
2936

3037
## pre-requisites
3138

0 commit comments

Comments
 (0)