Skip to content
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

Initial package list is missing curl, and other things #2

Open
martindholmes opened this issue Oct 1, 2020 · 0 comments
Open

Initial package list is missing curl, and other things #2

martindholmes opened this issue Oct 1, 2020 · 0 comments

Comments

@martindholmes
Copy link

To get the docker container to build, I had to add curl and libnet-ssleay-perl to the list of packages in the Dockerfile, and also cpanm IO::Socket::SSL to the second RUN block. This is what eventually worked:

FROM ubuntu

MAINTAINER Sergiy Tupchiy <[email protected]>

# Install dependencies required for link-checker distribution installation
RUN apt-get update && apt-get install -y \
      cpanminus \
      make \
      build-essential \
      libssl-dev \
      curl \
      libnet-ssleay-perl \
  && rm -rf /var/lib/apt/lists/*

ENV CHECKLINK_VERSION 4_81

ARG CHECKLINK_URL=https://github.com/w3c/link-checker/archive/checklink-${CHECKLINK_VERSION}.tar.gz

RUN set -x \
  && curl -sSL ${CHECKLINK_URL} -o /tmp/link-checker.tar.gz \
  && mkdir -p /usr/src \
  && tar -xzf /tmp/link-checker.tar.gz -C /usr/src \
  && rm /tmp/link-checker.tar.gz \
  && cd /usr/src/link-checker-checklink-${CHECKLINK_VERSION} \
  && cpanm --installdeps . \
  && cpanm IO::Socket::SSL \
  && cpanm LWP::Protocol::https \
  && perl Makefile.PL \
  && make \
  && make test \
  && make install \
  && rm -rf /usr/src/link-checker-checklink-${CHECKLINK_VERSION}

ENTRYPOINT ["/usr/local/bin/checklink"]
CMD ["-h"]

This is running on an Ubuntu 20.04 host, with Docker version 19.03.6, build 369ce74a3c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant