Skip to content

Commit

Permalink
changelog: images update part2 (#210)
Browse files Browse the repository at this point in the history
* changelog: Images update part 2

* docs: update .Net versions

Co-Authored-By: Julia March <[email protected]>

---------

Co-authored-by: Julia March <[email protected]>
  • Loading branch information
davlgd and juliamrch authored Mar 28, 2024
1 parent 1803e0a commit d6b748f
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 7 deletions.
26 changes: 26 additions & 0 deletions content/changelog/2024-02-27-images-update-part2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: February 2024 images update (part 2)
date: 2024-02-27
tags:
- images
- update
authors:
- name: David Legrand
link: https://github.com/davlgd
image: https://github.com/davlgd.png?size=40
description: New .Net version, Java Elastic/APM agent update
excludeSearch: true
---

Earlier this month, we published [a first set of updates](/changelog/2024-02-02-images-update/) for Docker, Erlang, Go, Haskell, Ruby and Rust. Some days ago, we finished this work and all images are now up-to-date. This process occurred with no impact for our users. As mentioned in a previous post, this enables [the new `healthcheck` feature](/changelog/2024-02-26-healthcheck-for-everyone/) available for all applications.

New images include security patches, Linux kernel 6.7.1, OpenSSL 3.2.1 and Node.js 20.11.0 by default. For the latter, you can set it via the `CC_NODE_VERSION` [environment variable](/doc/reference/reference-environment-variables/#commons-to-all-applications). Other changes are as follows:

* **.Net:**
* Version 8.0 support
* `CC_DOTNET_VERSION` [environment variable](/doc/reference/reference-environment-variables/#net) can be `6.0` or `8.0`
* **Java - Elastic / APM:**
* The agent has been updated to 1.47.1
* Java 21 support

New PHP image is next to come, with 8.3 version support, we're currently working on it. After that, we'll bring our new strategy to build images into production. We're currently testing it, and preparing enhancements for multiples runtimes. Your applications will automatically benefit from it when available. [Stay tuned](/changelog/index.xml).
12 changes: 6 additions & 6 deletions content/doc/applications/dotnet/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ You do not need to change a lot in your application, the *requirements* will hel

### .NET version

The default version used on Clever Cloud is `6.0`. You can change it to `5.0` by setting the `CC_DOTNET_VERSION` environment variable to `5.0`. No support will be provided for end-of-life versions.
The default version used on Clever Cloud is `8.0`. You can change it by setting the `CC_DOTNET_VERSION` environment variable to `6.0`. We don't support non-LTS and older versions.

### Requirements

Expand All @@ -50,10 +50,10 @@ Let's take an example with the [simple-feed-reader project](https://github.com/d

First, you need to add the `APP_FOLDER=SimpleFeedReader` environment variable to define the application folder inside the Git repository.

During deployment, the `SimpleFeedReader.csproj` file and the target framework `net5.0` are automatically detected. Then, the .NET project is published:
During deployment, the runtime automatically detects the `SimpleFeedReader.csproj` file and the target framework `net8.0`. Then, it publishes the .NET project:

```bash
dotnet publish --framework net5.0 --configuration Release
dotnet publish --framework net8.0 --configuration Release
```

No additional configuration is required (unless multiple project files or target frameworks are present, see the documentation below).
Expand All @@ -74,7 +74,7 @@ If your project file defines multiple targets, like :
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net5.0;net6.0</TargetFramework>
<TargetFramework>net6.0;net8.0</TargetFramework>
</PropertyGroup>
...
```
Expand All @@ -84,7 +84,7 @@ You must specify the one you want to run, with the `CC_DOTNET_TFM` environment v
If `CC_DOTNET_TFM` is specified, then the executable produced by this target is used to start the application.

```bash
CC_DOTNET_TFM=net5.0
CC_DOTNET_TFM=net6.0
```

### Dependencies
Expand Down Expand Up @@ -117,7 +117,7 @@ CC_DOTNET_PROFILE=Debug

If you need to run a custom command (or just pass options to the program), you can specify it through the `CC_RUN_COMMAND` environment variable.

For instance, you can have `CC_RUN_COMMAND=./bin/Release/net5.0/myapp <options>`.
For instance, you can have `CC_RUN_COMMAND=./bin/Release/net6.0/myapp <options>`.

### Private dependencies

Expand Down
2 changes: 1 addition & 1 deletion content/doc/reference/reference-environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ If `TAILSCALE_LOGIN_SERVER` is provided, the agent will be configured to reach a
|`CC_DOTNET_PROFILE` | Override the build configuration settings in your project. | Release |
|`CC_DOTNET_PROJ` | The name of your project file to use for the build, without the .csproj / .fsproj / .vbproj extension. | |
|`CC_DOTNET_TFM` | Compiles for a specific framework. The framework must be defined in the project file. Example : `net5.0` | |
|`CC_DOTNET_VERSION` | Choose the .NET Core version between `5.0`,`6.0`. | 6.0 |
|`CC_DOTNET_VERSION` | Choose the .NET Core version between `6.0`,`8.0`. | 8.0 |
|`CC_RUN_COMMAND` | Custom command to run your application. | |

## Elixir
Expand Down

0 comments on commit d6b748f

Please sign in to comment.