diff --git a/Notes.txt b/Notes.txt index 3985645..0004bda 100644 --- a/Notes.txt +++ b/Notes.txt @@ -1,5 +1,3 @@ -https://github.com/nikeee/wake-on-lan - ####################################################################################################################################################### Publish: dotnet publish --configuration Release --runtime win7-x64 @@ -7,6 +5,50 @@ dotnet publish --configuration Release --runtime win7-x64 Create windows service: sc create NetworkResurrector.Api binPath= "" ####################################################################################################################################################### +Resources: https://github.com/nikeee/wake-on-lan Multiple Directory.Build.props: -https://docs.microsoft.com/en-us/visualstudio/msbuild/customize-your-build?view=vs-2019 \ No newline at end of file +https://docs.microsoft.com/en-us/visualstudio/msbuild/customize-your-build?view=vs-2019 + + +####################################################################################################################################################### +Azure DevOps Repository Password: ***REMOVED*** +####################################################################################################################################################### +Docker commands: +***************** +Agent: +***************** + +Create image: +--from solution folder: +docker image build -t "network-resurrector-agent:1.0.0" -f "NetworkResurrector.Agent/Dockerfile" . + +Run image: +docker run -p 5053:80 -it network-resurrector-agent:1.0.0 + +Push image to registry: +--tag image +docker tag network-resurrector-agent:1.0.0 cloud.canister.io:5000/tstanciu/network-resurrector:agent-1.0.0 + +--login to registry +docker login --username=tstanciu --password="***REMOVED***" cloud.canister.io:5000 + +--push image +docker push cloud.canister.io:5000/tstanciu/network-resurrector:agent-1.0.0 + +Pull image from registry +--login to registry with readonly rights +docker login --username=deploy+tstanciu --password=***REMOVED*** cloud.canister.io:5000 + +--pull image +docker pull cloud.canister.io:5000/tstanciu/network-resurrector:agent-1.0.0 + +Run container in prod env +docker run --restart=always -p 5008:80 -d cloud.canister.io:5000/tstanciu/network-resurrector:agent-1.0.0 + +Rename container +docker rename network-resurrector-agent +####################################################################################################################################################### +Docker container last version: + - Agent: 1.0.0 +############################################################################################## \ No newline at end of file