From 690ede08f13b7bddee63d966c26b872ada8f013c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matija=20Ko=C5=BEelj?= Date: Fri, 10 Feb 2023 14:57:07 +0100 Subject: [PATCH] Add local nuget docker repository support --- docs/Quickstart/LocalNugetRepo/README.md | 2 ++ docs/Quickstart/LocalNugetRepo/baget.env | 7 +++++++ .../LocalNugetRepo/docker-compose.yaml | 17 +++++++++++++++++ docs/Quickstart/build.bat | 12 ++++++++++++ docs/Quickstart/clone.bat | 6 +++++- docs/Quickstart/setup_environment.bat | 8 +++++++- 6 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 docs/Quickstart/LocalNugetRepo/README.md create mode 100644 docs/Quickstart/LocalNugetRepo/baget.env create mode 100644 docs/Quickstart/LocalNugetRepo/docker-compose.yaml diff --git a/docs/Quickstart/LocalNugetRepo/README.md b/docs/Quickstart/LocalNugetRepo/README.md new file mode 100644 index 0000000..f87ee34 --- /dev/null +++ b/docs/Quickstart/LocalNugetRepo/README.md @@ -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. \ No newline at end of file diff --git a/docs/Quickstart/LocalNugetRepo/baget.env b/docs/Quickstart/LocalNugetRepo/baget.env new file mode 100644 index 0000000..f453808 --- /dev/null +++ b/docs/Quickstart/LocalNugetRepo/baget.env @@ -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 \ No newline at end of file diff --git a/docs/Quickstart/LocalNugetRepo/docker-compose.yaml b/docs/Quickstart/LocalNugetRepo/docker-compose.yaml new file mode 100644 index 0000000..24d8f6f --- /dev/null +++ b/docs/Quickstart/LocalNugetRepo/docker-compose.yaml @@ -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 \ No newline at end of file diff --git a/docs/Quickstart/build.bat b/docs/Quickstart/build.bat index a92b79b..6fa374a 100644 --- a/docs/Quickstart/build.bat +++ b/docs/Quickstart/build.bat @@ -7,4 +7,16 @@ cd Connected/build call buildProjects.bat cd ../.. cd Connected.Framework/build +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 \ No newline at end of file diff --git a/docs/Quickstart/clone.bat b/docs/Quickstart/clone.bat index ae45a06..9bf0b0d 100644 --- a/docs/Quickstart/clone.bat +++ b/docs/Quickstart/clone.bat @@ -2,4 +2,8 @@ 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.Framework.git \ No newline at end of file +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 \ No newline at end of file diff --git a/docs/Quickstart/setup_environment.bat b/docs/Quickstart/setup_environment.bat index 728bd83..cf61817 100644 --- a/docs/Quickstart/setup_environment.bat +++ b/docs/Quickstart/setup_environment.bat @@ -4,4 +4,10 @@ set /p LOCAL_NUGET="Enter the path to a folder for the local NuGet repository: " setx /M LOCAL_NUGET "%LOCAL_NUGET%" setx LOCAL_NUGET "%LOCAL_NUGET%" -mkdir "%LOCAL_NUGET%" \ No newline at end of file +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" \ No newline at end of file