I am trying to create a production image for my project.
The create-production-image
task fails on the step where it goes to make a new docker-compose.yml.
The exception looks like this:
Executing task: xonsh /home/jzylkin/repos/chipotle_dbpt/.conf/create-docker-compose-production.xsh /home/jzylkin/repos/chipotle_dbpt v0.0.0 chipotle -imx8
❌ Error: JSONDecodeError('Expecting value: line 891 column 13 (char 30764)')
Error cause: User fault
xonsh: To log full traceback to a file set: $XONSH_TRACEBACK_LOGFILE = <filename>
Traceback (most recent call last):
File "/home/jzylkin/repos/chipotle_dbpt/.conf/create-docker-compose-production.xsh", line 157, in <module>
xonsh ./.vscode/tasks.xsh run run-torizon-binfmt
File "/home/jzylkin/.local/pipx/venvs/xonsh/lib/python3.11/site-packages/xonsh/built_ins.py", line 220, in subproc_captured_hiddenobject
return xonsh.procs.specs.run_subproc(cmds, captured="hiddenobject", envs=envs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jzylkin/.local/pipx/venvs/xonsh/lib/python3.11/site-packages/xonsh/procs/specs.py", line 1107, in run_subproc
return _run_specs(specs, cmds)
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jzylkin/.local/pipx/venvs/xonsh/lib/python3.11/site-packages/xonsh/procs/specs.py", line 1153, in _run_specs
cp.end()
File "/home/jzylkin/.local/pipx/venvs/xonsh/lib/python3.11/site-packages/xonsh/procs/pipelines.py", line 481, in end
self._end(tee_output=tee_output)
File "/home/jzylkin/.local/pipx/venvs/xonsh/lib/python3.11/site-packages/xonsh/procs/pipelines.py", line 500, in _end
self._raise_subproc_error()
File "/home/jzylkin/.local/pipx/venvs/xonsh/lib/python3.11/site-packages/xonsh/procs/pipelines.py", line 646, in _raise_subproc_error
raise subprocess.CalledProcessError(rtn, spec.args, output=self.output)
subprocess.CalledProcessError: Command '['xonsh', './.vscode/tasks.xsh', 'run', 'run-torizon-binfmt']' returned non-zero exit status 69.
* The terminal process "xonsh '/home/jzylkin/repos/chipotle_dbpt/.conf/create-docker-compose-production.xsh', '/home/jzylkin/repos/chipotle_dbpt', 'v0.0.0', 'chipotle', '-imx8'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
My docker-compose.yml file looks like this:
services:
chipotle-debug:
build:
context: .
dockerfile: Dockerfile.debug
network_mode: host
image: ${LOCAL_REGISTRY}:5002/chipotle-debug:${TAG}
ports:
- ${DEBUG_SSH_PORT}:${DEBUG_SSH_PORT}
- ${DEBUG_PORT1}:${DEBUG_PORT1}
chipotle:
network_mode: host
build:
context: .
dockerfile: Dockerfile
image: ${DOCKER_LOGIN}/chipotle:${TAG}