diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cfbfa1f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +root/ diff --git a/Dockerfile b/Dockerfile index 3a5965e..c040e16 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,21 +1,18 @@ FROM rust:latest -WORKDIR /opt/rust -COPY . . +WORKDIR /home/rust-docker +#COPY . . -RUN apt update -y && apt dist-upgrade -y -RUN apt install -y bash git protobuf-compiler vim +RUN apt update -y +RUN apt install -y apt-utils bash git mc protobuf-compiler vim +RUN apt dist-upgrade -y RUN git clone --branch v0.7.1 --single-branch https://github.com/boxdot/gurk-rs.git gurk -RUN cargo build --manifest-path /opt/rust/gurk/Cargo.toml -RUN cp /opt/rust/gurk/target/debug/gurk /usr/bin/ +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 git clone --branch 25.01.1 --single-branch https://github.com/helix-editor/helix.git helix -RUN cargo build --manifest-path /opt/rust/helix/Cargo.toml -RUN cp /opt/rust/helix/target/debug/helix /usr/bin/ +RUN cargo build --manifest-path /home/rust-docker/helix/Cargo.toml --profile release +RUN cp /home/rust-docker/helix/target/release/hx /usr/bin/ -#RUN cargo build -#RUN cargo install --git https://github.com/boxdot/gurk-rs gurk -#RUN cargo install --path . -#CMD ["gurk" ] -#CMD ["bash" ] ENTRYPOINT ["bash"] + diff --git a/README.md b/README.md index e69de29..3005a6b 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,4 @@ +# My Rust environment in a Docker container + +More. to come... ;) + diff --git a/docker-compose.yml b/docker-compose.yml index db5afab..6f396cd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,5 +5,10 @@ services: dockerfile: Dockerfile container_name: rust #tty: true - #environment: - # - CARGO_TARGET_DIR + environment: + - EDITOR: /usr/bin/hx + - HOME: /root + - SHELL: /bin/bash + volumes: + - ./root:/root:rw +