This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$featurename='Microsoft-Windows-Subsystem-Linux' | |
$Ubuntu_APK_URL="https://aka.ms/wsl-ubuntu-1804" | |
$Distro = 'Ubuntu-18.04' | |
$EXEName = 'ubuntu1804.exe' | |
function Exit_Wait(){ | |
if($needRestart){ | |
Write-Warning 'Please restart computer and run the script again!!!' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Setup Source and Destination | |
$in="C:\test\logs" | |
$out = "C:\sdcard\test\logs" | |
$sourcedir = get-childitem -File "$in" | |
$destinationdir = Get-ChildItem -File "$out" | |
#setup error db | |
if ((Test-Path $out) -ne $true ){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Login to the container | |
`docker exec -it registry sh` | |
2. Define variables matching your container and container version: | |
```export NAME="google/cadvisor" | |
export VERSION="v0.24.1"``` | |
3. Move to the the registry directory: | |
`cd /var/lib/registry/docker/registry/v2` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<match fluent.**> | |
@type null | |
</match> | |
<source> | |
@type tail | |
@id in_tail_container_logs | |
limit_recently_modified 1s | |
path /var/log/containers/*.log | |
pos_file /var/rancher-fluentd/db/fluentd-containers.log.pos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function add-https-support(){ | |
if ("TrustAllCertsPolicy" -as [type]) { | |
#"TrustAllCertsPolicy is already loaded" | |
}else{ | |
#add https support | |
add-type @" | |
using System.Net; | |
using System.Security.Cryptography.X509Certificates; | |
public class TrustAllCertsPolicy : ICertificatePolicy { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Provide the subscription Id where snapshot is created | |
$SubscriptionId = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" | |
#Provide the name of your resource group where snapshot is created | |
$resourceGroupName="rgname" | |
#Provide the snapshot name | |
$SnapshotName = "snapshotname" | |
#Provide Shared Access Signature (SAS) expiry duration in seconds e.g. 3600. | |
#Know more about SAS here: https://docs.microsoft.com/en-us/azure/storage/storage-dotnet-shared-access-signature-part-1 | |
$sasExpiryDuration = "3600" | |
#Provide storage account name where you want to copy the snapshot. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Build stage | |
# | |
FROM maven:3.6.0-jdk-11-slim AS build | |
COPY src /home/app/src | |
COPY pom.xml /home/app | |
RUN mvn -f /home/app/pom.xml clean package | |
# | |
# Package stage |
OlderNewer