-
Notifications
You must be signed in to change notification settings - Fork 96
curl + ssl problems #696
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks @hasufell, this is promising, but it looks like ghcup itself is using curl and I can't find a way of passing that "-k" there. I already have ghcup downloaded having instructed my dockerfile's curl command to use "-k" to download ghcup if that makes sense. Is there a way to provide that "-k" to an already installed ghcup? |
I visited main ghcup page and tried simply using the recommend installation command in my dockerfile:
but it's failing on (I think) a similar problem with ghcup's built in curl:
|
|
Yes! I added that last night and was just about to update the issue and saw your comment. Here's my devcontainer dockerfile today:
|
So does it work? |
Sorry @hasufell tight schedule at work, had to drop my comment half way through writing it. Yes, it does work, and I’m happy with it, but… the whole reason for starting this issue is that the dev container’s dockerfile I linked to in my first comment allows users to specify versions of e.g. ghc, cabal, etc. during the installation while what I have now just installs everything in the latest version. If I have a moment tonight, I’ll show you how the original dockerfile looks like. |
I want to basically fix the official ms vs code devcontainer by allowing to select specific versions of whatever ghcup can install by fixing the curl problems. |
OK, it is not working, I am not sure what I did that gave me the impression of ghcup working fine. The community Haskell devcontainer for vscode uses a version of Debian which ghcup is not out of the box compatible with. Below is my dockerfile for the devcontainer. Not installing anything through ghcup yet in the actual dockerfile, running the ghcup commands while connected to the container built from that dockerfile, troubleshooting step by step. For now, when ghcup tries to install ghc, gmake complains that it cannot determine build type:
Dockerfile:
I think I can figure this out, it will just take a while. |
I am aware of this url: https://www.haskell.org/ghcup/install/#linux-debian and some packages for Debian are not supported anymore. One example: at the time of writing this, the base devcontainer image is |
OK, after updating my dockerfile and adding all packages outlined as required here: https://www.haskell.org/ghcup/install/#linux-debian RUN apt-get update \
&& export DEBIAN_FRONTEND=noninteractive \
&& /bin/bash /tmp/library-scripts/common-debian.sh "${INSTALL_ZSH}" "${USERNAME}" "${USER_UID}" "${USER_GID}" "${UPGRADE_PACKAGES}" "true" "true"\
&& rm -rf /tmp/library-scripts \
&& apt-get install -y --no-install-recommends \
build-essential \
dpkg-dev \
gcc \
libc6-dev \
libffi-dev \
libffi7 \
libgmp-dev \
libgmp10 \
libncurses-dev \
libncurses5 \
libnuma-dev \
libtinfo-dev \
libtinfo5 \
zlib1g-dev \
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* I am getting the following error:
This is my only blocker for now and I will focus on it. |
OK, this is where I'm parking this for today. Dockerfile:
creates the container no problems with ghcup installed, but ghcup gives me the following output trying to install ghc:
|
Just a quick comment from phone: tempted to close this issue (as it’s no longer about curl and ssl) and to open a new one. I am not sure what the problem actually is, though… |
I'm trying to use this tool in a devcontainer, but facing the following issue: microsoft/vscode-dev-containers#1692 Looks like I could be missing a setting where ghcup's curl command is instructed to ignore the certificate? Is my understanding correct?
The text was updated successfully, but these errors were encountered: