diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..140b26f --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,32 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/alpine +{ + "name": "Alpine", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/base:alpine-3.18", + "features": { + "ghcr.io/flexwie/devcontainer-features/op:1": {} + }, + "customizations": { + "vscode": { + "extensions": [ + "ms-vscode.azure-account" + ] + } + } + + // Features to add to the dev container. More info: https://containers.dev/features. + // "features": {}, + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Use 'postCreateCommand' to run commands after the container is created. + // "postCreateCommand": "uname -a", + + // Configure tool-specific properties. + // "customizations": {}, + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" +} diff --git a/.vscode/azure-pipelines.yml b/.vscode/azure-pipelines.yml new file mode 100644 index 0000000..163127a --- /dev/null +++ b/.vscode/azure-pipelines.yml @@ -0,0 +1,15 @@ +trigger: +- master + +jobs: +- job: BuildDockerImage + pool: + vmImage: 'ubuntu-latest' + steps: + - task: Docker@2 + inputs: + containerRegistry: 'myregistry' + repository: 'my-iot-app' + command: 'buildAndPush' + Dockerfile: '**/Dockerfile' + tags: 'v1' diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..8f5956f --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "ms-vscode.azure-account" + ] +} \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..699f527 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,16 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + + { + "name": "PowerShell: Launch Current File", + "type": "PowerShell", + "request": "launch", + "script": "${file}", + "args": [] + } + ] +} \ No newline at end of file diff --git a/iot-central-CICD b/iot-central-CICD new file mode 160000 index 0000000..104f9ab --- /dev/null +++ b/iot-central-CICD @@ -0,0 +1 @@ +Subproject commit 104f9abf61b30095fc8a37e3aa990ef7c9dc413a