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

[Bug] Docker compose up containers exit with missing env.template. #1504

Open
RashiqAzhan opened this issue Jul 22, 2022 · 3 comments
Open
Assignees
Labels
devops DevOps related request Gauzy GitHub
Milestone

Comments

@RashiqAzhan
Copy link

Bug Report

The .env.template is missing from the root of the project. I tried placing the .env.template contents in packages/core/ in the root folder as .env but it seems to be not working. Followed this doc to get it setup.

🔎 Search Terms

docker compose up error, missing .env, code 127, code 1, exited with

🕗 Version & Regression Information

  • I was unable to test this on prior versions because I pulled from the latest 'develop' branch.

💻 Code

Terminal output with docker compose up

carrier-mobile exited with code 0
api exited with code 1
merchant-mobile exited with code 127
shop-web exited with code 127
api exited with code 1
carrier-mobile exited with code 0
shop-mobile exited with code 0
shop-web exited with code 127
merchant-mobile exited with code 127
admin-web exited with code 0
carrier-mobile exited with code 0
api exited with code 1
shop-mobile exited with code 0
shop-web exited with code 127
merchant-mobile exited with code 127

🙁 Actual behavior

Docker containers keep exiting in definitely.

🙂 Expected behavior

The project would start.

@evereq evereq self-assigned this Jul 22, 2022
@evereq evereq added the devops DevOps related request label Jul 22, 2022
@evereq evereq added this to To do in Ever Demand Platform via automation Jul 22, 2022
@evereq evereq added this to the v0.3 milestone Jul 22, 2022
@evereq
Copy link
Member

evereq commented Jul 30, 2022

@RashiqAzhan Just to be sure, did you copy .env.template file as .env to the root of the mono-repo or into the packages/core folder?

@RashiqAzhan
Copy link
Author

RashiqAzhan commented Aug 2, 2022

Yes. I copied the contents of the .env.template into a .env at root. Keeping the .env in the packages/core/ folder said the docker couldn't find the env file.

Here is the output of tree --filesfirst -A -C -a -L 3; inside the folder.

.
├── commitlint.config.js
├── CREDITS.md
├── crowdin.yml
├── docker-compose.yml
├── .editorconfig
├── .env
├── ever.code-workspace
├── .gitignore
├── .gitpod.yml
├── greenkeeper.json
├── Jenkinsfile
├── lerna.json
├── LICENSE.md
├── .ncurc.json
├── package.json
├── package.workspaces.json
├── .prettierrc.yaml
├── README.md
├── .snyk
├── .stylelintrc.json
├── .travis.yml
├── tsconfig.base.json
├── tslint.json
├── wait
├── .whitesource
├── yarn.lock
├── .circleci
   └── config.yml
├── .deploy
   ├── admin-web-angular
      ├── Dockerfile
      ├── entrypoint.compose.sh
      ├── entrypoint.prod.sh
      ├── nginx.compose.conf
      └── nginx.prod.conf
   ├── api
      ├── Dockerfile
      ├── entrypoint.compose.sh
      └── entrypoint.prod.sh
   ├── carrier-mobile-ionic
      ├── Dockerfile
      ├── entrypoint.compose.sh
      ├── entrypoint.prod.sh
      ├── nginx.compose.conf
      └── nginx.prod.conf
   ├── k8s
      ├── k8s-manifest.demo.yaml
      └── README.md
   ├── merchant-tablet-ionic
      ├── Dockerfile
      ├── entrypoint.compose.sh
      ├── entrypoint.prod.sh
      ├── nginx.compose.conf
      └── nginx.prod.conf
   ├── shop-mobile-ionic
      ├── Dockerfile
      ├── entrypoint.compose.sh
      ├── entrypoint.prod.sh
      ├── nginx.compose.conf
      └── nginx.prod.conf
   └── shop-web-angular
       ├── Dockerfile
       ├── entrypoint.compose.sh
       ├── entrypoint.prod.sh
       ├── nginx.compose.conf
       └── nginx.prod.conf
├── .git
   ├── config
   ├── description
   ├── FETCH_HEAD
   ├── FETCH_LOG
   ├── HEAD
   ├── index
   ├── packed-refs
   ├── branches
   ├── hooks
      ├── applypatch-msg.sample
      ├── commit-msg.sample
      ├── fsmonitor-watchman.sample
      ├── post-update.sample
      ├── pre-applypatch.sample
      ├── pre-commit.sample
      ├── pre-merge-commit.sample
      ├── prepare-commit-msg.sample
      ├── pre-push.sample
      ├── pre-rebase.sample
      ├── pre-receive.sample
      ├── push-to-checkout.sample
      └── update.sample
   ├── info
      └── exclude
   ├── logs
      ├── HEAD
      └── refs
   ├── objects
      ├── 05
      ├── 06
      ├── 08
      ├── 09
      ├── 11
      ├── 13
      ├── 18
      ├── 1d
      ├── 1f
      ├── 20
      ├── 25
      ├── 27
      ├── 37
      ├── 38
      ├── 39
      ├── 3f
      ├── 43
      ├── 45
      ├── 47
      ├── 49
      ├── 53
      ├── 55
      ├── 5b
      ├── 5d
      ├── 5e
      ├── 63
      ├── 73
      ├── 74
      ├── 76
      ├── 77
      ├── 7c
      ├── 83
      ├── 8b
      ├── 8f
      ├── 91
      ├── 95
      ├── 97
      ├── 9a
      ├── 9b
      ├── 9f
      ├── a3
      ├── ab
      ├── af
      ├── b2
      ├── b3
      ├── b4
      ├── b5
      ├── b7
      ├── bd
      ├── c6
      ├── cf
      ├── d5
      ├── da
      ├── e2
      ├── e5
      ├── ea
      ├── f4
      ├── ff
      ├── info
      └── pack
   └── refs
       ├── heads
       ├── remotes
       └── tags
├── .github
   ├── CODE_OF_CONDUCT.md
   ├── CONTRIBUTING.md
   ├── PULL_REQUEST_TEMPLATE.md
   ├── SUPPORT.md
   ├── ISSUE_TEMPLATE
      ├── bug_report.md
      └── config.yml
   └── workflows
       ├── codeql-analysis.yml
       ├── deploy-do.yml
       └── docker-build-publish.yml
├── .husky
   ├── commit-msg
   └── pre-commit
├── packages
   ├── admin-web-angular
      ├── angular.json
      ├── CREDITS.md
      ├── .dockerignore
      ├── .ebignore
      ├── .env.template
      ├── .gitignore
      ├── GNU-AGPL-3.0.txt
      ├── graphql.config.json
      ├── karma.conf.js
      ├── LICENSE.md
      ├── ng-package.json
      ├── package.json
      ├── protractor.conf.js
      ├── README.md
      ├── .stylelintrc.json
      ├── .travis.yml
      ├── tsconfig.commonjs.json
      ├── tsconfig.json
      ├── tsconfig.spec.json
      ├── tslint.json
      ├── e2e
      ├── .ebextensions
      ├── .elasticbeanstalk
      ├── scripts
      ├── src
      └── .storybook
   ├── carrier-mobile-ionic
      ├── angular.json
      ├── app.ts
      ├── config.xml
      ├── CREDITS.md
      ├── .dockerignore
      ├── .env.template
      ├── extra-webpack.config.js
      ├── .gitignore
      ├── gpl-3.0.txt
      ├── graphql.config.json
      ├── .io-config.json
      ├── ionic.config.json
      ├── ionic.project
      ├── LICENSE.md
      ├── ngsw-config.json
      ├── package.json
      ├── pm2bootstrap.ts
      ├── README.md
      ├── tsconfig.json
      ├── tslint.json
      ├── config
      ├── img
      ├── resources
      ├── scripts
      └── src
   ├── common
      ├── .dockerignore
      ├── .gitignore
      ├── gpl-3.0.txt
      ├── LICENSE.md
      ├── package.json
      ├── README.md
      ├── tsconfig.build.json
      ├── tsconfig.json
      ├── tslint.json
      └── src
   ├── common-angular
      ├── .dockerignore
      ├── .gitignore
      ├── gpl-3.0.txt
      ├── LICENSE.md
      ├── package.json
      ├── README.md
      ├── tsconfig.build.json
      ├── tsconfig.json
      ├── tslint.json
      └── src
   ├── core
      ├── CREDITS.md
      ├── .dockerignore
      ├── .ebignore
      ├── .env.template
      ├── .gitignore
      ├── GNU-AGPL-3.0.txt
      ├── graphql.config.json
      ├── jest.config.js
      ├── LICENSE.md
      ├── nodemon-debug.json
      ├── nodemon.json
      ├── package.json
      ├── README.md
      ├── .snyk
      ├── tsconfig.build.json
      ├── tsconfig.json
      ├── tslint.json
      ├── webpack.config.js
      ├── .ebextensions
      ├── .elasticbeanstalk
      ├── res
      └── src
   ├── merchant-tablet-ionic
      ├── angular.json
      ├── app.ts
      ├── config.xml
      ├── CREDITS.md
      ├── .dockerignore
      ├── .ebignore
      ├── .env.template
      ├── extra-webpack.config.js
      ├── .gitignore
      ├── GNU-AGPL-3.0.txt
      ├── GoogleService-Info.template.plist
      ├── google-services.template.json
      ├── graphql.config.json
      ├── .io-config.json
      ├── ionic.config.json
      ├── ionic.project
      ├── LICENSE.md
      ├── ngsw-config.json
      ├── package.json
      ├── pm2bootstrap.ts
      ├── README.md
      ├── tsconfig.json
      ├── tslint.json
      ├── config
      ├── .ebextensions
      ├── .elasticbeanstalk
      ├── resources
      ├── scripts
      └── src
   ├── shop-mobile-expo
      ├── app.json
      ├── App.spec.tsx
      ├── App.tsx
      ├── babel.config.js
      ├── .env.template
      ├── .eslintrc.json
      ├── .gitignore
      ├── metro.config.js
      ├── package.json
      ├── .prettierrc.json
      ├── README.md
      ├── tsconfig.json
      ├── .watchmanconfig
      ├── .expo-shared
      ├── scripts
      └── src
   ├── shop-mobile-flutter
      ├── analysis_options.yaml
      ├── .gitignore
      ├── l10n.yaml
      ├── LICENSE.md
      ├── .metadata
      ├── pubspec.lock
      ├── pubspec.yaml
      ├── README.md
      ├── android
      ├── assets
      ├── ios
      ├── lib
      └── web
   ├── shop-mobile-ionic
      ├── angular.json
      ├── app.ts
      ├── .browserslistrc
      ├── config.xml
      ├── CREDITS.md
      ├── .dockerignore
      ├── .env.template
      ├── extra-webpack.config.js
      ├── .gitignore
      ├── gpl-3.0.txt
      ├── graphql.config.json
      ├── .io-config.json
      ├── ionic.config.json
      ├── ionic.project
      ├── LICENSE.md
      ├── ngsw-config.json
      ├── package.json
      ├── pm2bootstrap.ts
      ├── README.md
      ├── tsconfig.json
      ├── tslint.json
      ├── config
      ├── e2e
      ├── res
      ├── resources
      ├── scripts
      └── src
   ├── shop-web-angular
      ├── angular.json
      ├── app.ts
      ├── .browserslistrc
      ├── CREDITS.md
      ├── docker-compose.yml
      ├── Dockerfile
      ├── Dockerfile-dev
      ├── .dockerignore
      ├── .ebignore
      ├── .editorconfig
      ├── .env.template
      ├── firebase.json
      ├── .gitattributes
      ├── .gitignore
      ├── GNU-AGPL-3.0.txt
      ├── karma.conf.js
      ├── LICENSE.md
      ├── netlify.toml
      ├── .nvmrc
      ├── package.json
      ├── pm2bootstrap.ts
      ├── protractor.conf.js
      ├── README.md
      ├── .travis.yml
      ├── tsconfig.app.json
      ├── tsconfig.json
      ├── tsconfig.spec.json
      ├── tslint.json
      ├── typedoc.json
      ├── webpack.config.js
      ├── config
      ├── .ebextensions
      ├── .elasticbeanstalk
      ├── scripts
      └── src
   └── shop-web-gatsby
       ├── codegen.yml
       ├── .dockerignore
       ├── .env.template
       ├── ever-types.ts
       ├── gatsby-browser.js
       ├── gatsby-config.js
       ├── gatsby-node.js
       ├── gatsby-ssr.js
       ├── gatsby-types.ts
       ├── .gitignore
       ├── .graphqlconfig
       ├── package.json
       ├── .prettierrc
       ├── README.md
       ├── tsconfig.json
       ├── tslint.json
       ├── src
       └── .vscode
└── .vscode
├── launch.json
└── settings.json

@sdekna
Copy link

sdekna commented Aug 10, 2022

@RashiqAzhan I think you need to place the .env in the mono repo (root folder)... because docker-compose will be looking for it there.
Or you can modify the docker-compose line 120 which says - .env to this:
- ./packages/core/.env
like this it will look for the .env file in the ./packages/core/ folder.

Hope this helps.

@evereq evereq changed the title Docker compose up containers exit with missing env.template. [Bug] Docker compose up containers exit with missing env.template. Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devops DevOps related request Gauzy GitHub
Projects
Development

No branches or pull requests

3 participants