Initial Devcontainer configuration

This commit is contained in:
Entity 2024-10-14 12:51:58 +02:00
parent e29fd43688
commit a527abe4a6
Signed by: Entity
SSH Key Fingerprint: SHA256:zdOcLEK0rgkzxXEN6vZ1EuWYnQSp4+5l+j2y3omc7Tk
4 changed files with 65 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,26 @@
{
"name": "SSH-Transfer",
"dockerComposeFile": "./docker-compose.yaml",
"service": "Dev",
"workspaceFolder": "/App",
"remoteUser": "Entity",
"overrideCommand": true,
"shutdownAction": "stopCompose",
"customizations": {
"vscode": {
"extensions": [
"aaron-bond.better-comments",
"mikestead.dotenv",
"VisualStudioExptTeam.vscodeintellicode",
"christian-kohler.path-intellisense",
"ms-vscode-remote.remote-ssh",
"vscode-icons-team.vscode-icons",
"redhat.vscode-xml",
"redhat.vscode-yaml",
"rust-lang.rust-analyzer",
"dustypomerleau.rust-syntax",
"tamasfe.even-better-toml"
]
}
}
}

View File

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

1
.env Normal file
View File

@ -0,0 +1 @@
COMPOSE_PROJECT_NAME=SSH-Transfer