Skip to content

Commit

Permalink
integration: fix config permissions for rootless
Browse files Browse the repository at this point in the history
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
  • Loading branch information
tonistiigi committed Sep 12, 2018
1 parent fe8f2c9 commit 087e11e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion util/testutil/integration/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,13 @@ func configWithMirror(mirror string) (string, error) {
if err != nil {
return "", err
}
if err := os.Chmod(tmpdir, 0711); err != nil {
return "", err
}
if err := ioutil.WriteFile(filepath.Join(tmpdir, "buildkitd.toml"), []byte(fmt.Sprintf(`
[registry."docker.io"]
mirrors=["%s"]
`, mirror)), 0600); err != nil {
`, mirror)), 0644); err != nil {
return "", err
}
return tmpdir, nil
Expand Down

0 comments on commit 087e11e

Please sign in to comment.