Added an initial naive implementation of the Tauri Devcontainer

This commit is contained in:
Entity 2024-10-14 12:26:13 +02:00
parent 01c78e2ebd
commit 26fa1435c7
Signed by: Entity
SSH Key Fingerprint: SHA256:zdOcLEK0rgkzxXEN6vZ1EuWYnQSp4+5l+j2y3omc7Tk
3 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1,16 @@
FROM alpine:latest
# Install dependencies
RUN apk add --no-cache --update git ca-certificates curl openssh-client
# Add my user
RUN adduser Entity -h /home/Entity -S
RUN addgroup Entity
RUN adduser Entity Entity
# Switch to my user
USER Entity
# Install Rust
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
# Configure git to use my name, email and signing keys
RUN git config --global user.name Entity
RUN git config --global user.email entity@runeterra.be
RUN git config --global gpg.format ssh
RUN git config --global user.signingkey /home/Entity/.ssh/git.runeterra.be

View File

@ -0,0 +1,25 @@
{
"name": "ChangeME",
"dockerComposeFile": "./docker-compose.yaml",
"service": "Dev",
"overrideCommand": true,
"shutdownAction": "stopCompose",
"workspaceFolder": "/App",
"customizations": {
"vscode": {
"extensions": [
"aaron-bond.better-comments",
"mikestead.dotenv",
"VisualStudioExptTeam.vscodeintellicode",
"christian-kohler.path-intellisense",
"vscode-icons-team.vscode-icons",
"redhat.vscode-xml",
"redhat.vscode-yaml",
"ms-vscode.vscode-typescript-next",
"rust-lang.rust-analyzer",
"dustypomerleau.rust-syntax",
"tamasfe.even-better-toml"
]
}
}
}

View File

@ -0,0 +1,22 @@
services:
Dev:
container_name: "ChangeMe-Dev"
build:
context: .
dockerfile: "./Dev.Dockerfile"
image: "ChangeMe:dev-latest"
networks:
- ChangeMe
volumes:
- "../:/App:rw"
- "Docker-SSH:/ssh:ro"
networks:
ChangeMe:
name: "ChangeMe"
external: false
volumes:
Docker-SSH:
name: "Docker-SSH"
external: true