mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-20 06:07:55 +00:00
docker: Fix path to init when workdir is changed
Change-type: patch Signed-off-by: Kyle Harding <kyle@balena.io>
This commit is contained in:
parent
b2ad9f1643
commit
3cff091e3a
@ -13,7 +13,7 @@ There are 3 options to choose from to install balena's CLI:
|
|||||||
Recommended also for scripted installation in CI (continuous integration) environments.
|
Recommended also for scripted installation in CI (continuous integration) environments.
|
||||||
* [NPM Installation](#npm-installation): recommended for Node.js developers who may be interested
|
* [NPM Installation](#npm-installation): recommended for Node.js developers who may be interested
|
||||||
in integrating the balena CLI in their existing projects or workflow.
|
in integrating the balena CLI in their existing projects or workflow.
|
||||||
* [Docker Installation](#docker-installation): recommended for Linux users that would like to run the
|
* [Docker Installation](#docker-installation): recommended for users that would like to run the
|
||||||
CLI on edge devices or systems where npm installation may not be an option.
|
CLI on edge devices or systems where npm installation may not be an option.
|
||||||
|
|
||||||
Some specific CLI commands have a few extra installation steps: see section [Additional
|
Some specific CLI commands have a few extra installation steps: see section [Additional
|
||||||
|
@ -36,7 +36,7 @@ RUN CLI_CMDS=$(jq -r '.commands | keys | map(.[0:index(":")]) | unique | join("\
|
|||||||
sed -ie "s/CLI_CMDS=\"help\"/CLI_CMDS=\"help\\ ${CLI_CMDS}\"/" init.sh && \
|
sed -ie "s/CLI_CMDS=\"help\"/CLI_CMDS=\"help\\ ${CLI_CMDS}\"/" init.sh && \
|
||||||
chmod +x init.sh
|
chmod +x init.sh
|
||||||
|
|
||||||
ENTRYPOINT [ "./init.sh" ]
|
ENTRYPOINT [ "/usr/src/app/init.sh" ]
|
||||||
|
|
||||||
CMD [ "help" ]
|
CMD [ "help" ]
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ RUN CLI_CMDS=$(jq -r '.commands | keys | map(.[0:index(":")]) | unique | join("\
|
|||||||
sed -ie "s/CLI_CMDS=\"help\"/CLI_CMDS=\"help\\ ${CLI_CMDS}\"/" init.sh && \
|
sed -ie "s/CLI_CMDS=\"help\"/CLI_CMDS=\"help\\ ${CLI_CMDS}\"/" init.sh && \
|
||||||
chmod +x init.sh
|
chmod +x init.sh
|
||||||
|
|
||||||
ENTRYPOINT [ "./init.sh" ]
|
ENTRYPOINT [ "/usr/src/app/init.sh" ]
|
||||||
|
|
||||||
CMD [ "help" ]
|
CMD [ "help" ]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user