It would be more user friendly if we had a guard when a beginner tries docky build before doing ak build once. Today it breaks hard with:
Step 9/21 : COPY ./templates /templates
---> a6cffafb32ac
Step 10/21 : COPY ./links /odoo/links
COPY failed: file not found in build context or excluded by .dockerignore: stat links: file does not exist
ERROR: Service 'odoo' failed to build
Traceback (most recent call last):
File "/usr/local/bin/docky", line 33, in <module>
sys.exit(load_entry_point('docky==7.0.3', 'console_scripts', 'docky')())
File "/home/app/.local/lib/python3.6/site-packages/docky/main.py", line 7, in main
Docky.run()
File "/usr/local/lib/python3.6/dist-packages/plumbum/cli/application.py", line 577, in run
inst, retcode = subapp.run(argv, exit=False)
File "/usr/local/lib/python3.6/dist-packages/plumbum/cli/application.py", line 572, in run
retcode = inst.main(*tailargs)
File "/home/app/.local/lib/python3.6/site-packages/docky/cmd/base.py", line 54, in main
self._main(*args, **kwargs)
File "/home/app/.local/lib/python3.6/site-packages/docky/cmd/forward.py", line 16, in _main
return self._run(self.compose[cmd])
File "/home/app/.local/lib/python3.6/site-packages/docky/cmd/base.py", line 45, in _run
self.parent._run(*args, **kwargs)
File "/home/app/.local/lib/python3.6/site-packages/docky/cmd/base.py", line 24, in _run
return cmd & retcode
File "/usr/local/lib/python3.6/dist-packages/plumbum/commands/modifiers.py", line 154, in __rand__
timeout=self.timeout)
File "/usr/local/lib/python3.6/dist-packages/plumbum/commands/base.py", line 96, in __call__
return self.run(args, **kwargs)[1]
File "/usr/local/lib/python3.6/dist-packages/plumbum/commands/base.py", line 232, in run
return p.run()
File "/usr/local/lib/python3.6/dist-packages/plumbum/commands/base.py", line 193, in runner
return run_proc(p, retcode, timeout)
File "/usr/local/lib/python3.6/dist-packages/plumbum/commands/processes.py", line 302, in run_proc
return _check_process(proc, retcode, timeout, stdout, stderr)
File "/usr/local/lib/python3.6/dist-packages/plumbum/commands/processes.py", line 22, in _check_process
proc.verify(retcode, timeout, stdout, stderr)
File "/usr/local/lib/python3.6/dist-packages/plumbum/machines/base.py", line 26, in verify
stderr)
plumbum.commands.processes.ProcessExecutionError: Unexpected exit code: 1
Command line: | /usr/local/bin/docker-compose build
and if one does mkdir odoo/links it then breaks with:
---> 40f37e091ba5
Step 14/21 : FROM base as dev
---> 40f37e091ba5
Step 15/21 : COPY ./src/setup.py /odoo/src/setup.py
COPY failed: file not found in build context or excluded by .dockerignore: stat src/setup.py: file does not exist
ERROR: Service 'odoo' failed to build
Traceback (most recent call last):
File "/usr/local/bin/docky", line 33, in <module>
sys.exit(load_entry_point('docky==7.0.3', 'console_scripts', 'docky')())
File "/home/app/.local/lib/python3.6/site-packages/docky/main.py", line 7, in main
Docky.run()
File "/usr/local/lib/python3.6/dist-packages/plumbum/cli/application.py", line 577, in run
inst, retcode = subapp.run(argv, exit=False)
File "/usr/local/lib/python3.6/dist-packages/plumbum/cli/application.py", line 572, in run
retcode = inst.main(*tailargs)
File "/home/app/.local/lib/python3.6/site-packages/docky/cmd/base.py", line 54, in main
self._main(*args, **kwargs)
File "/home/app/.local/lib/python3.6/site-packages/docky/cmd/forward.py", line 16, in _main
return self._run(self.compose[cmd])
File "/home/app/.local/lib/python3.6/site-packages/docky/cmd/base.py", line 45, in _run
self.parent._run(*args, **kwargs)
File "/home/app/.local/lib/python3.6/site-packages/docky/cmd/base.py", line 24, in _run
return cmd & retcode
File "/usr/local/lib/python3.6/dist-packages/plumbum/commands/modifiers.py", line 154, in __rand__
timeout=self.timeout)
File "/usr/local/lib/python3.6/dist-packages/plumbum/commands/base.py", line 96, in __call__
return self.run(args, **kwargs)[1]
File "/usr/local/lib/python3.6/dist-packages/plumbum/commands/base.py", line 232, in run
return p.run()
File "/usr/local/lib/python3.6/dist-packages/plumbum/commands/base.py", line 193, in runner
return run_proc(p, retcode, timeout)
File "/usr/local/lib/python3.6/dist-packages/plumbum/commands/processes.py", line 302, in run_proc
return _check_process(proc, retcode, timeout, stdout, stderr)
File "/usr/local/lib/python3.6/dist-packages/plumbum/commands/processes.py", line 22, in _check_process
proc.verify(retcode, timeout, stdout, stderr)
File "/usr/local/lib/python3.6/dist-packages/plumbum/machines/base.py", line 26, in verify
stderr)
plumbum.commands.processes.ProcessExecutionError: Unexpected exit code: 1
Command line: | /usr/local/bin/docker-compose build
It would be more user friendly if we had a guard when a beginner tries
docky build
before doingak build
once. Today it breaks hard with:and if one does
mkdir odoo/links
it then breaks with: