hcup
hcup copied to clipboard
Error running `hcup install holochain` in Docker `ubuntu:xenial` image
The following Dockerfile:
FROM ubuntu:xenial
# This removes some warning when installing packages when there is no X
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get install --yes curl
RUN apt-get install --yes sudo
RUN apt-get install --yes apt-utils
RUN apt-get install --yes git
USER root
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/holochain/hcup/master/hcup-bootstrap.sh)"
RUN /root/.local/share/hcup/bin/hcup install holochain
Produces the following error:
-i- [hcup] [bootstrap] checking bootstrap dependencies
-i- [hcup] [bootstrap] platform linux
-i- [hcup] [bootstrap] arch x64
-i- [hcup] [bootstrap] ready
-i- [hcup] [index] attempting install of target "holochain"
-i- [hcup] [platform] download https://github.com/holochain/holochain-rust/releases/download/v0.0.8-alpha/cli-v0.0.8-alpha-x86_64-ubuntu-linux-gnu.tar.gz github.com /holochain/holochain-rust/releases/download/v0.0.8-alpha/cli-v0.0.8-alpha-x86_64-ubuntu-linux-gnu.tar.gz
-i- [hcup] [platform] download https://github-production-release-asset-2e65be.s3.amazonaws.com/133449383/eda21d00-4f3b-11e9-8aba-9a98fd3e3e47?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190416%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190416T003258Z&X-Amz-Expires=300&X-Amz-Signature=6eaf874eb435c303f32652df25b72795e95b868a7148de04e556af6cf533bb70&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dcli-v0.0.8-alpha-x86_64-ubuntu-linux-gnu.tar.gz&response-content-type=application%2Foctet-stream github-production-release-asset-2e65be.s3.amazonaws.com /133449383/eda21d00-4f3b-11e9-8aba-9a98fd3e3e47
#e# [hcup] [index] Error: error calling holochain:$init, inner: Error: error calling holochain-hc-util-binary:$init, inner: Error: error calling platform:shellCapture, inner: Error: {
#e# [hcup] [index] "code": 127,
#e# [hcup] [index] "stdout": "",
#e# [hcup] [index] "stderr": "/bin/sh: 1: hc: not found"
#e# [hcup] [index] }
#e# [hcup] [index] at ChildProcess.proc.on.code (/root/.local/share/hcup/repo/lib/coreModules/platform/index.js:251:23)
#e# [hcup] [index] at emitTwo (events.js:126:13)
#e# [hcup] [index] at ChildProcess.emit (events.js:214:7)
#e# [hcup] [index] at maybeClose (internal/child_process.js:915:16)
#e# [hcup] [index] at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
#e# [hcup] [index] at Object.exports.exec (/root/.local/share/hcup/repo/lib/env.js:125:11)
#e# [hcup] [index] at <anonymous>
#e# [hcup] [index] at process._tickCallback (internal/process/next_tick.js:189:7)
#e# [hcup] [index] at Object.exports.exec (/root/.local/share/hcup/repo/lib/env.js:125:11)
#e# [hcup] [index] at <anonymous>
#e# [hcup] [index] at process._tickCallback (internal/process/next_tick.js:189:7)
#e# [hcup] [index] at Object.exports.exec (/root/.local/share/hcup/repo/lib/env.js:125:11)
#e# [hcup] [index] at <anonymous>
#e# [hcup] [index] at process._tickCallback (internal/process/next_tick.js:189:7)
ERROR: Service 'conductor' failed to build: The command '/bin/sh -c /root/.local/share/hcup/bin/hcup install holochain' returned a non-zero code: 1