This is the code that services codingteam.org.ru website.
To build the application, you'll need to install .NET SDK 8.0+.
To run the application, .NET Runtime 8.0 is required.
The only configuration parameter is the HTTP binding. Change the binding using ASPNETCORE_URLS environment variable. For example, ASPNETCORE_URLS=http://0.0.0.0:80 means listening port 80 for all addresses. The default setting is http://localhost:5000.
Build the project:
$ npm run build $ dotnet build$ dotnet run --project Codingteam.SitePrepare the production-ready distribution in the publish directory:
$ dotnet publish --configuration Release --output publish Codingteam.SiteThis application uses Docker for deployment. To create a Docker image, use the following command:
$ docker build -t codingteam/codingteam.org.ru:$CODINGTEAM_ORG_RU_VERSION -t codingteam/codingteam.org.ru:latest .(where $CODINGTEAM_ORG_RU_VERSION is the version for the image to use)
Then push the image to the Docker Hub:
$ docker login # if necessary $ docker push codingteam/codingteam.org.ru:$CODINGTEAM_ORG_RU_VERSION $ docker push codingteam/codingteam.org.ru:latestConsider using the following Ansible task for deployment:
- name: Set up the Docker containercommunity.docker.docker_container: name: codingteam.org.ruimage_name_mismatch: recreateimage: codingteam/codingteam.org.ru:{{codingteam_org_ru_version }}published_ports: - '5000:5000'restart_policy: unless-stoppeddefault_host_ip: ''env: ASPNETCORE_URLS: "http://+:5000"This will deploy the Docker container version {{codingteam_org_ru_version }} and make it to listen port 5000 on the host.