For a school assignment I have to use gitpod and I have to use "gitpod/workspace-node" as base image. Then after that I have to run docker-compse up on startup.
This is my .gitpod.yml
image:
file: .gitpod.Dockerfile
tasks:
- name: Docker compose
command: docker-compose up -d
ports:
- port: 80
onOpen: open-browser
- port: 3306
onOpen: ignore
vscode:
extensions:
- "dbaeumer.vscode-eslint"
- "ms-azuretools.vscode-docker"
and this is my .gitpod.Dockerfile
FROM gitpod/workspace-node
WORKDIR /usr/src/app
COPY package*.json ./
COPY . .
When I start up the workspace nothing happens it doesn't even pull the image. I seriously don't know what I'm doing wrong. I know for a fact that the docker-compose up works as expected so there's no issues there. I just can't get the .gitpod.yml to run
CodePudding user response:
Nvm I solved it. I just had to make a new workspace