launchpad icon indicating copy to clipboard operation
launchpad copied to clipboard

Link broken in help

Open sindhubb opened this issue 2 years ago • 2 comments

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

sindhubb avatar Dec 21 '22 06:12 sindhubb

@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 avatar Dec 24 '22 07:12 mohsenari


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"]

mohsenari avatar Dec 24 '22 07:12 mohsenari