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
create table Company ( | |
companyId int identity(1,1) | |
, companyName varchar(100) | |
, zipcode varchar(10) | |
, constraint PK_Company primary key (companyId) | |
) | |
GO | |
create table Person ( | |
personId int identity(1,1) |
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
<repositories> | |
<repository> | |
<id>MyRepoy</id> | |
<url>https://yourCustomPackage/_packaging/myrepoName/maven/v1</url> | |
<releases> | |
<enabled>true</enabled> | |
</releases> | |
<snapshots> | |
<enabled>true</enabled> | |
</snapshots> |
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
FROM node:13.6.0-alpine as builder | |
WORKDIR /app | |
COPY . . | |
RUN npm ci | |
RUN npm run build |
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
jobs: | |
- job: BuildDockerImages | |
displayName: 'Building Docker Image' | |
dependsOn: VerifyDockerTagVersion | |
pool: | |
name: ${{ parameters.poolName }} | |
steps: |
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
stages: | |
- stage: BuildApplication | |
displayName: 'Build Docker Application and Push' | |
condition: succeeded() | |
jobs: | |
- template: mybuildtemplate.yml | |
parameters: | |
dockerRepositoryName : $(WebApplication) | |
cloudCentralBaseImageRepository : $(dCentralBaseImageRepository) |
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
Version 1 | |
<PropertyGroup> | |
<TargetFramework>net461</TargetFramework> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="1.0.8" /> | |
</ItemGroup> | |
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
Simple example | |
################################################################ | |
parameters: | |
doThing: false | |
steps: | |
- script: echo I did a thing | |
condition: and(succeeded(), eq('${{ parameters.doThing }}', 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
// simple example | |
var whatFruit = fruit switch { | |
Apple _ => "This is an apple", | |
_ => "This is not an apple" | |
}; | |
// Property matching | |
public Fruit Fruit { get; set; } |
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
FROM maven:3.6.3-jdk-13 AS build | |
### Copy all your source code | |
WORKDIR /app | |
COPY . . | |
# Copy settings file across | |
# Please do not ommit the settings.xml in your target path |
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
FROM maven:3.6.0-jdk-11-slim AS build | |
WORKDIR /app | |
RUN echo "testdemo" > data.txt | |
# ENTRYPOINT [ "/usr/bin/watch", "-d", "." ] | |
ENTRYPOINT ["tail", "-f", "/dev/null"] | |