Skip to main content

dockerfile

Function dockerfile 

Source
pub fn dockerfile(
    specs: &[AgentSpec],
    base: &BaseImage,
    port: u16,
) -> Result<String, Error>
Expand description

The Dockerfile for an image carrying specs (AGENT-2).

Built by splicing into default_dockerfile’s output rather than by re-listing its lines, so the stanza this produces is the default build’s stanza plus layers: a change to the daemon lines there reaches here with no second copy to update. The splice points are the two lines the stanza is guaranteed to carry (RUN chmod 0755 /agentd and RUN mkdir -p /workspace), and the test asserts both were found.