1
0
mirror of https://github.com/raseels-repos/golang-saas-starter-kit.git synced 2025-08-08 22:36:41 +02:00

fix docker files

This commit is contained in:
Lee Brown
2019-08-26 05:44:09 -08:00
parent 581cc1d22f
commit a8e3e4b715
4 changed files with 22 additions and 15 deletions

View File

@ -98,7 +98,7 @@ func NewConfig(log *log.Logger, targetEnv Env, awsCredentials devdeploy.AwsCrede
// it will fail to create appropriate resources for the account of the forked user.
if cfg.ProjectName == "saas-starter-kit" {
remoteUser := gitRemoteUser(modDetails.ProjectRoot)
// Its a true fork from the origin repo.
if remoteUser != "oss" {
// Replace the prefix 'saas' with the parent directory name, hopefully the gitlab group/username.

View File

@ -152,6 +152,8 @@ func NewService(serviceName string, cfg *devdeploy.Config) (*devdeploy.ProjectSe
ServiceHostPrimary: ctx.ServiceHostPrimary,
ServiceHostNames: ctx.ServiceHostNames,
ReleaseTag: ctx.ReleaseTag,
DockerBuildArgs: make(map[string]string),
}
if srv.DockerBuildDir == "" {
@ -589,6 +591,9 @@ func NewService(serviceName string, cfg *devdeploy.Config) (*devdeploy.ProjectSe
},
}
srv.DockerBuildArgs["swagInit"] = "1"
default:
return nil, errors.Wrapf(devdeploy.ErrInvalidService,
"No service context defined for service '%s'",