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

Link broken in help #39

Open
sindhubb opened this issue Dec 21, 2022 · 2 comments
Open

Link broken in help #39

sindhubb opened this issue Dec 21, 2022 · 2 comments

Comments

@sindhubb
Copy link

Hi, I tried to do a launchpad up without a Dockerfile and saw:

(base) ➜  advent_of_code git:(master) launchpad up


We have updated your project's launchpad.yaml. Please commit that to your repository.
# Building project advent-of-code
# Step 1/3 Building Docker image...

Error: Dockerfile missing.
- Please add a Dockerfile manually under your app directory.
- You can find an example Dockerfile at https://github.com/jetpack-io/project-templates/blob/main/api/Dockerfile.
- Alternatively, to use a pre-existing image, you can add an Image: field to your service in launchpad.yaml or jetconfig.yaml.

Caused by:

 failed to tail logs: Error building image: Error building: failed to validate build plan: Dockerfile missing.
- Please add a Dockerfile manually under your app directory.
- You can find an example Dockerfile at https://github.com/jetpack-io/project-templates/blob/main/api/Dockerfile.
- Alternatively, to use a pre-existing image, you can add an Image: field to your service in launchpad.yaml or jetconfig.yaml.

Run with --debug for more information

However the link https://github.com/jetpack-io/project-templates/ does not exist

@mohsenari
Copy link
Contributor

@sindhubb thanks for pointing this out. The URL and the file do exist but they are in a private repo. I'll ask the team to either make the repo public or create an alternative URL. Meanwhile, I can put the content of the Dockerfile that launchpad is referring to.

@mohsenari
Copy link
Contributor

FROM amd64/python:3.9.7-slim 
  
 WORKDIR /app 
  
 # Uncomment the line below and to add your apt-get packages 
 # RUN apt-get update && apt-get install -y openssh-client git 
  
 COPY requirements.txt /app 
  
 RUN pip install --no-cache-dir --upgrade -r requirements.txt 
  
 # These lines ensure that the latest version of the Jetpack SDK is installed 
 # without reinstalling your other dependencies 
 ADD https://releases.jetpack.io/sdk/python/version.txt ./jetpack-python-sdk-version.txt 
 RUN pip install jetpack-io -U 
  
 COPY ./app /app 
  
 CMD ["uvicorn""main:app""--host""0.0.0.0""--port""8080"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants