haskell-vim-now icon indicating copy to clipboard operation
haskell-vim-now copied to clipboard

Docker build fails

Open ksmith97 opened this issue 8 years ago • 5 comments

I'm trying to build the docker image and I am receiving an error during the build.

Step 7/7 : RUN /bin/bash /install.sh
 ---> Running in e99ed83798e4
tput: No value for $TERM and no -T specified
ENV: [HVN_INSTALL_BASIC=]
--> No previous installations detected.
--- Installing Haskell-Vim-Now from https://github.com/begriffs/haskell-vim-now.git ...
Cloning into '/root/.config/haskell-vim-now'...
tput: No value for $TERM and no -T specified
--- Installing system packages [par libcurl4-openssl-dev] using [APT]...
--- Installing with apt-get...
/root/.config/haskell-vim-now/scripts/func.sh: line 96: sudo: command not found
*** Installer requires 'par'. Please install and try again.
*** Aborting...

ksmith97 avatar Jan 29 '17 21:01 ksmith97

It looks like the haskell image doesn't have sudo installed. I was able to continue the execution by running

apt-get install sudo

before running install.sh

ksmith97 avatar Jan 29 '17 21:01 ksmith97

Thanks for debugging. Care to send a pull request to update the Dockerfile?

begriffs avatar Jan 29 '17 21:01 begriffs

Sure! I am actually just running a final test now. I'm not entirely certain that adding sudo is the best way to fix it but it seems to have gotten me past the initial hurdle and I am not entirely certain what script is written with the sudo command.

ksmith97 avatar Jan 29 '17 21:01 ksmith97

I feel dumb I realized the line number in error is in the error message. I guess installing sudo is appropriate here that way the scripts are still valid when run outside the container.

ksmith97 avatar Jan 29 '17 21:01 ksmith97

Created https://github.com/begriffs/haskell-vim-now/pull/227 to resolve this issue.

ksmith97 avatar Jan 30 '17 00:01 ksmith97