Skip to content

Commit

Permalink
rename mount path for openapi-generator container
Browse files Browse the repository at this point in the history
  • Loading branch information
ctreatma committed Feb 25, 2025
1 parent 53f7f81 commit 8a0a4a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ OPENAPI_IMAGE_TAG=v7.10.0
OPENAPI_IMAGE=openapitools/openapi-generator-cli:${OPENAPI_IMAGE_TAG}
CRI=docker # nerdctl
CRI_COMMAND_BASE=${CRI} run --rm -u ${CURRENT_UID}:${CURRENT_GID} $(DOCKER_EXTRA_ARGS)
OPENAPI_GENERATOR=${CRI_COMMAND_BASE} -v $(CURDIR):/local -w /local ${OPENAPI_IMAGE}
OPENAPI_GENERATOR=${CRI_COMMAND_BASE} -v $(CURDIR):/workdir -w /workdir ${OPENAPI_IMAGE}
SPEC_FETCHER=${CRI_COMMAND_BASE} -v $(CURDIR):/workdir --entrypoint sh mikefarah/yq:4.30.8 script/download_spec.sh
MIN_GO_VERSION=1.19
GO_CMD=${CRI_COMMAND_BASE} -v $(CURDIR):/workdir -w /workdir -e GOCACHE=/tmp/.cache golang:${MIN_GO_VERSION}
Expand Down
2 changes: 1 addition & 1 deletion Makefile.metalv1
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ codegen:
# to use v7.4.0 of openapi-generator to merge the
# spec in order to avoid introducing duplicate models
${CRI} run --rm -u ${CURRENT_UID}:${CURRENT_GID} \
-v $(CURDIR):/local -w /local \
-v $(CURDIR):/workdir -w /workdir \
openapitools/openapi-generator-cli:v7.4.0 \
generate \
-i ${SPEC_PATCHED_DIR}/${SPEC_ROOT_FILE} \
Expand Down

0 comments on commit 8a0a4a6

Please sign in to comment.