Closed bignay2000 closed 1 month ago
Can you let me know a version that does a docker build successfully
I had this problem earlier, but it seems to be fixed in the main branch.
$ cat .git/HEAD
ref: refs/heads/main
$ docker build . -t ms_sbom_tool
[+] Building 194.2s (15/15) FINISHED docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 659B 0.0s
=> [internal] load metadata for mcr.microsoft.com/dotnet/runtime-deps:6.0.8-bullseye-slim-amd64 0.6s
=> [internal] load metadata for mcr.microsoft.com/dotnet/sdk:latest 0.5s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load build context 0.1s
=> => transferring context: 4.40MB 0.1s
=> CACHED [build-env 1/4] FROM mcr.microsoft.com/dotnet/sdk:latest@sha256:ff705b99a06144190e2638f8ede64a753915df5ea27fff55 0.0s
=> [stage-1 1/5] FROM mcr.microsoft.com/dotnet/runtime-deps:6.0.8-bullseye-slim-amd64@sha256:e3c2fd4ca373facb6b0e79630a9f3 0.0s
=> CACHED [stage-1 2/5] WORKDIR /app/src/Microsoft.Sbom.Tool 0.0s
=> [build-env 2/4] COPY . /app 0.1s
=> [build-env 3/4] WORKDIR /app/src/Microsoft.Sbom.Tool 0.0s
=> [build-env 4/4] RUN dotnet publish -f net8.0 -r linux-x64 --self-contained true -p:DebugType=None -p:DebugSymbols=fals 55.0s
=> [stage-1 3/5] COPY --from=build-env /app/src/Microsoft.Sbom.Tool/output . 0.1s
=> [stage-1 4/5] RUN apt update -y && apt install -y python golang nuget npm cargo ruby maven 130.2s
=> [stage-1 5/5] RUN useradd -ms /bin/bash sbom 0.1s
=> exporting to image 7.6s
=> => exporting layers 7.6s
=> => writing image sha256:01e93426e0f72431f056283ab6d6f2451f032931c638ca59f825c953849fde7b 0.0s
=> => naming to docker.io/library/ms_sbom_tool
Deleted my checkout of this repo and did a clean git clone.
I was successful in building the container from the latest master.
So hopefully we can get a new minor minor release v.2.2.9.1 that contains this fix from the master branch.
@bignay2000, we aren't planning on more 2.x releases, but this is fixed in the 3.0.1 release.
Any plans to put the docker image release hosted on hub.docker.com?
Unable to docker build v.2.2.9 or v.2.2.8.