Add local nuget docker repository support

features/quickstart
Matija Koželj 2 years ago
parent 032a1c3112
commit 690ede08f1

@ -0,0 +1,2 @@
#Local NuGet repository
For faster development and debugging, a local nuget repository is recommended. Included here is a docker-compose file along with a .env file for the baget local nuget server. Run "docker-compose up -d" to start the server on port 5555.

@ -0,0 +1,7 @@
ApiKey=defaultAuthenticationToken
Storage__Type=FileSystem
Storage__Path=/var/baget/packages
Database__Type=Sqlite
Database__ConnectionString=Data Source=/var/baget/baget.db
Search__Type=Database

@ -0,0 +1,17 @@
version: "3"
networks:
gitea:
external: false
services:
server:
image: loicsharma/baget
container_name: baget
restart: always
volumes:
- ./baget-data:/var/baget
ports:
- "5555:80"
env_file:
- ./baget.env

@ -8,3 +8,15 @@ call buildProjects.bat
cd ../.. cd ../..
cd Connected.Framework/build cd Connected.Framework/build
call buildProjects.bat call buildProjects.bat
cd ../..
cd Connected.Framework.ServiceModel/build
call buildProjects.bat
cd ../..
cd Connected.Framework.ServiceModel.Client/build
call buildProjects.bat
cd ../..
cd Connected.Common/build
call buildProjects.bat
cd ../..
cd Connected.Common.Types/build
call buildProjects.bat

@ -3,3 +3,7 @@
git clone --branch features/nuget_autobuild https://git.tompit.com/Connected/Connected.Components.git git clone --branch features/nuget_autobuild https://git.tompit.com/Connected/Connected.Components.git
git clone --branch features/nuget_autobuild https://git.tompit.com/Connected/Connected.git git clone --branch features/nuget_autobuild https://git.tompit.com/Connected/Connected.git
git clone --branch features/nuget_autobuild https://git.tompit.com/Connected/Connected.Framework.git git clone --branch features/nuget_autobuild https://git.tompit.com/Connected/Connected.Framework.git
git clone --branch features/nuget_autobuild https://git.tompit.com/Connected/Connected.Framework.ServiceModel.git
git clone --branch features/nuget_autobuild https://git.tompit.com/Connected/Connected.Framework.ServiceModel.Client.git
git clone --branch features/nuget_autobuild https://git.tompit.com/Connected/Connected.Common.git
git clone --branch features/nuget_autobuild https://git.tompit.com/Connected/Connected.Common.Types.git

@ -5,3 +5,9 @@ set /p LOCAL_NUGET="Enter the path to a folder for the local NuGet repository: "
setx /M LOCAL_NUGET "%LOCAL_NUGET%" setx /M LOCAL_NUGET "%LOCAL_NUGET%"
setx LOCAL_NUGET "%LOCAL_NUGET%" setx LOCAL_NUGET "%LOCAL_NUGET%"
mkdir "%LOCAL_NUGET%" mkdir "%LOCAL_NUGET%"
setx /M LOCAL_NUGET_SERVER "http://localhost:5555/v3/index.json"
setx LOCAL_NUGET_SERVER "http://localhost:5555/v3/index.json"
setx /M LOCAL_NUGET_SERVER_TOKEN "defaultAuthenticationToken"
setx LOCAL_NUGET_SERVER_TOKEN "defaultAuthenticationToken"
Loading…
Cancel
Save