Skip to content

Commit

Permalink
fix: update release package docker file with new patch naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-howe-1 committed Oct 16, 2024
1 parent af08fe9 commit fc78c5c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN docker-entrypoint.sh generate -i ${BASEPATH}/${OPENAPI_YAML} -g go-server -o

# Generating ${OPENAPI_YAML} go client using openapi-generator-cli
RUN docker-entrypoint.sh generate -i ${BASEPATH}/${OPENAPI_YAML} -g go -o ${BASEPATH}/pkg/client -p isGoSubmodule=true,withGoMod=false --package-name client --ignore-file-override ${BASEPATH}/api/ignore/.openapi-generator-ignore-client -t ${BASEPATH}/api/templates/go

# workaround for withGoMod=false not functioning with openapi-generator
RUN rm ${BASEPATH}/pkg/client/go.mod
RUN rm ${BASEPATH}/pkg/client/go.sum
Expand All @@ -41,8 +41,7 @@ WORKDIR ${BASEPATH}
RUN gofmt -w ${BASEPATH}

# apply local patch for xml response fix
RUN git apply api/patch/Apply-xml-workaround-to-fix-metadata-response.patch
RUN git apply api/patch/fix-missing-import.patch
RUN git apply api/patch/*.redfish.patch

# build the excutable
RUN make build-go
Expand Down

0 comments on commit fc78c5c

Please sign in to comment.