Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial docker compose to build a vunnel-dev. #473

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ag4ve
Copy link

@ag4ve ag4ve commented Jan 31, 2024

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```

…h for file changes to compose. Get make to use bash to execute dev-shell.sh so that pipefail works.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant