Skip to content

Commit

Permalink
Fix Dockerfile path issue on Windows (kyma-project#502)
Browse files Browse the repository at this point in the history
  • Loading branch information
Suleyman Akbas authored Jul 15, 2020
1 parent 69767d7 commit 097c26b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/installation/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"io/ioutil"
"net/http"
"os"
"path"
"path/filepath"
"strings"
"time"
Expand All @@ -34,7 +35,7 @@ func (i *Installation) buildKymaInstaller(imageName string) error {
return err
}

reader, err := archive.TarWithOptions(filepath.Join(i.Options.LocalSrcPath), &archive.TarOptions{})
reader, err := archive.TarWithOptions(i.Options.LocalSrcPath, &archive.TarOptions{})
if err != nil {
return err
}
Expand All @@ -52,7 +53,7 @@ func (i *Installation) buildKymaInstaller(imageName string) error {
Tags: []string{strings.TrimSpace(string(imageName))},
SuppressOutput: true,
Remove: true,
Dockerfile: filepath.Join("tools", "kyma-installer", "kyma.Dockerfile"),
Dockerfile: path.Join("tools", "kyma-installer", "kyma.Dockerfile"),
BuildArgs: args,
},
)
Expand Down

0 comments on commit 097c26b

Please sign in to comment.