Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions pkg/oci/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ VOLUME /data
ENV TELEMETRY_ENABLED=true
ENV CAGENT_HIDE_FEEDBACK_LINK=0
ENV CAGENT_HIDE_TELEMETRY_BANNER=0
CMD ["api", "--listen", "unix:///data/agent.sock", "--session-db", "/data/session.db", "/agent.yaml"]
RUN cat <<EOF >/agent.yaml
USER root
RUN cat <<EOF >/agent.yaml && chmod 777 /agent.yaml
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chmod before the EOF?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

{{ .AgentConfig }}
EOF
USER cagent
CMD ["api", "--listen", "unix:///data/agent.sock", "--session-db", "/data/session.db", "/agent.yaml"]
Loading