Archives for Software Dev - Page 20
Event Logs and Running Containers
To connect to docker and launch a PS prompt inside the containerdocker exec CONTAINERID To fetch the newest 1000 events in the Application Event log (the format is needed…
Docker Application Logging Using Prometheus
Docker logs by themselves reveal little about your containerized application. To get a true monitoring strategy in place, that includes your application metrics, you need a tool like Prometheus. This…
Amazon linux EC2 install certbot
Amazon Linux EC2 only wget --no-check-certificate chmod a+x ./certbot-auto sudo yum -y install python-pip sudo pip install cryptography sudo pip install certbot Installing on any other (not amazon linux)…
Stepping through Powershell Code, Modules
I ran into a few issues when modifying my PowerShell modules and not being able to step through the modified code. Here are some simple tips to ensure you can…
Powershell to Create AD Trust
Launch Powershell cmd prompt from the programs menu. Inside the cmd prompt , type Get-ADTrust if it fails - do this first : import-module activedirectory Once you have the module,…
ARG vs ENV vs Powershell in Dockerfiles
ARGs in dockerfile are great for passing in build time paramaters (before a container is built)ENVs in dockefile are for passing in run time parameters (once a container is already…
Quick SMTP Server Check
a) From Powershell - Test-NetConnection -port 25 b) telnet (install telnetclient from windows features) and, in a cmd prompt (or PS prompt), telnet 25
Helpful Powershell Commands
More samples at Call a local exe -- use the call operator & Set-Location $composefolder & 'C:\Program Files\docker\' "up" Call another PS script Invoke-Expression ".\" Show all env vars Get-ChildItem…
dockerfile MULTIPLE commands or entrypoints–Powershell and IIS as ENTRYPOINTS in Docker Compose
Typically, dockerfiles require a single entrypoint or single command. In fact, multiple CMD instructions are ignored and only the final CMD is executed. By now, you should know that entrypoint…
Blockchain books and resources
There are plenty of youtube videos of course, but these books will give you a solid grounding of how to ‘think like a blockchainer’ Building blockchain projects - Narayan Prusty.…