Skip to content

Commit

Permalink
Add a comment on the use of image on CreateTarFile
Browse files Browse the repository at this point in the history
  • Loading branch information
8W9aG committed Jan 22, 2025
1 parent 8dcc488 commit 506fb02
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/docker/docker_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ func (c *DockerCommand) CreateTarFile(image string, tmpDir string, tarFile strin
}

func (c *DockerCommand) CreateAptTarFile(tmpDir string, aptTarFile string, packages ...string) (string, error) {
// This uses a hardcoded monobase image to produce an apt tar file.
// The reason being that this apt tar file is created outside the docker file, and it is created by
// running the apt.sh script on the monobase with the packages we intend to install, which produces
// a tar file that can be untarred into a docker build to achieve the equivalent of an apt-get install.
args := []string{
"--rm",
"--volume",
Expand Down

0 comments on commit 506fb02

Please sign in to comment.