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

.NET 8 RC1 #75

Merged
merged 9 commits into from
Sep 13, 2023
Merged

.NET 8 RC1 #75

merged 9 commits into from
Sep 13, 2023

Conversation

mathieu-benoit
Copy link
Owner

@mathieu-benoit mathieu-benoit commented Sep 13, 2023

Before the updates, with .NET 7, the latest image size on disk was: 31.7MB.

1st updates:

  • mcr.microsoft.com/dotnet/sdk:8.0.100-rc.1-alpine3.18-amd64
  • mcr.microsoft.com/dotnet/runtime-deps:8.0.0-rc.1-alpine3.18-amd64
  • <TargetFramework>net8.0</TargetFramework>

Size (on disk): 102 MB

2nd updates:

  • <PublishAot>true</PublishAot>
  • RUN apk add clang build-base zlib-dev
  • Remove: -p:PublishSingleFile=true incompatible with PublishAot

Size (on disk): 61.5 MB

3rd updates:

  • OptimizationPreference=Size
  • InvariantGlobalization=true
  • StackTraceSupport=false

Size (on disk): 60.2 MB

4th updates:

  • CreateSlimBuilder

Size (on disk): 40.5 MB

Other updates not impacting the size:

  • ASPNETCORE_HTTP_PORTS

To conclude, .NET 7 --> .NET 8 (+ PublishAot + SlimBuilder): 31.7MB --> 40.5 MB (+ 22 %) on disk.

@github-actions
Copy link

Deployment successfully completed for PR-75! 🎉

View in Humanitec

Deployment ID: 4d4a4d395bba5cc4e71ed621d8c38adb6a99bf0b

Domains:

my-sample-app: pourosdenesikdubuquemarquardt.newapp.io

Deployment diff

Deployment diff:

{
  "modules": {
    "add": null,
    "remove": [],
    "update": {
      "my-sample-app": [
        {
          "from": "",
          "op": "replace",
          "path": "/spec/containers/my-sample-app/image",
          "value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:76316906e146944b80b5ba91ea99567b8b410b48dfcd26830da085c30422ebb1"
        }
      ]
    }
  },
  "shared": null
}
Score Output

Score Output:

{
  "id": "4d4a4d395bba5cc4e71ed621d8c38adb6a99bf0b",
  "metadata": {
    "env_id": "pr-75",
    "name": "Auto-deployment (SCORE)",
    "url": "https://app.humanitec.io/orgs/my-trial/apps/my-sample-app/envs/pr-75/draft/4d4a4d395bba5cc4e71ed621d8c38adb6a99bf0b",
    "created_by": "s-9d271151-e949-4548-81ed-e7c652fecbb8",
    "created_at": "2023-09-13T14:48:05.252770278Z",
    "last_modified_at": "2023-09-13T14:48:05.252770278Z"
  },
  "modules": {
    "add": {
      "my-sample-app": {
        "externals": {
          "dns": {
            "type": "dns"
          },
          "route": {
            "params": {
              "host": "${externals.dns.host}",
              "path": "/",
              "port": 8080
            },
            "type": "route"
          }
        },
        "profile": "humanitec/default-module",
        "spec": {
          "containers": {
            "my-sample-app": {
              "id": "my-sample-app",
              "image": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:76316906e146944b80b5ba91ea99567b8b410b48dfcd26830da085c30422ebb1",
              "variables": {
                "MESSAGE": "Hello, World!"
              }
            }
          },
          "service": {
            "ports": {
              "tcp": {
                "container_port": 8080,
                "protocol": "TCP",
                "service_port": 8080
              }
            }
          }
        }
      }
    }
  }
}

@github-actions
Copy link

Deployment successfully completed for PR-75! 🎉

View in Humanitec

Deployment ID: ed17d527de96ed80c017bf4ae04a438b7931963f

Domains:

my-sample-app: pourosdenesikdubuquemarquardt.newapp.io

Deployment diff

Deployment diff:

{
  "modules": {
    "add": null,
    "remove": [],
    "update": {
      "my-sample-app": [
        {
          "from": "",
          "op": "replace",
          "path": "/spec/containers/my-sample-app/image",
          "value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:76316906e146944b80b5ba91ea99567b8b410b48dfcd26830da085c30422ebb1"
        }
      ]
    }
  },
  "shared": null
}
Score Output

Score Output:

{
  "id": "ed17d527de96ed80c017bf4ae04a438b7931963f",
  "metadata": {
    "env_id": "pr-75",
    "name": "Auto-deployment (SCORE)",
    "url": "https://app.humanitec.io/orgs/my-trial/apps/my-sample-app/envs/pr-75/draft/ed17d527de96ed80c017bf4ae04a438b7931963f",
    "created_by": "s-9d271151-e949-4548-81ed-e7c652fecbb8",
    "created_at": "2023-09-13T15:04:32.606370675Z",
    "last_modified_at": "2023-09-13T15:04:32.606370675Z"
  },
  "modules": {
    "add": {
      "my-sample-app": {
        "externals": {
          "dns": {
            "type": "dns"
          },
          "route": {
            "params": {
              "host": "${externals.dns.host}",
              "path": "/",
              "port": 8080
            },
            "type": "route"
          }
        },
        "profile": "humanitec/default-module",
        "spec": {
          "containers": {
            "my-sample-app": {
              "id": "my-sample-app",
              "image": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:76316906e146944b80b5ba91ea99567b8b410b48dfcd26830da085c30422ebb1",
              "variables": {
                "MESSAGE": "Hello, World!"
              }
            }
          },
          "service": {
            "ports": {
              "tcp": {
                "container_port": 8080,
                "protocol": "TCP",
                "service_port": 8080
              }
            }
          }
        }
      }
    }
  }
}

@github-actions
Copy link

Deployment successfully completed for PR-75! 🎉

View in Humanitec

Deployment ID: b4f78fd3733086d1adb7dd71c2d871f2d64e0ca4

Domains:

my-sample-app: pourosdenesikdubuquemarquardt.newapp.io

Deployment diff

Deployment diff:

{
  "modules": {
    "add": null,
    "remove": [],
    "update": {
      "my-sample-app": [
        {
          "from": "",
          "op": "replace",
          "path": "/spec/containers/my-sample-app/image",
          "value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:76316906e146944b80b5ba91ea99567b8b410b48dfcd26830da085c30422ebb1"
        }
      ]
    }
  },
  "shared": null
}
Score Output

Score Output:

{
  "id": "b4f78fd3733086d1adb7dd71c2d871f2d64e0ca4",
  "metadata": {
    "env_id": "pr-75",
    "name": "Auto-deployment (SCORE)",
    "url": "https://app.humanitec.io/orgs/my-trial/apps/my-sample-app/envs/pr-75/draft/b4f78fd3733086d1adb7dd71c2d871f2d64e0ca4",
    "created_by": "s-9d271151-e949-4548-81ed-e7c652fecbb8",
    "created_at": "2023-09-13T15:14:40.942141307Z",
    "last_modified_at": "2023-09-13T15:14:40.942141307Z"
  },
  "modules": {
    "add": {
      "my-sample-app": {
        "externals": {
          "dns": {
            "type": "dns"
          },
          "route": {
            "params": {
              "host": "${externals.dns.host}",
              "path": "/",
              "port": 8080
            },
            "type": "route"
          }
        },
        "profile": "humanitec/default-module",
        "spec": {
          "containers": {
            "my-sample-app": {
              "id": "my-sample-app",
              "image": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:76316906e146944b80b5ba91ea99567b8b410b48dfcd26830da085c30422ebb1",
              "variables": {
                "MESSAGE": "Hello, World!"
              }
            }
          },
          "service": {
            "ports": {
              "tcp": {
                "container_port": 8080,
                "protocol": "TCP",
                "service_port": 8080
              }
            }
          }
        }
      }
    }
  }
}

@github-actions
Copy link

Deployment successfully completed for PR-75! 🎉

View in Humanitec

Deployment ID: a5901b524e482751659d11ddaebf25e2c76fc10d

Domains:

my-sample-app: pourosdenesikdubuquemarquardt.newapp.io

Deployment diff

Deployment diff:

{
  "modules": {
    "add": null,
    "remove": [],
    "update": {
      "my-sample-app": [
        {
          "from": "",
          "op": "replace",
          "path": "/spec/containers/my-sample-app/image",
          "value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:76316906e146944b80b5ba91ea99567b8b410b48dfcd26830da085c30422ebb1"
        }
      ]
    }
  },
  "shared": null
}
Score Output

Score Output:

{
  "id": "a5901b524e482751659d11ddaebf25e2c76fc10d",
  "metadata": {
    "env_id": "pr-75",
    "name": "Auto-deployment (SCORE)",
    "url": "https://app.humanitec.io/orgs/my-trial/apps/my-sample-app/envs/pr-75/draft/a5901b524e482751659d11ddaebf25e2c76fc10d",
    "created_by": "s-9d271151-e949-4548-81ed-e7c652fecbb8",
    "created_at": "2023-09-13T15:18:48.278382237Z",
    "last_modified_at": "2023-09-13T15:18:48.278382237Z"
  },
  "modules": {
    "add": {
      "my-sample-app": {
        "externals": {
          "dns": {
            "type": "dns"
          },
          "route": {
            "params": {
              "host": "${externals.dns.host}",
              "path": "/",
              "port": 8080
            },
            "type": "route"
          }
        },
        "profile": "humanitec/default-module",
        "spec": {
          "containers": {
            "my-sample-app": {
              "id": "my-sample-app",
              "image": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:76316906e146944b80b5ba91ea99567b8b410b48dfcd26830da085c30422ebb1",
              "variables": {
                "MESSAGE": "Hello, World!"
              }
            }
          },
          "service": {
            "ports": {
              "tcp": {
                "container_port": 8080,
                "protocol": "TCP",
                "service_port": 8080
              }
            }
          }
        }
      }
    }
  }
}

@github-actions
Copy link

Deployment successfully completed for PR-75! 🎉

View in Humanitec

Deployment ID: 635cd9d0b6193afe45e41aca00d36f71f0e49839

Domains:

my-sample-app: pourosdenesikdubuquemarquardt.newapp.io

Deployment diff

Deployment diff:

{
  "modules": {
    "add": null,
    "remove": [],
    "update": {
      "my-sample-app": [
        {
          "from": "",
          "op": "replace",
          "path": "/spec/containers/my-sample-app/image",
          "value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:76316906e146944b80b5ba91ea99567b8b410b48dfcd26830da085c30422ebb1"
        }
      ]
    }
  },
  "shared": null
}
Score Output

Score Output:

{
  "id": "635cd9d0b6193afe45e41aca00d36f71f0e49839",
  "metadata": {
    "env_id": "pr-75",
    "name": "Auto-deployment (SCORE)",
    "url": "https://app.humanitec.io/orgs/my-trial/apps/my-sample-app/envs/pr-75/draft/635cd9d0b6193afe45e41aca00d36f71f0e49839",
    "created_by": "s-9d271151-e949-4548-81ed-e7c652fecbb8",
    "created_at": "2023-09-13T15:31:09.331654418Z",
    "last_modified_at": "2023-09-13T15:31:09.331654418Z"
  },
  "modules": {
    "add": {
      "my-sample-app": {
        "externals": {
          "dns": {
            "type": "dns"
          },
          "route": {
            "params": {
              "host": "${externals.dns.host}",
              "path": "/",
              "port": 8080
            },
            "type": "route"
          }
        },
        "profile": "humanitec/default-module",
        "spec": {
          "containers": {
            "my-sample-app": {
              "id": "my-sample-app",
              "image": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:76316906e146944b80b5ba91ea99567b8b410b48dfcd26830da085c30422ebb1",
              "variables": {
                "MESSAGE": "Hello, World!"
              }
            }
          },
          "service": {
            "ports": {
              "tcp": {
                "container_port": 8080,
                "protocol": "TCP",
                "service_port": 8080
              }
            }
          }
        }
      }
    }
  }
}

@github-actions
Copy link

Deployment successfully completed for PR-75! 🎉

View in Humanitec

Deployment ID: ca11aca3270978e5e25c41aefa644c4fd26ebe35

Domains:

my-sample-app: pourosdenesikdubuquemarquardt.newapp.io

Deployment diff

Deployment diff:

{
  "modules": {
    "add": null,
    "remove": [],
    "update": {
      "my-sample-app": [
        {
          "from": "",
          "op": "replace",
          "path": "/spec/containers/my-sample-app/image",
          "value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:42960f3522ab1cefd76e22908b236c30d5db883acf2f9c0e94bc944bf88f80ee"
        }
      ]
    }
  },
  "shared": null
}
Score Output

Score Output:

{
  "id": "ca11aca3270978e5e25c41aefa644c4fd26ebe35",
  "metadata": {
    "env_id": "pr-75",
    "name": "Auto-deployment (SCORE)",
    "url": "https://app.humanitec.io/orgs/my-trial/apps/my-sample-app/envs/pr-75/draft/ca11aca3270978e5e25c41aefa644c4fd26ebe35",
    "created_by": "s-9d271151-e949-4548-81ed-e7c652fecbb8",
    "created_at": "2023-09-13T16:17:09.981593063Z",
    "last_modified_at": "2023-09-13T16:17:09.981593063Z"
  },
  "modules": {
    "add": {
      "my-sample-app": {
        "externals": {
          "dns": {
            "type": "dns"
          },
          "route": {
            "params": {
              "host": "${externals.dns.host}",
              "path": "/",
              "port": 8080
            },
            "type": "route"
          }
        },
        "profile": "humanitec/default-module",
        "spec": {
          "containers": {
            "my-sample-app": {
              "id": "my-sample-app",
              "image": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:42960f3522ab1cefd76e22908b236c30d5db883acf2f9c0e94bc944bf88f80ee",
              "variables": {
                "MESSAGE": "Hello, World!"
              }
            }
          },
          "service": {
            "ports": {
              "tcp": {
                "container_port": 8080,
                "protocol": "TCP",
                "service_port": 8080
              }
            }
          }
        }
      }
    }
  }
}

@github-actions
Copy link

Deployment successfully completed for PR-75! 🎉

View in Humanitec

Deployment ID: 1511babdb117294e562bccd24c26fe2b65ec7a34

Domains:

my-sample-app: pourosdenesikdubuquemarquardt.newapp.io

Deployment diff

Deployment diff:

{
  "modules": {
    "add": null,
    "remove": [],
    "update": {
      "my-sample-app": [
        {
          "from": "",
          "op": "replace",
          "path": "/spec/containers/my-sample-app/image",
          "value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:7acd64e1a121faff04b04dc125115f405427bbc201743f3babf66521a18842f1"
        }
      ]
    }
  },
  "shared": null
}
Score Output

Score Output:

{
  "id": "1511babdb117294e562bccd24c26fe2b65ec7a34",
  "metadata": {
    "env_id": "pr-75",
    "name": "Auto-deployment (SCORE)",
    "url": "https://app.humanitec.io/orgs/my-trial/apps/my-sample-app/envs/pr-75/draft/1511babdb117294e562bccd24c26fe2b65ec7a34",
    "created_by": "s-9d271151-e949-4548-81ed-e7c652fecbb8",
    "created_at": "2023-09-13T16:23:49.945691655Z",
    "last_modified_at": "2023-09-13T16:23:49.945691655Z"
  },
  "modules": {
    "add": {
      "my-sample-app": {
        "externals": {
          "dns": {
            "type": "dns"
          },
          "route": {
            "params": {
              "host": "${externals.dns.host}",
              "path": "/",
              "port": 8080
            },
            "type": "route"
          }
        },
        "profile": "humanitec/default-module",
        "spec": {
          "containers": {
            "my-sample-app": {
              "id": "my-sample-app",
              "image": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:7acd64e1a121faff04b04dc125115f405427bbc201743f3babf66521a18842f1",
              "variables": {
                "MESSAGE": "Hello, World!"
              }
            }
          },
          "service": {
            "ports": {
              "tcp": {
                "container_port": 8080,
                "protocol": "TCP",
                "service_port": 8080
              }
            }
          }
        }
      }
    }
  }
}

@mathieu-benoit mathieu-benoit changed the title .NET 8 .NET 8 RC1 Sep 13, 2023
@mathieu-benoit mathieu-benoit merged commit d331c00 into main Sep 13, 2023
2 checks passed
@mathieu-benoit mathieu-benoit deleted the dotnet-8 branch September 13, 2023 17:17
@mathieu-benoit mathieu-benoit linked an issue Sep 14, 2023 that may be closed by this pull request
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.

.NET 8
1 participant