Skip to content

Commit

Permalink
add --rm flag docker run
Browse files Browse the repository at this point in the history
  • Loading branch information
soad003 committed Dec 6, 2024
1 parent feafc20 commit c0720c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ build-docker:
docker build -t graphsense-rest .

serve-docker:
docker run -it --network='host' -e NUM_THREADS=1 -e NUM_WORKERS=1 -v "${PWD}/instance/config.yaml:/config.yaml:Z" -e CONFIG_FILE=/config.yaml localhost/graphsense-rest:latest
docker run -rm -it --network='host' -e NUM_THREADS=1 -e NUM_WORKERS=1 -v "${PWD}/instance/config.yaml:/config.yaml:Z" -e CONFIG_FILE=/config.yaml localhost/graphsense-rest:latest

generate-openapi-server: update-package-version
docker run --rm \
Expand All @@ -53,7 +53,7 @@ generate-openapi-server: update-package-version
yq -i 'del(.components.schemas.search_result_level1.example,.components.schemas.search_result_level2.example,.components.schemas.search_result_level3.example,.components.schemas.search_result_level4.example,.components.schemas.search_result_level5.example,.components.schemas.search_result_level6.example,.components.schemas.search_result_leaf.example)' openapi_server/openapi/openapi.yaml

run-designer:
docker run -d -p 8080:8080 swaggerapi/swagger-editor
docker run --rm -d -p 8080:8080 swaggerapi/swagger-editor
echo 'Designer UI is running on port 8080'

update-package-version: update-openapi-version
Expand Down

0 comments on commit c0720c4

Please sign in to comment.