git.psu.edu has been upgraded to 13.8.4. Please email support@git.psu.edu with any Gitlab problems. See the git.psu.edu yammer group for more information. 13.9.x will be soon.

Commit 3abca6a7 authored by CHRISTOPHER PIKE's avatar CHRISTOPHER PIKE

docker eval on start, add -f to docker build

parent ad1485ef
...@@ -34,6 +34,8 @@ var buildCmd = &cobra.Command{ ...@@ -34,6 +34,8 @@ var buildCmd = &cobra.Command{
Use: "build", Use: "build",
Short: "build the application", Short: "build the application",
Run: func(cmd *cobra.Command, args []string) { Run: func(cmd *cobra.Command, args []string) {
environment.EvalDockerEnv()
err := environment.Run(true, "minikube", "status") err := environment.Run(true, "minikube", "status")
if err != nil { if err != nil {
color.Red("Minikube is not started... run `devtool start` first.") color.Red("Minikube is not started... run `devtool start` first.")
...@@ -119,7 +121,7 @@ func buildDockerAndDeploy(config config.Config) error { ...@@ -119,7 +121,7 @@ func buildDockerAndDeploy(config config.Config) error {
dockerTag := image + ":" + tag.String() dockerTag := image + ":" + tag.String()
color.New(color.FgGreen).PrintFunc()("Building %s", dockerTag) color.New(color.FgGreen).PrintFunc()("Building %s", dockerTag)
err = environment.Run(true, "docker", "build", "-t", dockerTag, dockerfile) err = environment.Run(true, "docker", "build", "-t", dockerTag, "-f", dockerfile, ".")
if err != nil { if err != nil {
return err return err
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment