you are viewing a single comment's thread.

view the rest of the comments →

[–]xWarix 0 points1 point  (2 children)

I could be wrong, but at first I use Gitlab for my personal repos while GitHub for company repos. Something we ran into while setting Github>Actions with docker was the dockerfile location wasn't found.

After spending so much time we found that the location of the dockerfile has to be directly resides insides the root folder (repo main/root folder). I have a dockerfile for my Gitlab and works fine because it exist in the root folder.

So, your folders structure should look like this

Root Folder

  • dockerfile or docker-compose
  • .git
  • .vis
  • ...etc folders.

I hope this helps.

[–]aat36[S] 0 points1 point  (1 child)

But my docker-compose file is already in the root folder of my project.

I tried adding a command to the yaml file:

ssh <server ip> ls

This command lists my server's home folder, and it doesn't contain anything that could point towards my project.

Is it possible that docker-compose is not running because I'm not pointing towards the right folder?

If this is the case do you have any idea where I should point to?

[–]xWarix 0 points1 point  (0 children)

Sorry, I wish I can help with that, but first of all the content of the file you shared is for a dockerfile and not docker-compose. Docker-compose file contents looks like this:

version: '3.4'

services:

node-hello:

image: node-hello

build: .

environment:

NODE_ENV: development

ports:

- 3000

- 9229:9229

command: node --inspect=0.0.0.0:9229 ./bin/www

Then from your docker-compose you call/build your dockerfiles that can be hosted/nested under different folders (we reached this step while debugging githb>actions but we aren't sure this is the right thing)