This file contains hidden or 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
FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine AS publish | |
WORKDIR / | |
COPY ["WebApi/WebApi.csproj", "WebApi/"] | |
RUN dotnet restore "WebApi/WebApi.csproj" --runtime alpine-x64 | |
COPY . . | |
RUN dotnet publish "WebApi/WebApi.csproj" -c Release -o /app/publish \ | |
--no-restore \ | |
--runtime alpine-x64 \ | |
--self-contained true \ |
This file contains hidden or 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
FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine AS publish | |
WORKDIR / | |
COPY */*.csproj . | |
RUN for file in $(ls *.csproj); do mkdir -p ${file%.*}/ && mv $file ${file%.*}/; done | |
COPY *.sln . | |
RUN dotnet restore --runtime alpine-x64 | |
COPY . . | |
RUN dotnet publish "WebApi/WebApi.csproj" -c Release -o /app/publish \ | |
--no-restore \ |
This file contains hidden or 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
apiVersion: security.istio.io/v1beta1 | |
kind: RequestAuthentication | |
metadata: | |
name: auth | |
namespace: istio-system | |
spec: | |
selector: | |
matchLabels: | |
app: istio-ingressgateway | |
jwtRules: |
This file contains hidden or 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
using MongoDB.Driver; | |
var client = new MongoClient("mongodb://Ip1,Ip2"); | |
var ret = client.GetDatabase("example") | |
.GetCollection<ExampleCollection>("example_collection"); |
This file contains hidden or 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
using Cassandra; | |
... | |
var cluster = Cluster.Builder() | |
.AddContactPoints("Ip 1", "Ip 2" ...) | |
.WithPort(9042) | |
.Build(); | |
var conn = cluster.Connect(); |
This file contains hidden or 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
// Get the value from Secret text in "Manage credentials" page. Capture from F12 option ;) | |
println hudson.util.Secret.decrypt("value") |
This file contains hidden or 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
version: '3' | |
services: | |
first-cassandra: | |
image: cassandra | |
hostname: first-cassandra | |
restart: on-failure | |
container_name: first-cassandra | |
expose: | |
- 9042 | |
ports: |
This file contains hidden or 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
FROM rafaeldalsenter/k8s-cloud-deploy:1.0 | |
ENV PROJECT_ID=test-project | |
ENV REGION=us-west1 | |
ENV CLOUD=gcp | |
# This "." folder contains K8s files and CREDENTIALS.json | |
COPY . /app |
This file contains hidden or 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
--- | |
version: '3' | |
services: | |
zookeeper: | |
image: confluentinc/cp-zookeeper:latest | |
hostname: zookeeper | |
container_name: zookeeper | |
ports: | |
- "2181:2181" | |
environment: |
This file contains hidden or 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
public async Task<IList<PullRequestFileDto>> GetFilesFromPullRequest(long repositoryId, int pullRequest) | |
{ | |
var result = await _githubClient.PullRequest.Files(repositoryId, pullRequest); | |
return result.Select(x => new PullRequestFileDto | |
{ | |
Additions = x.Additions, | |
Deletions = x.Deletions, | |
Path = x.Patch, | |
FileName = x.FileName |
NewerOlder