mirror of
https://github.com/bitnami/containers.git
synced 2026-03-14 06:48:11 +08:00
3.1.201-debian-10-r0 release
This commit is contained in:
@@ -4,10 +4,10 @@ LABEL maintainer "Bitnami <containers@bitnami.com>"
|
||||
COPY prebuildfs /
|
||||
# Install required system packages and dependencies
|
||||
RUN install_packages build-essential ca-certificates curl git libc6 libcap2-bin libcom-err2 libcurl4 libffi6 libgcc1 libgcrypt20 libgmp10 libgnutls30 libgpg-error0 libgssapi-krb5-2 libhogweed4 libicu-dev libidn2-0 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libldap-2.4-2 liblttng-ust-dev libnettle6 libnghttp2-14 libp11-kit0 libpsl5 librtmp1 libsasl2-2 libsqlite3-dev libssh2-1 libssl-dev libssl1.1 libstdc++6 libtasn1-6 libunistring2 pkg-config procps sudo unzip wget zlib1g
|
||||
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/dotnet-sdk-3.1.102-0-linux-amd64-debian-10.tar.gz && \
|
||||
echo "d491218a8d4cd0a9b821e6867a83603df9a87ec4711c776a744a8a8a1dcf9895 /tmp/bitnami/pkg/cache/dotnet-sdk-3.1.102-0-linux-amd64-debian-10.tar.gz" | sha256sum -c - && \
|
||||
tar -zxf /tmp/bitnami/pkg/cache/dotnet-sdk-3.1.102-0-linux-amd64-debian-10.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
|
||||
rm -rf /tmp/bitnami/pkg/cache/dotnet-sdk-3.1.102-0-linux-amd64-debian-10.tar.gz
|
||||
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/dotnet-sdk-3.1.201-0-linux-amd64-debian-10.tar.gz && \
|
||||
echo "0afd78ebe525c3fc98e1bcde31cf6160ffef5541d5f1e04095339336a7844be7 /tmp/bitnami/pkg/cache/dotnet-sdk-3.1.201-0-linux-amd64-debian-10.tar.gz" | sha256sum -c - && \
|
||||
tar -zxf /tmp/bitnami/pkg/cache/dotnet-sdk-3.1.201-0-linux-amd64-debian-10.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
|
||||
rm -rf /tmp/bitnami/pkg/cache/dotnet-sdk-3.1.201-0-linux-amd64-debian-10.tar.gz
|
||||
RUN apt-get update && apt-get upgrade -y && \
|
||||
rm -r /var/lib/apt/lists /var/cache/apt/archives
|
||||
RUN sed -i 's/^PASS_MAX_DAYS.*/PASS_MAX_DAYS 90/' /etc/login.defs && \
|
||||
@@ -17,9 +17,9 @@ RUN sed -i 's/^PASS_MAX_DAYS.*/PASS_MAX_DAYS 90/' /etc/login.defs && \
|
||||
COPY rootfs /
|
||||
RUN /opt/bitnami/scripts/dotnet-sdk/postunpack.sh
|
||||
ENV BITNAMI_APP_NAME="dotnet-sdk" \
|
||||
BITNAMI_IMAGE_VERSION="3.1.102-debian-10-r5" \
|
||||
BITNAMI_IMAGE_VERSION="3.1.201-debian-10-r0" \
|
||||
DOTNET_CLI_HOME="/app" \
|
||||
DOTNET_ROOT="/opt/bitnami/dotnet/bin" \
|
||||
DOTNET_ROOT="/opt/bitnami/dotnet-sdk/bin" \
|
||||
HOME="/app" \
|
||||
PATH="/opt/bitnami/dotnet-sdk/bin:$PATH"
|
||||
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
# What is ASP.NET SDK?
|
||||
# What is .NET SDK?
|
||||
|
||||
> ASP.NET is an open-source framework for web application development created by Microsoft.
|
||||
> .NET is an open-source framework for web application development created by Microsoft.
|
||||
|
||||
[https://dotnet.microsoft.com/apps/aspnet](https://dotnet.microsoft.com/apps/aspnet)
|
||||
[https://dotnet.microsoft.com/](https://dotnet.microsoft.com/)
|
||||
|
||||
# TL;DR;
|
||||
|
||||
```bash
|
||||
$ docker run --name dotnet bitnami/dotnet:latest
|
||||
$ docker run --name dotnet-sdk bitnami/dotnet-sdk:latest
|
||||
```
|
||||
|
||||
## Docker Compose
|
||||
|
||||
```bash
|
||||
$ curl -sSL https://raw.githubusercontent.com/bitnami/bitnami-docker-dotnet/master/docker-compose.yml > docker-compose.yml
|
||||
$ curl -sSL https://raw.githubusercontent.com/bitnami/bitnami-docker-dotnet-sdk/master/docker-compose.yml > docker-compose.yml
|
||||
$ docker-compose up -d
|
||||
```
|
||||
|
||||
@@ -26,11 +26,11 @@ $ docker-compose up -d
|
||||
* All Bitnami images available in Docker Hub are signed with [Docker Content Trust (DTC)](https://docs.docker.com/engine/security/trust/content_trust/). You can use `DOCKER_CONTENT_TRUST=1` to verify the integrity of the images.
|
||||
* Bitnami container images are released daily with the latest distribution packages available.
|
||||
|
||||
> This [CVE scan report](https://quay.io/repository/bitnami/dotnet?tab=tags) contains a security report with all open CVEs. To get the list of actionable security issues, find the "latest" tag, click the vulnerability report link under the corresponding "Security scan" field and then select the "Only show fixable" filter on the next page.
|
||||
> This [CVE scan report](https://quay.io/repository/bitnami/dotnet-sdk?tab=tags) contains a security report with all open CVEs. To get the list of actionable security issues, find the "latest" tag, click the vulnerability report link under the corresponding "Security scan" field and then select the "Only show fixable" filter on the next page.
|
||||
|
||||
# How to deploy Dotnet in Kubernetes?
|
||||
# How to deploy .NET SDK in Kubernetes?
|
||||
|
||||
You can find an example for testing Dotnet in Kubernetes with the `test.yaml` file. To launch it, run the command:
|
||||
You can find an example for testing .NET SDK in Kubernetes with the `test.yaml` file. To launch it, run the command:
|
||||
|
||||
```bash
|
||||
$ kubectl apply -f test.yaml
|
||||
@@ -47,28 +47,28 @@ $ kubectl apply -f test.yaml
|
||||
Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags [in our documentation page](https://docs.bitnami.com/containers/how-to/understand-rolling-tags-containers/).
|
||||
|
||||
|
||||
* [`3.1-debian-10`, `3.1.102-debian-10-r5`, `3.1`, `3.1.102`, `latest` (3.1/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-dotnet/blob/3.1.102-debian-10-r5/3.1/debian-10/Dockerfile)
|
||||
* [`3.1-debian-10`, `3.1.201-debian-10-r0`, `3.1`, `3.1.201`, `latest` (3.1/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-dotnet-sdk/blob/3.1.201-debian-10-r0/3.1/debian-10/Dockerfile)
|
||||
|
||||
Subscribe to project updates by watching the [bitnami/dotnet GitHub repo](https://github.com/bitnami/bitnami-docker-dotnet).
|
||||
Subscribe to project updates by watching the [bitnami/dotnet-sdk GitHub repo](https://github.com/bitnami/bitnami-docker-dotnet-sdk).
|
||||
|
||||
# Get this image
|
||||
|
||||
The recommended way to get the Bitnami Dotnet Docker Image is to pull the prebuilt image from the [Docker Hub Registry](https://hub.docker.com/r/bitnami/dotnet).
|
||||
The recommended way to get the Bitnami .NET SDK Docker Image is to pull the prebuilt image from the [Docker Hub Registry](https://hub.docker.com/r/bitnami/dotnet-sdk).
|
||||
|
||||
```bash
|
||||
$ docker pull bitnami/dotnet:latest
|
||||
$ docker pull bitnami/dotnet-sdk:latest
|
||||
```
|
||||
|
||||
To use a specific version, you can pull a versioned tag. You can view the [list of available versions](https://hub.docker.com/r/bitnami/dotnet/tags/) in the Docker Hub Registry.
|
||||
To use a specific version, you can pull a versioned tag. You can view the [list of available versions](https://hub.docker.com/r/bitnami/dotnet-sdk/tags/) in the Docker Hub Registry.
|
||||
|
||||
```bash
|
||||
$ docker pull bitnami/dotnet:[TAG]
|
||||
$ docker pull bitnami/dotnet-sdk:[TAG]
|
||||
```
|
||||
|
||||
If you wish, you can also build the image yourself.
|
||||
|
||||
```bash
|
||||
$ docker build -t bitnami/dotnet:latest 'https://github.com/bitnami/bitnami-docker-dotnet.git#master:3.1/debian-10'
|
||||
$ docker build -t bitnami/dotnet-sdk:latest 'https://github.com/bitnami/bitnami-docker-dotnet-sdk.git#master:3.1/debian-10'
|
||||
```
|
||||
|
||||
# Persisting your application
|
||||
@@ -80,16 +80,16 @@ For persistence you should mount a directory at the `/bitnami` path. If the moun
|
||||
```bash
|
||||
$ docker run \
|
||||
-v /path/to/dotnet-persistence:/bitnami \
|
||||
bitnami/dotnet:latest
|
||||
bitnami/dotnet-sdk:latest
|
||||
```
|
||||
|
||||
You can also do this with a minor change to the [`docker-compose.yml`](https://github.com/bitnami/bitnami-docker-dotnet/blob/master/docker-compose.yml) file present in this repository:
|
||||
You can also do this with a minor change to the [`docker-compose.yml`](https://github.com/bitnami/bitnami-docker-dotnet-sdk/blob/master/docker-compose.yml) file present in this repository:
|
||||
|
||||
```yaml
|
||||
dotnet:
|
||||
dotnet-sdk:
|
||||
...
|
||||
volumes:
|
||||
- /path/to/dotnet-persistence:/bitnami
|
||||
- /path/to/dotnet-persistence:/app
|
||||
...
|
||||
```
|
||||
|
||||
@@ -107,12 +107,12 @@ Containers attached to the same network can communicate with each other using th
|
||||
$ docker network create dotnet-network --driver bridge
|
||||
```
|
||||
|
||||
### Step 2: Launch the Dotnet container within your network
|
||||
### Step 2: Launch the .NET SDK container within your network
|
||||
|
||||
Use the `--network <NETWORK>` argument to the `docker run` command to attach the container to the `dotnet-network` network.
|
||||
|
||||
```bash
|
||||
$ docker run --name dotnet-node1 --network dotnet-network bitnami/dotnet:latest
|
||||
$ docker run --name dotnet-node1 --network dotnet-network bitnami/dotnet-sdk:latest
|
||||
```
|
||||
|
||||
### Step 3: Run another containers
|
||||
@@ -121,10 +121,10 @@ We can launch another containers using the same flag (`--network NETWORK`) in th
|
||||
|
||||
# Logging
|
||||
|
||||
The Bitnami Dotnet Docker image sends the container logs to `stdout`. To view the logs:
|
||||
The Bitnami .NET SDK Docker image sends the container logs to `stdout`. To view the logs:
|
||||
|
||||
```bash
|
||||
$ docker logs dotnet
|
||||
$ docker logs dotnet-sdk
|
||||
```
|
||||
|
||||
You can configure the containers [logging driver](https://docs.docker.com/engine/admin/logging/overview/) using the `--log-driver` option if you wish to consume the container logs differently. In the default configuration docker uses the `json-file` driver.
|
||||
@@ -133,12 +133,12 @@ You can configure the containers [logging driver](https://docs.docker.com/engine
|
||||
|
||||
## Upgrade this image
|
||||
|
||||
Bitnami provides up-to-date versions of Dotnet, including security patches, soon after they are made upstream. We recommend that you follow these steps to upgrade your container.
|
||||
Bitnami provides up-to-date versions of .NET SDK, including security patches, soon after they are made upstream. We recommend that you follow these steps to upgrade your container.
|
||||
|
||||
### Step 1: Get the updated image
|
||||
|
||||
```bash
|
||||
$ docker pull bitnami/dotnet:latest
|
||||
$ docker pull bitnami/dotnet-sdk:latest
|
||||
```
|
||||
|
||||
### Step 2: Stop the running container
|
||||
@@ -146,13 +146,13 @@ $ docker pull bitnami/dotnet:latest
|
||||
Stop the currently running container using the command
|
||||
|
||||
```bash
|
||||
$ docker stop dotnet
|
||||
$ docker stop dotnet-sdk
|
||||
```
|
||||
|
||||
### Step 3: Remove the currently running container
|
||||
|
||||
```bash
|
||||
$ docker rm -v dotnet
|
||||
$ docker rm -v dotnet-sdk
|
||||
```
|
||||
|
||||
### Step 4: Run the new image
|
||||
@@ -160,16 +160,16 @@ $ docker rm -v dotnet
|
||||
Re-create your container from the new image.
|
||||
|
||||
```bash
|
||||
$ docker run --name dotnet bitnami/dotnet:latest
|
||||
$ docker run --name dotnet-sdk bitnami/dotnet-sdk:latest
|
||||
```
|
||||
|
||||
# Contributing
|
||||
|
||||
We'd love for you to contribute to this container. You can request new features by creating an [issue](https://github.com/bitnami/bitnami-docker-dotnet/issues), or submit a [pull request](https://github.com/bitnami/bitnami-docker-dotnet/pulls) with your contribution.
|
||||
We'd love for you to contribute to this container. You can request new features by creating an [issue](https://github.com/bitnami/bitnami-docker-dotnet-sdk/issues), or submit a [pull request](https://github.com/bitnami/bitnami-docker-dotnet-sdk/pulls) with your contribution.
|
||||
|
||||
# Issues
|
||||
|
||||
If you encountered a problem running this container, you can file an [issue](https://github.com/bitnami/bitnami-docker-dotnet/issues/new). For us to provide better support, be sure to include the following information in your issue:
|
||||
If you encountered a problem running this container, you can file an [issue](https://github.com/bitnami/bitnami-docker-dotnet-sdk/issues/new). For us to provide better support, be sure to include the following information in your issue:
|
||||
|
||||
- Host OS and version
|
||||
- Docker version (`docker version`)
|
||||
|
||||
Reference in New Issue
Block a user