Skip to content

Commit

Permalink
Fixed error: "Dockerfile was not generated by ./dockerfiles/compile. …
Browse files Browse the repository at this point in the history
…Please run `go

run ./dockerfiles`"
  • Loading branch information
XuechunHou committed Nov 29, 2024
1 parent 0417a20 commit 34cb619
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ COPY cmd/ops_agent_uap_wrapper cmd/ops_agent_uap_wrapper
COPY ./builds/ops_agent_plugin.sh .
RUN ./ops_agent_plugin.sh /work/cache/


FROM centos8-build-golang-base AS centos8-build
WORKDIR /work
COPY . /work
Expand Down Expand Up @@ -481,7 +480,6 @@ COPY cmd/agent_wrapper cmd/agent_wrapper
COPY ./builds/agent_wrapper.sh .
RUN ./agent_wrapper.sh /work/cache/


FROM bullseye-build-golang-base AS bullseye-build-ops-agent-uap-plugin
WORKDIR /work
COPY cmd/ops_agent_uap_wrapper cmd/ops_agent_uap_wrapper
Expand Down
6 changes: 6 additions & 0 deletions dockerfiles/template
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ COPY cmd/agent_wrapper cmd/agent_wrapper
COPY ./builds/agent_wrapper.sh .
RUN ./agent_wrapper.sh /work/cache/

FROM {target_name}-build-golang-base AS {target_name}-build-ops-agent-uap-plugin
WORKDIR /work
COPY cmd/ops_agent_uap_wrapper cmd/ops_agent_uap_wrapper
COPY ./builds/ops_agent_plugin.sh .
RUN ./ops_agent_plugin.sh /work/cache/

FROM {target_name}-build-golang-base AS {target_name}-build
WORKDIR /work
Expand All @@ -89,6 +94,7 @@ COPY --from={target_name}-build-fluent-bit /work/cache /work/cache
COPY --from={target_name}-build-systemd /work/cache /work/cache
COPY --from={target_name}-build-diagnostics /work/cache /work/cache
COPY --from={target_name}-build-wrapper /work/cache /work/cache
COPY --from={target_name}-build-ops-agent-uap-plugin /work/cache /work/cache
{package_build}

FROM scratch AS {target_name}
Expand Down

0 comments on commit 34cb619

Please sign in to comment.