-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
A valid repository for "/template" could not be found #2842
Comments
Hey @kaparwan, i think that this could be something to do with not being able to mount the folder inside the container. This seems to work on mac and ubuntu at least I'm wondering if it's something to with centos and permissions. Have you experienced any of this before? |
I'm seeing the same thing. I'm running in kubernetes, and it doesn't seem like this is designed to properly use kubernetes pods and volume mounts. Reading through the code it runs docker directly on the host, so the file paths don't match with what is in the pod trying to spin up the docker container. |
@andrewhertog yep - for the simple iteration of the scaffolder we didn't really consider k8s, but we've been making some great steps on the next version and what it could look like here: #2577 We will be taking more consideration to k8s in this version to help enable running these jobs in Feel free to add some usecases to that list if you feel theres something missing. Still interested to find out why this doesn't work exactly as planned though. Seems like a strange error as if |
@benjdlambert So I switched to running cookiecutter in the same pod as the backend service. It seems to be working better now, as i'm blocked further down the pipeline with a different error now. |
@andrewhertog Hi again! Shall we close this issue for now? You are more than welcome to ask followups on Discord or open separate issues for later errors, of course. |
@freben I'm not the original poster, I'd ask @kaparwan if you can close it. I've resolved the issue on my part, but I'm not sure if the solution would be a fix for @kaparwan My sugestion to them would be to use the backend docker image with kustomize installed in it to avoid the headache of running docker in docker or trying to manage other containers. |
Gonna close this - @kaparwan if this isn't fixed please re-open :) |
Adding this for anyone who finds this later: I worked around this in my docker-compose setup by mounting To be more explicit, I added this under
I further segmented it by setting |
While creating a new component "Create a new component α" using Available Templates
Create new software components using standard templates
Golang Microservice
It is not succeeding.
Component should get created.
Steps to Reproduce
Step 1 :
Use Available templets for component creation
Step 2
Choose Golang Microservice
Fill in template parameters and below were the details for review I clicked on - "Review and create"
Docker Image alpine-base-image:latest
Docker Build Image golang
Docker Build Image Version alpine
Use Logrus Logging y
Use Viper Config y
Use Cobra Cmd y
Use Ci github
Component Id goLangMS
Project Short Description goLangMS
Owner Guest
Store Path kaparwan/temp1
Context
I am trying to create new component - Golang repo
Failed to create component
{"status":"Digest: sha256:0e2891bebc903eeedf7293cf75e9faad7539874e9d4e5e37da91760e2c8fab60"}
{"status":"Status: Image is up to date for spotify/backstage-cookiecutter:latest"}
DEBUG cookiecutter.config: User config not found. Loading default config.
A valid repository for "/template" could not be found in the following locations:
/template
/template
Your Environment
I am using docker containers ( backend and frontend ) running in aws ec2 .
The text was updated successfully, but these errors were encountered: