Skip to content

Commit

Permalink
chore: parameterise binary to docker logic (#1874)
Browse files Browse the repository at this point in the history
Co-authored-by: Sarthak Shyngle <50234097+Sarthak160@users.noreply.github.com>
  • Loading branch information
PranshuSrivastava and Sarthak160 committed May 9, 2024
1 parent 76c6a92 commit 265cadf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ func CheckFileExists(path string) bool {
}

var Version string
var DockerImage = "ghcr.io/keploy/keploy"

func attachLogFileToSentry(logger *zap.Logger, logFilePath string) error {
file, err := os.Open(logFilePath)
Expand Down Expand Up @@ -387,7 +388,7 @@ func getAlias(ctx context.Context, logger *zap.Logger) (string, error) {
// Get the name of the operating system.
osName := runtime.GOOS
//TODO: configure the hardcoded port mapping
img := "ghcr.io/keploy/keploy:" + "v" + Version
img := DockerImage + ":v" + Version
logger.Info("Starting keploy in docker with image", zap.String("image:", img))

var ttyFlag string
Expand Down

0 comments on commit 265cadf

Please sign in to comment.