Skip to content

Commit 82c8bb1

Browse files
committed
Docker compose for å kjøre testene i docker-container.
1 parent 2e1637d commit 82c8bb1

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

docker/tests/Dockerfile renamed to Dockerfile_tests

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/dotnet/core/sdk:2.1
1+
FROM mcr.microsoft.com/dotnet/core/sdk:3.1
22

33
WORKDIR /signature-api-client-dotnet
44

docker-compose.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: "3.9"
2+
services:
3+
tests:
4+
build:
5+
context: .
6+
dockerfile: Dockerfile_tests
7+
volumes:
8+
# Smoketest requires some setup. See internal documentation.
9+
- $HOME/.microsoft/usersecrets/organization-certificate/secrets.json:/root/.microsoft/usersecrets/organization-certificate/secrets.json:ro
10+
- $HOME/Documents/sertifikater/Bring_Digital_Signature_Key_Encipherment_Data_Encipherment.p12:$HOME/Documents/sertifikater/Bring_Digital_Signature_Key_Encipherment_Data_Encipherment.p12:ro

0 commit comments

Comments
 (0)