Skip to content

Commit d5faafc

Browse files
Update docs in preparation for repo rename (#130)
* update urls for in-repo stuff * Documentation cleanup * finish CHECKLIST.md * Update DEVGUIDE.md Co-authored-by: Rainer Sigwald <[email protected]> * Update README.md Co-authored-by: Rainer Sigwald <[email protected]> Co-authored-by: Rainer Sigwald <[email protected]>
1 parent 0c855f4 commit d5faafc

File tree

12 files changed

+79
-193
lines changed

12 files changed

+79
-193
lines changed

.github/workflows/publish-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ jobs:
2424
- name: Release
2525
run: dotnet build --configuration release
2626
- name: Publish
27-
run: dotnet nuget push "Microsoft.NET.Build.Containers/bin/Release/Microsoft.NET.Build.Containers.*.nupkg" --api-key ${{ secrets.FEED_UPLOAD_TOKEN }} --source "https://nuget.pkg.github.com/rainersigwald/index.json"
27+
run: dotnet nuget push "Microsoft.NET.Build.Containers/bin/Release/Microsoft.NET.Build.Containers.*.nupkg" --api-key ${{ secrets.FEED_UPLOAD_TOKEN }} --source "https://nuget.pkg.github.com/dotnet/index.json"

CHECKLIST.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

DEVGUIDE.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Developer Guide
2+
3+
This document contains getting-started resources for those that want to develop this tool.
4+
5+
## Using the prerelease package from this repository
6+
7+
The easiest way to use the prerelease package is to follow [these GitHub docs](https://docs.github.com/packages/working-with-a-github-packages-registry/working-with-the-nuget-registry).
8+
9+
You'll want to use a nuget.config file to
10+
11+
* define a source for this repository
12+
* define credentials (username and Personal Access Token) to use when accessing this source
13+
14+
Then, you can use `dotnet add package Microsoft.NET.Build.Containers -prerelease` to get the latest version.
15+
16+
You can also always clone this repository, run `dotnet build`, and use the newly-generated nupkg.
17+
18+
## References
19+
20+
* [OCI Image Format spec](https://github.com/opencontainers/image-spec/blob/main/spec.md)
21+
* [Docker Registry API docs](https://docs.docker.com/registry/spec/api/)
22+
* [Setting up a local Docker registry](https://docs.docker.com/registry/)

Microsoft.NET.Build.Containers/Layer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static Layer FromFiles(IEnumerable<(string path, string containerPath)> f
3030
string tempTarballPath = ContentStore.GetTempFile();
3131
using (FileStream fs = File.Create(tempTarballPath))
3232
{
33-
// using (GZipStream gz = new(fs, CompressionMode.Compress)) // TODO: https://github.com/rainersigwald/containers/issues/29
33+
// using (GZipStream gz = new(fs, CompressionMode.Compress)) // TODO: https://github.com/dotnet/sdk-container-builds/issues/29
3434
using (TarWriter writer = new(fs, TarEntryFormat.Gnu, leaveOpen: true))
3535
{
3636
foreach (var item in fileList)

Microsoft.NET.Build.Containers/Microsoft.NET.Build.Containers.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
<Description>Tasks and targets to natively publish .NET applications as containers.</Description>
2525
<Copyright></Copyright>
2626
<PackageLicenseExpression>MIT</PackageLicenseExpression>
27-
<PackageProjectUrl>https://github.com/rainersigwald/containers</PackageProjectUrl>
28-
<RepositoryUrl>https://github.com/rainersigwald/containers</RepositoryUrl>
27+
<PackageProjectUrl>https://github.com/dotnet/sdk-container-builds</PackageProjectUrl>
28+
<RepositoryUrl>https://github.com/dotnet/sdk-container-builds</RepositoryUrl>
2929
<RepositoryType>git</RepositoryType>
3030
<PackageTags>containers;docker;Microsoft.NET.Build.Containers</PackageTags>
3131
<PackageReadmeFile>README.md</PackageReadmeFile>

README.md

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,29 @@
1-
# OCI Containers for .NET
1+
# .NET SDK Container Building Tools
22

3-
An API for creating and manipulating OCI containers, and build tasks for creating them at build time.
3+
This repo contains APIs and MSBuild Tasks for generating an OCI Container from a .NET project, as well as tests for the same.
44

5-
You can learn more about the project from the project [Documentation](docs).
5+
Getting started with the library in an existing project is as easy as
66

7-
[![.NET](https://github.com/rainersigwald/containers/actions/workflows/dotnet.yml/badge.svg)](https://github.com/rainersigwald/containers/actions/workflows/dotnet.yml)
7+
```shell
8+
dotnet add package Microsoft.NET.Build.Containers
9+
dotnet publish --os linux --arch x64 -c Release -p:PublishProfile=DefaultContainer
10+
```
811

9-
## Using New Repo
12+
You can learn more about the project from the project [Documentation](./docs).
1013

11-
You can simply `git clone` this project to get started. It is recommended that you don't preserve history of the project (it isn't generally meaningful) for your repo, but make a copy and `git init` your project from source.
14+
[![.NET](https://github.com/dotnet/sdk-container-builds/actions/workflows/dotnet.yml/badge.svg)](https://github.com/dotnet/sdk-container-builds/actions/workflows/dotnet.yml)
1215

13-
Consult [CHECKLIST.md] for helpful suggestions on preparing your repo to go public.
16+
## Prerequisites
1417

15-
## Building
18+
In order to build the project you will need [.NET SDK 7.0.100, preview 7](https://dotnet.microsoft.com/download/dotnet/7.0) or greater installed.
19+
From there, you can simply `dotnet build` the repository and be good to go!
1620

17-
You don't "build" New Repo, however, this will be meaningful for many other projects.
1821

1922
## Contributing
2023

2124
See [CONTRIBUTING.md](CONTRIBUTING.md) for information on contributing to this project.
2225

23-
This project has adopted the code of conduct defined by the [Contributor Covenant](http://contributor-covenant.org/)
26+
This project has adopted the code of conduct defined by the [Contributor Covenant](http://contributor-covenant.org/)
2427
to clarify expected behavior in our community. For more information, see the [.NET Foundation Code of Conduct](http://www.dotnetfoundation.org/code-of-conduct).
2528

2629
## License
@@ -29,12 +32,12 @@ This project is licensed with the [MIT license](LICENSE).
2932

3033
## .NET Foundation
3134

32-
New Repo is a [.NET Foundation project](https://dotnetfoundation.org/projects).
35+
sdk-container-builds is a [.NET Foundation project](https://dotnetfoundation.org/projects).
3336

3437
## Related Projects
3538

3639
You should take a look at these related projects:
3740

38-
- [.NET Core](https://github.com/dotnet/core)
39-
- [ASP.NET](https://github.com/aspnet)
40-
- [Mono](https://github.com/mono)
41+
- [Konet](https://github.com/lippertmarkus/konet)
42+
- [`dotnet build-image`](https://github.com/tmds/build-image)
43+
- [.NET SDK](https://github.com/dotnet/sdk)

THIRD-PARTY-NOTICES

Lines changed: 0 additions & 20 deletions
This file was deleted.

docs/ContainerCustomization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Be default, we push to the local Docker daemon (annotated by `docker://`), but f
3535
```
3636

3737
> **Note**
38-
> There is no authentication currently supported - that [will come in a future release](https://github.com/rainersigwald/containers/issues/70) - so make sure you're pointing to an unauthenticated registry
38+
> There is no authentication currently supported - that [will come in a future release](https://github.com/dotnet/sdk-container-builds/issues/70) - so make sure you're pointing to a local Docker daemon
3939
4040
## ContainerImageName
4141

docs/DEMO.md

Lines changed: 0 additions & 95 deletions
This file was deleted.

docs/INTEGRATED-DEMO.md

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)