notes update
parent
f6d55d1b71
commit
5bf6a66018
48
Notes.txt
48
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= "<path_to_the_service_executable>"
|
||||
#######################################################################################################################################################
|
||||
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
|
||||
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 <container_id> network-resurrector-agent
|
||||
#######################################################################################################################################################
|
||||
Docker container last version:
|
||||
- Agent: 1.0.0
|
||||
##############################################################################################
|
Loading…
Reference in New Issue