recordexpungPDX icon indicating copy to clipboard operation
recordexpungPDX copied to clipboard

Makefile, Docker Compose, eslint

Open m-c-g opened this issue 1 year ago • 5 comments

Hi, I'm Mark. I went to the last Code for PDX meeting.

This project seemed interesting so I forked it and started looking into it. I'm using a VMware instance of Ubuntu on a Mac for development.

I installed Docker and Docker Config but ran into errors in the Makefile when I ran make new.

Recent versions of Docker no longer treat docker-compose as an external program, it is now called as a command within Docker. As of the end of June 2023 the old syntax will no longer be supported.

From the documentation:

Important

The new Compose V2, which supports the compose command as part of the Docker CLI, is now available.

Compose V2 integrates compose functions into the Docker platform, continuing to support most of the previous docker-compose features and flags. You can run Compose V2 by replacing the hyphen (-) with a space, using docker compose, instead of docker-compose.

Changing all instances of docker-compose to docker compose in the Makefile fixed the problem I was having with make new.

On opening localhost:3000 the site came up but with an overlay with the following:

Compiled with problems:

ERROR

[eslint] EACCES: permission denied, mkdir '/src/frontend/node_modules/.cache'

On closing the overlay the site appeared to be working without any obvious problems.

I'm pretty new to all of this, I'm still very much in the learning stages with Docker and git/github. If I'm missing something or doing something wrong please let me know. --Mark

m-c-g avatar Mar 29 '23 21:03 m-c-g