Added an initial naive implementation of the Tauri Devcontainer
This commit is contained in:
parent
01c78e2ebd
commit
26fa1435c7
16
.devcontainer/Dev.Dockerfile
Normal file
16
.devcontainer/Dev.Dockerfile
Normal 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
|
25
.devcontainer/devcontainer.json
Normal file
25
.devcontainer/devcontainer.json
Normal 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"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
22
.devcontainer/docker-compose.yaml
Normal file
22
.devcontainer/docker-compose.yaml
Normal 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
|
Loading…
Reference in New Issue
Block a user