wkhtmltopdf / packaging

Packaging of wkhtmltopdf releases
https://wkhtmltopdf.org/downloads.html#stable
311 stars 142 forks source link

Pull access denied for wkhtmltopdf_image #72

Closed rafaeldev closed 4 years ago

rafaeldev commented 4 years ago

Hi everyone! First, thanks for yours support.

I'm trying use image from madnight/alpine-wkhtmltopdf-builder:0.12.5-alpine3.10 but I can't. When I run build from my docker compose I have the below error message:

Step 12/13 : COPY --from=wkhtmltopdf_image /bin/wkhtmltopdf /bin/
invalid from flag value wkhtmltopdf_image: pull access denied for wkhtmltopdf_image, 
repository does not exist or may require 'docker login': denied: requested access to the 
resource is denied

That is my complete Dockerfile:

FROM ruby:2.5-alpine

ENV BUNDLER_VERSION=2.0.2

RUN apk upgrade \
  && apk add --virtual --update --no-cache \
    binutils-gold \
    build-base \
    curl \
    file \
    g++ \
    gcc \
    git \
    less \
    libstdc++ \
    libffi-dev \
    libc-dev \
    linux-headers \
    libxml2-dev \
    libxslt-dev \
    libgcrypt-dev \
    make \
    netcat-openbsd \
    openssl \
    pkgconfig \
    mysql \
    mysql-client \
    mysql-dev \
    tzdata \
    nodejs \
    yarn \
    imagemagick \
  && rm -f /var/cache/apk/*

RUN gem install bundler -v 2.0.2

WORKDIR /app

COPY Gemfile* /app/

RUN bundle config build.nokogiri --use-system-libraries

RUN bundle check || bundle install

# COPY package.json yarn.lock ./

# RUN yarn install --check-files

COPY . ./

FROM madnight/alpine-wkhtmltopdf-builder:0.12.5-alpine3.10 as wkhtmltopdf_image

RUN apk add --update --no-cache \
  openssl-dev \
  qt5-qtbase-dev \
  ttf-dejavu \
  ttf-droid \
  ttf-freefont \
  ttf-liberation \
  ttf-ubuntu-font-family

COPY --from=wkhtmltopdf_image /bin/wkhtmltopdf /bin/

ENTRYPOINT ["./entrypoints/docker-entrypoint.sh"]

I try do the login on dockerhub and error persists. Thanks!

rafaeldev commented 4 years ago

Other test: I try build imagem using latest image. No success too but the error message is other:

ERROR: Service 'web' failed to build: manifest for madnight/alpine-wkhtmltopdf-builder:latest 
not found: manifest unknown: manifest unknown
rafaeldev commented 4 years ago

Well, it,'s my fault...

I change my Dockerfile to do COPY from image in the same line: COPY --from=madnight/alpine-wkhtmltopdf-builder:0.12.5-alpine3.10 /bin/wkhtmltopdf /bin/wkhtmltopdf