Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
make api-shell
starts a devshell with redis and the builder-api,builder-router, builder-sessionsrv, and builder-vault services running.
An
api
script that can start, stop, and restart these services isavailable in the shell.
With this running, along with using the new defaults in
components/builder-web/habitat.conf.sample.js, you can run a local
Builder API service and have the locally running (using Node on your
local machine on port 3000) web app connect to it.
This replaces
make start-web-dev
and adds Redis to the Dockerfile forthe devshell image.
How is this different than
make shell
?make shell
can be run multiple times and start multiple dev shells,which is great if you want to be working on individual components inside the
shell.
I does not expose any ports, because there would be conflicts if you
tried to run more than one instance.
make api-shell
exposes port 9636, and is meant to be run once, but youcan still use
cargo
and everything else that you can inmake shell
,so somebody working on the API can make changes, recompile, and run them
while being able to connect to the API service.
How is this different than
make start-web-dev
?make start-web-dev
ran the Habitat packages for these services, so youcould have a locally running API, but did not give you the ability to
easily make changes to those components. It ran the web app inside the
director, while
make api-shell
expects you to run the web app locallyon your machine (we should add the ability to run the web app inside a
container at some point, but this functionality is not included here.)