Nearly what I want...

This commit is contained in:
Johannes Findeisen 2025-06-06 04:16:19 +02:00
commit 22c77ae08e
3 changed files with 31 additions and 13 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
home/
root/ root/

View file

@ -1,22 +1,30 @@
FROM rust:latest FROM rust:latest
WORKDIR /home/rust-docker ENV TZ="Europe/Berlin"
#COPY . . WORKDIR /root
RUN apt update -y RUN apt update -y
RUN apt install -y apt-utils bash git mc protobuf-compiler vim
RUN apt dist-upgrade -y RUN apt dist-upgrade -y
RUN apt install -y apt-utils build-essential git mc protobuf-compiler tmux vim zsh
RUN chsh -s /bin/zsh root
RUN useradd -M -u 1000 -U -s /bin/zsh -d /home/hanez hanez
#RUN git clone --branch v1.1.0 --single-branch https://github.com/microsoft/edit.git edit #RUN git clone --branch v1.1.0 --single-branch https://github.com/microsoft/edit.git edit
#RUN cargo build --manifest-path /home/rust-docker/edit/Cargo.toml --profile dev #RUN cargo build --manifest-path /home/rust-docker/edit/Cargo.toml --profile dev
#RUN cp /home/rust-docker/edit/target/release/gurk /usr/bin/ #RUN cp /home/rust-docker/edit/target/release/edit /usr/bin/
RUN git clone --branch v0.7.1 --single-branch https://github.com/boxdot/gurk-rs.git gurk #RUN git clone --branch v0.7.1 --single-branch https://github.com/boxdot/gurk-rs.git gurk
RUN cargo build --manifest-path /home/rust-docker/gurk/Cargo.toml --profile release #RUN cargo build --manifest-path /home/rust-docker/gurk/Cargo.toml --profile release
RUN cp /home/rust-docker/gurk/target/release/gurk /usr/bin/ #RUN cp /home/rust-docker/gurk/target/release/gurk /usr/bin/
RUN git clone --branch 25.01.1 --single-branch https://github.com/helix-editor/helix.git helix #RUN git clone --branch 25.01.1 --single-branch https://github.com/helix-editor/helix.git helix
RUN cargo build --manifest-path /home/rust-docker/helix/Cargo.toml --profile release #RUN cargo build --manifest-path /root/helix/Cargo.toml --profile release
RUN cp /home/rust-docker/helix/target/release/hx /usr/bin/ #RUN cp /root/helix/target/release/hx /usr/bin/
#RUN git clone --branch v1.0.0 --single-branch https://github.com/FedericoBruzzone/tgt.git tgt
#RUN cargo build --manifest-path /home/rust-docker/tgt/Cargo.toml --profile release --features download-tdlib
#RUN cp /home/rust-docker/tgt/target/release/tgt /usr/bin/
ENTRYPOINT ["bash"] ENTRYPOINT ["bash"]

View file

@ -1,10 +1,19 @@
services: services:
rusty: rusty:
image: rusty
entrypoint: /bin/zsh
environment:
- HOME=/root
- SHELL=/bin/zsh
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
container_name: rusty container_name: rusty
#tty: true stdin_open: true
#volumes: tty: true
# - ./root:/root:rw volumes:
- ./home:/home:rw
- ./root:/root:rw
network_mode: host
hostname: rusty