Created
March 22, 2024 07:34
-
-
Save dbones/72f52ecd0e3dfe8d5953037fe36c61f6 to your computer and use it in GitHub Desktop.
dev container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
workspace: | |
image: dbones/dotnet8:0.0.1 | |
# image: dbones/node21:0.0.1 | |
container_name: workspace | |
working_dir: /code | |
volumes: | |
- demo:/code | |
- ./local:/local | |
- ~/.ssh/id_github:/root/.ssh/id_rsa | |
- ./NuGet.Config:/root/.nuget/NuGet/NuGet.Config | |
networks: | |
- dev | |
ports: | |
- "5000:5000" # dotnet | |
- "5001:5001" # dotnet | |
- "5173:5173" # vitepress | |
# [Optional] Required for ptrace-based debuggers like C++, Go, and Rust | |
cap_add: | |
- SYS_PTRACE | |
security_opt: | |
- seccomp:unconfined | |
# Overrides default command so things don't shut down after the process ends. | |
# command: sleep infinity | |
command: /bin/sh -c "while sleep 1000; do :; done" | |
networks: | |
dev: | |
name: dev_dev | |
external: true | |
volumes: | |
demo: | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<packageSources> | |
<add key="gh-dbones-labs" value="https://nuget.pkg.github.com/dbones-labs/index.json" /> | |
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" /> | |
</packageSources> | |
<packageSourceCredentials> | |
<gh-dbones-labs> | |
<add key="Username" value="usr" /> | |
<add key="ClearTextPassword" value="pwd" /> | |
</gh-dbones-labs> | |
</packageSourceCredentials> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment