mirror of
https://github.com/hykilpikonna/AquaDX.git
synced 2026-05-14 00:00:03 -05:00
[+] devtainer
This commit is contained in:
parent
f546e40318
commit
e334ada5b4
20
config/devtainer/Dockerfile
Normal file
20
config/devtainer/Dockerfile
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
FROM archlinux:latest
|
||||
|
||||
RUN pacman -Syu --noconfirm \
|
||||
&& pacman -S --noconfirm openssh sudo jdk17-openjdk \
|
||||
&& rm -rf /var/cache/pacman/pkg/* \
|
||||
&& mkdir -p /var/run/sshd
|
||||
|
||||
RUN sed -i 's/.*PermitRootLogin.*/PermitRootLogin yes/' /etc/ssh/sshd_config \
|
||||
&& sed -i 's/#PermitEmptyPasswords no/PermitEmptyPasswords yes/' /etc/ssh/sshd_config \
|
||||
&& sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config \
|
||||
&& sed -i 's/UsePAM yes/UsePAM no/' /etc/ssh/sshd_config
|
||||
|
||||
RUN ssh-keygen -A && passwd -d root
|
||||
|
||||
RUN pacman -S --noconfirm zsh git curlie micro ripgrep python3 exa \
|
||||
&& rm -rf /var/cache/pacman/pkg/* \
|
||||
&& chsh -s /bin/zsh root \
|
||||
&& curl -sL hydev.org/zsh | bash
|
||||
|
||||
CMD ["/usr/sbin/sshd", "-D"]
|
||||
11
config/devtainer/README.md
Normal file
11
config/devtainer/README.md
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
Add this to your `~/.ssh/config`:
|
||||
|
||||
```
|
||||
Host aquadx-devtainer
|
||||
HostName localhost
|
||||
Port 2322
|
||||
User root
|
||||
StrictHostKeyChecking no
|
||||
```
|
||||
|
||||
Then you can use `ssh aquadx-devtainer` to connect to the container.
|
||||
13
config/devtainer/docker-compose.yaml
Normal file
13
config/devtainer/docker-compose.yaml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
services:
|
||||
dev:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
volumes:
|
||||
- ../../:/workspaces:cached
|
||||
cap_add:
|
||||
- SYS_PTRACE
|
||||
ports:
|
||||
- "127.0.0.1:2322:22"
|
||||
environment:
|
||||
- JAVA_OPTS=-Xmx2g
|
||||
Loading…
Reference in New Issue
Block a user