Stuck in cloning template when vapor new a project in a Linux Docker container
Opened this issue · 4 comments
Describe the issue
I try to create a new Vapor project in a Linux Docker container, but stuck in cloning template
Vapor version
I think it should be a newest version, I can't new a project, so I can't find the package file.
Operating system and version
Ubuntu 22.04.4 LTS
Swift version
swift 5.10
Steps to reproduce
Outcome
No response
Additional notes
No response
Is this still happening? Does cloning https://github.com/vapor/template manually work for you?
I'm unable to reproduce
Hi Tim,
Thanks for your reply, I am a beginner, and sorry to take your time.
-
I can git clone a template, but vapor --template has same issue.
I found out that I don't need to use the command vapor new to create a project, I can manually modify the template to my project.
But I still feel weird, worry something will go wrong when I don't follow the official tutorial. -
I use this image as my container
https://github.com/apple/swift-docker/blob/ea035798755cce4ec41e0c6dbdd320904cef0421/5.10/ubuntu/22.04/Dockerfile
is there something with the container?
Oh right I missed that you're running inside a Docker container. Yeah it could be because it's missing curl or another package, though it is just using git clone
under the hood. I would say that it's not particularly designed for running in containers, it's more designed for where you do development.
I can reproduce this though, haven't tried to debug it
Thanks Tim,
To provide more information for you, I tried last year when I know Vapor, 'vapor new' works in Linux Container, I thought it's my fault and tried a lot of times.
I also tried use Dev Container Extension of VScode to add a swift container with Vapor, but it also failed and stuck in the process of installing vapor.
Hope it helps and thanks for all of your hardwork.