diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 6a53f6d..8b503e0 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -11,6 +11,9 @@ RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key # [Optional] Uncomment this section to install additional OS packages. # RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ # && apt-get -y install --no-install-recommends + +ENV ASPNETCORE_HTTP_PORTS=5000 + EXPOSE 4200 # [Optional] Uncomment this line to install global node packages. RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install --lts && nvm use --lts && npm install -g typescript" 2>&1 diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 6267917..c0ece96 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -5,10 +5,8 @@ "dockerComposeFile": "docker-compose.yml", "service": "app", "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", - // Features to add to the dev container. More info: https://containers.dev/features. // "features": {}, - // Configure tool-specific properties. "customizations": { // Configure properties specific to VS Code. @@ -28,7 +26,6 @@ } ] }, - // Add the IDs of extensions you want installed when the container is created. "extensions": [ "ms-dotnettools.csharp", @@ -36,18 +33,19 @@ ] } }, - // Use 'forwardPorts' to make a list of ports inside the container available locally. - // "forwardPorts": [5000, 5001], - // "portsAttributes": { - // "5001": { - // "protocol": "https" - // } - // } - + "forwardPorts": [ + 4200, + 5000, + 5001 + ], + "portsAttributes": { + "5001": { + "protocol": "https" + } + }, // postCreateCommand.sh parameters: $1=SA password, $2=dacpac path, $3=sql script(s) path "postCreateCommand": "bash .devcontainer/mssql/postCreateCommand.sh 'P@ssw0rd' './bin/Debug/' './.devcontainer/mssql/'" - // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. // "remoteUser": "root" -} +} \ No newline at end of file diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000..ebc1188 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,2 @@ +coreDump: + enabled: false diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..90f25e7 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,41 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "command": "dotnet", + "type": "process", + "args": [ + "build", + "${workspaceFolder}/Api/Api.sln", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary;ForceNoAlign" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "publish", + "command": "dotnet", + "type": "process", + "args": [ + "publish", + "${workspaceFolder}/Api/Api.sln", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary;ForceNoAlign" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "watch", + "command": "dotnet", + "type": "process", + "args": [ + "watch", + "run", + "--project", + "${workspaceFolder}/Api/Api.sln" + ], + "problemMatcher": "$msCompile" + } + ] +} \ No newline at end of file diff --git a/Api/Properties/launchSettings.json b/Api/Properties/launchSettings.json index a25d3fd..7ff731d 100644 --- a/Api/Properties/launchSettings.json +++ b/Api/Properties/launchSettings.json @@ -5,17 +5,17 @@ "launchBrowser": true, "launchUrl": "swagger", "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" + "ASPNETCORE_ENVIRONMENT": "Development", }, "dotnetRunMessages": true, - "applicationUrl": "https://localhost:7145;http://localhost:5012" + "applicationUrl": "https://0.0.0.0:5001;http://0.0.0.0:5000" }, "IIS Express": { "commandName": "IISExpress", "launchBrowser": true, "launchUrl": "swagger", "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" + "ASPNETCORE_ENVIRONMENT": "Development", } }, "Container (Dockerfile)": {