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 mcr.microsoft.com/dotnet/core/aspnet:3.0-buster-slim AS base | |
WORKDIR /app | |
EXPOSE 80 | |
EXPOSE 443 | |
FROM mcr.microsoft.com/dotnet/core/sdk:3.0-buster AS build | |
WORKDIR /src | |
COPY ["WebApplication1/WebApplication1.csproj", "WebApplication1/"] | |
RUN dotnet restore "WebApplication1/WebApplication1.csproj" | |
COPY . . |
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": "0.2.0", | |
"configurations": [ | |
{ | |
"name": ".NET Core Docker Attach (Compose)", | |
"type": "coreclr", | |
"request": "attach", | |
"processId": "${command:pickRemoteProcess}", | |
"pipeTransport": { | |
"pipeProgram": "docker-compose", |
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: "2.4" | |
services: | |
db: | |
image: postgres:12.0-alpine | |
volumes: | |
- pg-data:/var/lib/postgresql/data | |
- ./db/init:/docker-entrypoint-initdb.d | |
ports: | |
- 5432 | |
environment: |
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 mcr.microsoft.com/dotnet/core/sdk:2.2 | |
RUN apt update && \ | |
apt install unzip && \ | |
curl -sSL https://aka.ms/getvsdbgsh | /bin/sh /dev/stdin -v latest -l /vsdbg | |
WORKDIR /app | |
COPY ./bin/Debug/netcoreapp2.2/publish /app | |
CMD dotnet api.dll |
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
const axios = require('axios'); | |
describe('ACME API test suite', () => { | |
describe('Some smoke test...', () => { | |
it('should succeed!', () => { | |
expect(true).toBe(true); | |
}) | |
}) | |
describe('When calling GET /api/values', () =>{ |
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
describe('ACME API test suite', () => { | |
describe('Some smoke test...', () => { | |
it('should succeed!', () => { | |
expect(true).toBe(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
version: "2.4" | |
services: | |
db: | |
image: postgres:12.0-alpine | |
volumes: | |
- pg-data:/var/lib/postgresql/data | |
- ./db/init:/docker-entrypoint-initdb.d | |
ports: | |
- 5432 | |
environment: |
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: "2.4" | |
services: | |
db: | |
image: postgres:12.0-alpine | |
volumes: | |
- pg-data:/var/lib/postgresql/data | |
- ./db/init:/docker-entrypoint-initdb.d | |
ports: | |
- 5432 | |
environment: |
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 mcr.microsoft.com/dotnet/core/sdk:2.2 | |
WORKDIR /app | |
COPY api.csproj ./ | |
RUN dotnet restore | |
COPY . . | |
CMD dotnet run |
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 hobbies( | |
hobby_id serial PRIMARY KEY, | |
hobby VARCHAR (50) UNIQUE NOT NULL | |
); | |
INSERT INTO hobbies(hobby) VALUES('jogging'); | |
INSERT INTO hobbies(hobby) VALUES('hiking'); | |
INSERT INTO hobbies(hobby) VALUES('swimming'); | |
INSERT INTO hobbies(hobby) VALUES('diving'); | |
INSERT INTO hobbies(hobby) VALUES('cooking'); |