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

Site building guide for docker results in an error #5331

Closed
typeid opened this issue Sep 17, 2023 · 5 comments · Fixed by #5512
Closed

Site building guide for docker results in an error #5331

typeid opened this issue Sep 17, 2023 · 5 comments · Fixed by #5512
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. kind/documentation Categorizes issue or PR as related to documentation. triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@typeid
Copy link
Contributor

typeid commented Sep 17, 2023

What happened?

When following instructions to run the site locally using docker compose, I run in the following error:

docker-compose up
Starting site_site_1 ... done
Attaching to site_site_1
site_1  | Start building sites … 
site_1  | hugo v0.111.3-5d4eb5154e1fed125ca8e9b5a0315c4180dab192+extended linux/amd64 BuildDate=2023-03-12T11:40:50Z VendorInfo=hugoguru
site_1  | ERROR 2023/09/17 05:59:21 Failed to read Git log: fatal: not a git repository (or any parent up to mount point /)
site_1  | Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
site_1  | Built in 6 ms
site_1  | Error: Error building site: "/src/content/en/_index.html:7:1": failed to extract shortcode: template for shortcode "blocks/cover" not found
site_site_1 exited with code 255

It seems like a step to initialize and update submodules for docsy is missing in the steps.

What did you expect to happen?

Steps to follow don't result in an error.

How can we reproduce it (as minimally and precisely as possible)?

# In a fresh clone of the kustomize repository:
$ docker-compose build
$ docker-compose up -d

Expected output

Site is exposed on localhost:1313

Actual output

site_site_1 exited with code 255

Kustomize version

latest

Operating system

None

@typeid typeid added the kind/bug Categorizes issue or PR as related to a bug. label Sep 17, 2023
@k8s-ci-robot k8s-ci-robot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Sep 17, 2023
@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

SIG CLI takes a lead on issue triage for this repo, but any Kubernetes member can accept issues by applying the triage/accepted label.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@DiptoChakrabarty
Copy link
Member

can confirm noticed this issue

/kind documentation

@k8s-ci-robot k8s-ci-robot added the kind/documentation Categorizes issue or PR as related to documentation. label Oct 16, 2023
@natasha41575
Copy link
Contributor

natasha41575 commented Jan 17, 2024

After speaking with the docs team, turns out they have not been able to get the docker-compose instructions to work and ended up just installing hugo on their local machine and building the site that way. They have been alternatively been installing hugo locally and building the site there. Another alternative is to look into what the kubernetes website does and follow that example.

@ncapps and @stormqueen1990 Can you follow up here to recommend a solution here? (@typeid you can also ping them on Slack for help with contributing to kustomize or the docs project)

/assign @ncapps
/assign @stormqueen1990

/triage accepted

@k8s-ci-robot
Copy link
Contributor

@natasha41575: The label(s) triage/accept cannot be applied, because the repository doesn't have them.

In response to this:

After speaking with the docs team, turns out they have not been able to get the docker-compose instructions to work and ended up just installing hugo on their local machine and building the site that way. They have been alternatively been installing hugo locally and building the site there. Another alternative is to look into what the kubernetes website does and follow that example.

@ncapps and @stormqueen1990 Can you follow up here to recommend a solution here? (@typeid you can also ping them on Slack for help with contributing to kustomize or the docs project)

/assign @ncapps
/assign @stormqueen1990

/triage accept

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@natasha41575 natasha41575 added triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Jan 17, 2024
@stormqueen1990
Copy link
Member

k/website offers Makefile targets and a Dockerfile that can be used to build the website locally and run in a container. We could apply a similar approach for the Kustomize documentation.

Refs:

cc @ncapps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. kind/documentation Categorizes issue or PR as related to documentation. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants