Starts in:
0 DAY
15 HRS
50 MIN
54 SEC
Starts in:
0 D
15 H
50 M
54 S
Open Closed

containerizing abp application #1471


User avatar
0
Neozzz created

I added docker support to a abp application through visual studio. I am having issues setting the environement variable to production as shown below.

When I try to run the application from visual studio by clicking on docker compose button I hit error at ConfigureVirtualFileSystem in HttpApiHostModule.cs.

I have changed the value from development to production in the powershell $env, in the appsettings and launchsettings of the httpapi.host project, changed values in the docker-compose.debug file.

Am I missing some reference?

Also I am trying to enable https but more on that later.

Please help. Thank you


35 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Can you share the full error stack?

  • User Avatar
    0
    Neozzz created

    Please find the full error log in this link.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    It seems the app doesn't have permission to access the PFX file.

  • User Avatar
    0
    Neozzz created

    hi

    this is the same docker command we used with .net 5.0 project.

    How can we mitigate this?

    tx

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you try to change the permissions of the pfx file? Or try to run docker with root

  • User Avatar
    0
    Neozzz created

    I have run the app inside container as root. The host system is windows, I dont think there is any permissions I should set, if not please let me know what to do.

    Click here to see the error log when app is run in container as root.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Interop+Crypto+OpenSslCryptographicException: error:2006D080:BIO routines:BIO_new_file:no such file

    BIO_new_file:no such file

    The problem is still with the pfx file, please check whether it exists or its permissions.

    ls -l show the files and permissions.

  • User Avatar
    0
    Neozzz created

    Do you have a dockerfile sample that uses the focal image as mentioned in your other threads.

    Tx

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Not yet, none of us are docker experts. We just search solutions on Google. : )

  • User Avatar
    0
    ServiceBot created
    Support Team Automatic process manager

    This question has been automatically marked as stale because it has not had recent activity.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06