Skip to content

Commit 8de7eb6

Browse files
authored
fix extensions dev mode in binary builds (#21)
1 parent 7abbfd8 commit 8de7eb6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,16 @@ jobs:
130130
# Pull images to avoid making smoke tests vulnerable to system behavior (docker pull speed)
131131
docker pull localstack/localstack-pro
132132
cd dist-bin
133-
# start pro
133+
# start pro with an API key (legacy)
134134
LOCALSTACK_API_KEY=${{ secrets.TEST_LOCALSTACK_API_KEY }} ./localstack start -d
135135
./localstack wait -t 180
136136
./localstack status services --format plain
137137
./localstack status services --format plain | grep "xray=available"
138138
./localstack stop
139-
LOCALSTACK_AUTH_TOKEN=${{ secrets.TEST_LOCALSTACK_AUTH_TOKEN }} ./localstack start -d
139+
# start pro with an auth token and extensions dev mode (see issue #20)
140+
LOCALSTACK_AUTH_TOKEN=${{ secrets.TEST_LOCALSTACK_AUTH_TOKEN }} EXTENSION_DEV_MODE=1 ./localstack start -d
140141
./localstack wait -t 180
142+
./localstack logs | grep "extension developer mode enabled"
141143
./localstack status services --format plain
142144
./localstack status services --format plain | grep "xray=available"
143145
./localstack stop

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ dist-bin/localstack build: $(VENV_ACTIVATE) main.py
2727
--hidden-import cookiecutter.extensions \
2828
--hidden-import localstack_ext.cli.localstack \
2929
--hidden-import localstack_ext.plugins \
30+
--hidden-import localstack.dev.run.configurators \
3031
--hidden-import localstack_ext.extensions.plugins \
32+
--hidden-import localstack_ext.extensions.bootstrap \
3133
--additional-hooks-dir hooks
3234

3335
dist-dir/localstack: PYINSTALLER_ARGS=--distpath=dist-dir

0 commit comments

Comments
 (0)