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

Unable to save bom on filesystem #171

Open
rvsoni opened this issue May 25, 2022 · 0 comments
Open

Unable to save bom on filesystem #171

rvsoni opened this issue May 25, 2022 · 0 comments

Comments

@rvsoni
Copy link

rvsoni commented May 25, 2022

Start server using script build-and-run.sh (main branch)

on calling the sample Curl POST example, it does not save BOM into the filesystem

show warning,

warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3]
Failed to determine the https port for redirect.

logs
Sending build context to Docker daemon 664.1kB
Step 1/17 : FROM mcr.microsoft.com/dotnet/sdk:6.0 AS builder
---> d3863aa157b5
Step 2/17 : ARG APP_VERSION=0.0.0
---> Using cache
---> 5f06313c8724
Step 3/17 : COPY . /app
---> Using cache
---> 1597d1aed1a8
Step 4/17 : RUN cd /app && mkdir /app/bin && dotnet publish src/CycloneDX.BomRepoServer/CycloneDX.BomRepoServer.csproj --nologo --configuration Release --output bin --no-self-contained -p:Version=${APP_VERSION}
---> Using cache
---> c2b90f7e9b81
Step 5/17 : FROM mcr.microsoft.com/dotnet/aspnet:6.0
---> 70f39e2150e1
Step 6/17 : ENV TZ=Etc/UTC LANG=C.UTF-8 REPO__DIRECTORY=/repo ASPNETCORE_URLS=http://+:8080
---> Using cache
---> 94001d3d93ed
Step 7/17 : ARG APP_VERSION=0.0.0
---> Using cache
---> 05f395defeb9
Step 8/17 : ARG COMMIT_SHA=unknowen
---> Using cache
---> dc8d50c8b74a
Step 9/17 : ARG UID=1001
---> Using cache
---> cb66b8c21562
Step 10/17 : ARG GID=1001
---> Using cache
---> fcee95ea80f6
Step 11/17 : COPY --from=builder /app/bin /cyclonedx
---> Using cache
---> 50dfcc17c953
Step 12/17 : RUN mkdir -p -m 770 ${REPO__DIRECTORY} && addgroup --system --gid ${GID} cyclonedx || true && adduser --system --disabled-login --ingroup cyclonedx --no-create-home --home /nonexistent --gecos "cyclonedx user" --shell /bin/false --uid ${UID} cyclonedx || true && chown -R cyclonedx:0 ${REPO__DIRECTORY} /cyclonedx && chmod -R g=u ${REPO__DIRECTORY} /cyclonedx
---> Using cache
---> 639d843b9fca
Step 13/17 : USER ${UID}
---> Using cache
---> 6d745f2c0ac9
Step 14/17 : WORKDIR /cyclonedx
---> Using cache
---> 21540b8da67c
Step 15/17 : ENTRYPOINT [ "/cyclonedx/CycloneDX.BomRepoServer" ]
---> Using cache
---> c374b9c053c2
Step 16/17 : EXPOSE 8080
---> Using cache
---> 3a225d11f558
Step 17/17 : LABEL org.opencontainers.image.vendor="CycloneDX" org.opencontainers.image.title="Official CycloneDX BOM Repository Server Container image" org.opencontainers.image.description="CycloneDX BOM Repository Server is a BOM repository server for distributing CycloneDX BOMs" org.opencontainers.image.version="${APP_VERSION}" org.opencontainers.image.url="https://cyclonedx.org/" org.opencontainers.image.source="https://github.com/CycloneDX/cyclonedx-bom-repo-server" org.opencontainers.image.revision="${COMMIT_SHA}" org.opencontainers.image.licenses="Apache-2.0"
---> Using cache
---> 38e5b00739b0
Successfully built 38e5b00739b0
Successfully tagged localhost/cyclonedx-bom-repo-server:latest
info: CycloneDX.BomRepoServer.Services.CacheUpdateBackgroundService[0]
Updating BOM cache...
info: CycloneDX.BomRepoServer.Services.RetentionBackgroundService[0]
Updating BOM cache...
info: Microsoft.Hosting.Lifetime[14]
Now listening on: http://[::]:8080
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
Content root path: /cyclonedx
warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3]
Failed to determine the https port for redirect.
info: CycloneDX.BomRepoServer.Services.CacheUpdateBackgroundService[0]
Updating BOM cache...

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

No branches or pull requests

1 participant