MD-Studio / MDStudio

A general framework for microservice based distributed applications
Apache License 2.0
12 stars 0 forks source link

Docker, pipenv en PIPENV_VENV_IN_PROJECT not playing nice #124

Open marcvdijk opened 6 years ago

marcvdijk commented 6 years ago

When installing MDStudio using pipenv and PIPENV_VENV_IN_PROJECT=1 followed by building and/or starting docker image for crossbar (using standalone.sh) the following error is logged for the mdstudio_crossbar_1 docker:

crossbar_1 | Loading .env environment variables… crossbar_1 | Traceback (most recent call last): crossbar_1 | File “/usr/local/bin/pipenv”, line 11, in crossbar_1 | sys.exit(cli()) crossbar_1 | File “/usr/local/lib/python3.6/site-packages/pipenv/vendor/click/core.py”, line 722, in call crossbar_1 | return self.main(args, kwargs) crossbar_1 | File “/usr/local/lib/python3.6/site-packages/pipenv/vendor/click/core.py”, line 697, in main crossbar_1 | rv = self.invoke(ctx) crossbar_1 | File “/usr/local/lib/python3.6/site-packages/pipenv/vendor/click/core.py”, line 1066, in invoke crossbar_1 | return _process_result(sub_ctx.command.invoke(sub_ctx)) crossbar_1 | File “/usr/local/lib/python3.6/site-packages/pipenv/vendor/click/core.py”, line 895, in invoke crossbar_1 | return ctx.invoke(self.callback, ctx.params) crossbar_1 | File “/usr/local/lib/python3.6/site-packages/pipenv/vendor/click/core.py”, line 535, in invoke crossbar_1 | return callback(args, *kwargs) crossbar_1 | File “/usr/local/lib/python3.6/site-packages/pipenv/cli.py”, line 602, in run crossbar_1 | core.do_run(command=command, args=args, three=three, python=python) crossbar_1 | File “/usr/local/lib/python3.6/site-packages/pipenv/core.py”, line 2234, in do_run crossbar_1 | os.execl(command_path, command_path, args) crossbar_1 | File “/usr/local/lib/python3.6/os.py”, line 527, in execl crossbar_1 | execv(file, args) crossbar_1 | OSError: [Errno 8] Exec format error mdstudio_crossbar_1 exited with code 1

When temporary renaming the local .venv virtual environment to venv docker builds and/or starts normally.