vunnel icon indicating copy to clipboard operation
vunnel copied to clipboard

Initial docker compose to build a vunnel-dev.

Open ag4ve opened this issue 1 year ago • 0 comments

Isn't complete yet, but sets up a working system if the last RUN is removed. I'm not sure why the combination of docker, makefile, dev-shell.sh don't play nice together yet.

The UID/GID default to 1000 so that you can mount a volume and probably still work (which was the way I was initially building this). I'm unsure if a full repo of grype/grype-db are needed, so I'm cloning them normally vs using ADD.

I'm on slack anyone wants to talk about this.

docker compose --progress plain build --build-arg PROVIDER=nvd

#14 0.507 .github/scripts/dev-shell.sh: 1: set: Illegal option -o pipefail
#14 0.507 make: *** [Makefile:81: dev] Error 2
#14 ERROR: process "/bin/bash -c cd ${WORKDIR}   && make dev provider=\"${PROVIDER}\"" did not complete successfully: exit code: 2
------                                             
 > [vunnel-dev t1 10/11] RUN --mount=type=cache,target=/home/user/.cache/go-build,uid=1000,gid=1000  --mount=type=cache,target=/home/user/.cache/pip,uid=1000,gid=1000   cd /work/vunnel   && make dev provider="nvd":
0.507 .github/scripts/dev-shell.sh: 1: set: Illegal option -o pipefail    
0.507 make: *** [Makefile:81: dev] Error 2
------                            
failed to solve: process "/bin/bash -c cd ${WORKDIR}   && make dev provider=\"${PROVIDER}\"" did not complete successfully: exit code: 2```

ag4ve avatar Jan 31 '24 23:01 ag4ve