Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix stdin error on windows by using Dockerfile instead #11

Merged
merged 1 commit into from
Nov 29, 2017

Conversation

julienduchesne
Copy link
Contributor

JIRA CLOUDINFRA-311

docker.go Outdated
dockerFile += fmt.Sprintln("FROM", config.GetImageName())
dockerFile += fmt.Sprintln(config.ImageBuild)

tempDir, _ := ioutil.TempDir(".", "tgf-docker")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should use "" instead of "."

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

docker.go Outdated
dockerFile += fmt.Sprintln(config.ImageBuild)

tempDir, _ := ioutil.TempDir(".", "tgf-docker")
ioutil.WriteFile(fmt.Sprintf("%s/Dockerfile", tempDir), []byte(dockerFile), 0644)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No error check?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@jocgir jocgir merged commit 71fc93a into master Nov 29, 2017
@jocgir jocgir deleted the CLOUDINFRA-311 branch November 30, 2017 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants