Skip to content

Current Dockerfile produces incomplete image  #5970

Closed

Description

@brianredbeard

The current Dockerfile can't be used to build the existing docs due to the lack of any CA certificates (due to the FROM scratch changes in 8531ec7):

$ docker run -t -v /tmp/hugo/docs:/site ad1eac37fc362fc7cfc335f9309500d5bddd6295 version
Hugo Static Site Generator v0.56.0-DEV linux/amd64 BuildDate: unknown
$ docker run -t -v /tmp/hugo/docs:/site ad1eac37fc362fc7cfc335f9309500d5bddd6295 serve
Building sites … ERROR 2019/05/18 05:29:52 Failed to get JSON resource "https://api.twitter.com/1/statuses/oembed.json?id=962380712027590657&dnt=false": Get https://api.twitter.com/1/statuses/oembed.json?id=962380712027590657&dnt=false: x509: certificate signed by unknown authority
ERROR 2019/05/18 05:29:52 Failed to get JSON resource "https://api.twitter.com/1/statuses/oembed.json?id=898398437527363585&dnt=false": Get https://api.twitter.com/1/statuses/oembed.json?id=898398437527363585&dnt=false: x509: certificate signed by unknown authority
ERROR 2019/05/18 05:29:52 Failed to get JSON resource "https://api.instagram.com/oembed/?url=https://instagram.com/p/BWNjjyYFxVx/&hidecaption=1": Get https://api.instagram.com/oembed/?url=https://instagram.com/p/BWNjjyYFxVx/&hidecaption=1: x509: certificate signed by unknown authority
ERROR 2019/05/18 05:29:52 Failed to get JSON resource "https://api.twitter.com/1/statuses/oembed.json?id=971755920639307777&dnt=false": Get https://api.twitter.com/1/statuses/oembed.json?id=971755920639307777&dnt=false: x509: certificate signed by unknown authority
ERROR 2019/05/18 05:29:52 Failed to get JSON resource "https://api.instagram.com/oembed/?url=https://instagram.com/p/BWNjjyYFxVx/&hidecaption=1": Get https://api.instagram.com/oembed/?url=https://instagram.com/p/BWNjjyYFxVx/&hidecaption=1: x509: certificate signed by unknown authority
ERROR 2019/05/18 05:29:53 Failed to get JSON resource "https://api.twitter.com/1/statuses/oembed.json?id=877500564405444608&dnt=false": Get https://api.twitter.com/1/statuses/oembed.json?id=877500564405444608&dnt=false: x509: certificate signed by unknown authority
ERROR 2019/05/18 05:29:53 Failed to get JSON resource "https://api.twitter.com/1/statuses/oembed.json?id=877500564405444608&dnt=false": Get https://api.twitter.com/1/statuses/oembed.json?id=877500564405444608&dnt=false: x509: certificate signed by unknown authority
ERROR 2019/05/18 05:29:53 Failed to get JSON resource "https://api.twitter.com/1/statuses/oembed.json?id=898398437527363585&dnt=false": Get https://api.twitter.com/1/statuses/oembed.json?id=898398437527363585&dnt=false: x509: certificate signed by unknown authority
ERROR 2019/05/18 05:29:53 Failed to get JSON resource "https://api.twitter.com/1/statuses/oembed.json?id=962380712027590657&dnt=false": Get https://api.twitter.com/1/statuses/oembed.json?id=962380712027590657&dnt=false: x509: certificate signed by unknown authority
ERROR 2019/05/18 05:29:53 Failed to get JSON resource "https://api.twitter.com/1/statuses/oembed.json?id=971755920639307777&dnt=false": Get https://api.twitter.com/1/statuses/oembed.json?id=971755920639307777&dnt=false: x509: certificate signed by unknown authority
ERROR 2019/05/18 05:29:53 Failed to get JSON resource "https://api.instagram.com/oembed/?url=https://instagram.com/p/BWNjjyYFxVx/&hidecaption=1": Get https://api.instagram.com/oembed/?url=https://instagram.com/p/BWNjjyYFxVx/&hidecaption=1: x509: certificate signed by unknown authority
ERROR 2019/05/18 05:29:53 Failed to get JSON resource "https://api.instagram.com/oembed/?url=https://instagram.com/p/BWNjjyYFxVx/&hidecaption=1": Get https://api.instagram.com/oembed/?url=https://instagram.com/p/BWNjjyYFxVx/&hidecaption=1: x509: certificate signed by unknown authority
ERROR 2019/05/18 05:29:53 Failed to get JSON resource "https://api.twitter.com/1/statuses/oembed.json?id=877500564405444608&dnt=false": Get https://api.twitter.com/1/statuses/oembed.json?id=877500564405444608&dnt=false: x509: certificate signed by unknown authority
ERROR 2019/05/18 05:29:53 Failed to get JSON resource "https://api.twitter.com/1/statuses/oembed.json?id=877500564405444608&dnt=false": Get https://api.twitter.com/1/statuses/oembed.json?id=877500564405444608&dnt=false: x509: certificate signed by unknown authority
Total in 1762 ms
Error: Error building site: logged 14 error(s)

Relates to #5056

Activity

  1. added a commit that references this issue on May 18, 2019
    cade86f
  2. added this to the v0.56 milestone on May 18, 2019
  3. added a commit that references this issue on May 23, 2019
    4197430
  4. github-actions commented on Feb 18, 2022

    @github-actions

    This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  5. locked as resolved and limited conversation to collaborators on Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions