Initial Devcontainer configuration
This commit is contained in:
parent
e29fd43688
commit
a527abe4a6
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
|
26
.devcontainer/devcontainer.json
Normal file
26
.devcontainer/devcontainer.json
Normal 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"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
22
.devcontainer/docker-compose.yaml
Normal file
22
.devcontainer/docker-compose.yaml
Normal 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"
|
Loading…
Reference in New Issue
Block a user