Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/totallymoney/dotnet-builder
Docker image for dotnet with nodejs, yarn, jq and more.
https://github.com/totallymoney/dotnet-builder
docker-image dotnet
Last synced: 3 days ago
JSON representation
Docker image for dotnet with nodejs, yarn, jq and more.
- Host: GitHub
- URL: https://github.com/totallymoney/dotnet-builder
- Owner: totallymoney
- License: unlicense
- Created: 2020-04-10T19:05:59.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-02-27T15:20:03.000Z (9 months ago)
- Last Synced: 2024-02-28T12:26:36.192Z (9 months ago)
- Topics: docker-image, dotnet
- Language: Dockerfile
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dotnet-builder
Docker image for .netcore >= 8.0 with nodejs, yarn, jq and more.
```sh
$ docker pull totallymoney/dotnet-builder:net8-node20
```[dotnet-build docker Hub image page](https://hub.docker.com/repository/docker/totallymoney/dotnet-builder/general)
The intention is to track new [dotnet-sdk images](https://hub.docker.com/_/microsoft-dotnet-sdk/). When a new version of dotnet is available we can make release a new version of this image.
## Make a Release
To publish a new docker image tag you must tag the repo after you commit.
For example,
if we want to update nodejs, edit the Dockerfile,
commit, tag the repo then push including the tag.```bash
$ git commit -am "Use nodejs version 18"
$ git push
$ git tag net6-node18
$ git push --tags
```Docker Hub will automatically detect the new tag and begin building a new
image named after the tag. i.e. `totallymoney/dotnet-builder:net6-node18`The build will soon be visible on the
[builds page](https://hub.docker.com/repository/docker/totallymoney/dotnet-builder/builds).## Make a Multi-Arch Release
The automatic docker-hub image builder will only build amd64 images. To build a multi arch release you will need to do that manually.
On a mac M1 the following will do it:
First you'll have to remove `openjdk-11-jdk` from the docker file. It's a very old version of openjdk, and not supported on arm.
Now we'll need to create a container to build images within. I believe you need this for qemu to kick in and build the different archs. It's slow, but it works.
```bash
docker buildx create --name container --driver=docker-container
```Then following will build a multiarch image, and push that change to docker-hub.
```bash
docker buildx build --platform linux/arm64,linux/amd64 --tag totallymoney/dotnet-builder-multiarch:net8-node20 --builder=container --push .
```