Skip to content

Instantly share code, notes, and snippets.

@zoobab
Created January 4, 2019 17:05
Show Gist options
  • Save zoobab/4ce1220f5691a797c0df3f414faa9c90 to your computer and use it in GitHub Desktop.
Save zoobab/4ce1220f5691a797c0df3f414faa9c90 to your computer and use it in GitHub Desktop.
hsbxl site docker
$ cat Dockerfile
FROM rprakashg/hugo-docker
RUN mkdir -p /var/www/blog
COPY . /var/www/blog
WORKDIR /var/www/blog
RUN hugo
$ docker build .
Sending build context to Docker daemon 110.5MB
Step 1/5 : FROM rprakashg/hugo-docker
---> 9a398163e485
Step 2/5 : RUN mkdir -p /var/www/blog
---> Using cache
---> 871c568c8208
Step 3/5 : COPY . /var/www/blog
---> Using cache
---> aab3a5e74bac
Step 4/5 : WORKDIR /var/www/blog
---> Using cache
---> 4e54cce90d9d
Step 5/5 : RUN hugo
---> Running in 411569163d87
ERROR 2019/01/04 17:02:33 Failed to add template "theme/shortcodes/books_expenses.html" in path "/var/www/blog/themes/code-editor/layouts/shortcodes/books_expenses.html": template: theme/shortcodes/books_expenses.html:8: function "newScratch" not defined
ERROR 2019/01/04 17:02:33 Failed to add template "theme/shortcodes/books_income.html" in path "/var/www/blog/themes/code-editor/layouts/shortcodes/books_income.html": template: theme/shortcodes/books_income.html:8: function "newScratch" not defined
ERROR 2019/01/04 17:02:33 theme/shortcodes/books_expenses.html : template: theme/shortcodes/books_expenses.html:8: function "newScratch" not defined
ERROR 2019/01/04 17:02:33 theme/shortcodes/books_income.html : template: theme/shortcodes/books_income.html:8: function "newScratch" not defined
Started building sites ...
ERROR 2019/01/04 17:02:33 Unable to locate template for shortcode "books_income" in page "books/index.md"
ERROR 2019/01/04 17:02:33 error processing shortcode "theme/shortcodes/gallery" for page "events/techtuesday/500/index.md": template: theme/shortcodes/gallery.html:6:27: executing "theme/shortcodes/gallery" at <.Page.Resources.ByTy...>: can't evaluate field Resources in type *hugolib.Page
ERROR 2019/01/04 17:02:33 error processing shortcode "theme/shortcodes/gallery" for page "projects/aquaponics/index.md": template: theme/shortcodes/gallery.html:6:27: executing "theme/shortcodes/gallery" at <.Page.Resources.ByTy...>: can't evaluate field Resources in type *hugolib.Page
ERROR 2019/01/04 17:02:33 error processing shortcode "theme/shortcodes/gallery" for page "events/congress_everywhere/_index.md": template: theme/shortcodes/gallery.html:6:27: executing "theme/shortcodes/gallery" at <.Page.Resources.ByTy...>: can't evaluate field Resources in type *hugolib.Page
ERROR 2019/01/04 17:02:33 error processing shortcode "theme/shortcodes/gallery" for page "projects/citygate/_index.md": template: theme/shortcodes/gallery.html:6:27: executing "theme/shortcodes/gallery" at <.Page.Resources.ByTy...>: can't evaluate field Resources in type *hugolib.Page
ERROR 2019/01/04 17:02:33 Error while rendering "404": template: theme/404.html:4:3: executing "theme/404.html" at <partial "bottom.html...>: error calling partial: template: theme/partials/bottom.html:3:17: executing "theme/partials/bottom.html" at <.Resources>: can't evaluate field Resources in type *hugolib.PageOutput
The command '/bin/sh -c hugo' returned a non-zero code: 255
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment