Skip to content

Commit

Permalink
Sync to default dev image workdir (#1044)
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Chico de Guzman <pchico83@gmail.com>
  • Loading branch information
pchico83 committed Sep 19, 2020
1 parent 857147f commit 1e7f0bf
Showing 1 changed file with 8 additions and 59 deletions.
67 changes: 8 additions & 59 deletions pkg/linguist/dev.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (
type languageDefault struct {
image string
environment []model.EnvVar
syncs []model.Sync
volumes []model.Volume
forward []model.Forward
reverse []model.Reverse
Expand Down Expand Up @@ -63,12 +62,6 @@ func init() {
Remote: 9229,
},
},
syncs: []model.Sync{
{
LocalPath: ".",
RemotePath: "/okteto",
},
},
}
forwardDefaults[javascript] = []model.Forward{
{
Expand Down Expand Up @@ -98,12 +91,6 @@ func init() {
RemotePath: "/root/.cache/go-build/",
},
},
syncs: []model.Sync{
{
LocalPath: ".",
RemotePath: "/okteto",
},
},
}
forwardDefaults[golang] = []model.Forward{
{
Expand All @@ -125,12 +112,6 @@ func init() {
RemotePath: "/root/.cache/pip",
},
},
syncs: []model.Sync{
{
LocalPath: ".",
RemotePath: "/okteto",
},
},
}
forwardDefaults[python] = []model.Forward{
{
Expand All @@ -152,12 +133,6 @@ func init() {
RemotePath: "/home/gradle/.gradle",
},
},
syncs: []model.Sync{
{
LocalPath: ".",
RemotePath: "/okteto",
},
},
}
forwardDefaults[gradle] = []model.Forward{
{
Expand All @@ -179,12 +154,6 @@ func init() {
RemotePath: "/root/.m2",
},
},
syncs: []model.Sync{
{
LocalPath: ".",
RemotePath: "/okteto",
},
},
}
forwardDefaults[maven] = []model.Forward{
{
Expand All @@ -206,12 +175,6 @@ func init() {
RemotePath: "/usr/local/bundle/cache",
},
},
syncs: []model.Sync{
{
LocalPath: ".",
RemotePath: "/okteto",
},
},
}
forwardDefaults[ruby] = []model.Forward{
{
Expand All @@ -228,12 +191,6 @@ func init() {
Value: "Development",
},
},
syncs: []model.Sync{
{
LocalPath: ".",
RemotePath: "/okteto",
},
},
forward: []model.Forward{},
remote: 22000,
}
Expand All @@ -257,12 +214,6 @@ func init() {
RemotePath: "/root/.composer/cache",
},
},
syncs: []model.Sync{
{
LocalPath: ".",
RemotePath: "/okteto",
},
},
}
forwardDefaults[php] = []model.Forward{
{
Expand All @@ -274,12 +225,6 @@ func init() {
languageDefaults[Unrecognized] = languageDefault{
image: model.DefaultImage,
forward: []model.Forward{},
syncs: []model.Sync{
{
LocalPath: ".",
RemotePath: "/okteto",
},
},
}
forwardDefaults[Unrecognized] = []model.Forward{
{
Expand Down Expand Up @@ -315,13 +260,17 @@ func GetDevDefaults(language, workdir string, iAskingForDeployment bool) (*model
Name: vals.image,
},
},
WorkDir: "/okteto",
Command: model.Command{
Values: []string{"bash"},
},
Environment: vals.environment,
Volumes: vals.volumes,
Syncs: vals.syncs,
Environment: vals.environment,
Volumes: vals.volumes,
Syncs: []model.Sync{
{
LocalPath: ".",
RemotePath: "/usr/src/app",
},
},
Forward: vals.forward,
Reverse: vals.reverse,
RemotePort: vals.remote,
Expand Down

0 comments on commit 1e7f0bf

Please sign in to comment.