Just the basics...
This commit is contained in:
parent
ca6cf09c6a
commit
f3ae7c75c3
4 changed files with 22 additions and 15 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
root/
|
||||||
23
Dockerfile
23
Dockerfile
|
|
@ -1,21 +1,18 @@
|
||||||
FROM rust:latest
|
FROM rust:latest
|
||||||
WORKDIR /opt/rust
|
WORKDIR /home/rust-docker
|
||||||
COPY . .
|
#COPY . .
|
||||||
|
|
||||||
RUN apt update -y && apt dist-upgrade -y
|
RUN apt update -y
|
||||||
RUN apt install -y bash git protobuf-compiler vim
|
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 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 cargo build --manifest-path /home/rust-docker/gurk/Cargo.toml --profile release
|
||||||
RUN cp /opt/rust/gurk/target/debug/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 /opt/rust/helix/Cargo.toml
|
RUN cargo build --manifest-path /home/rust-docker/helix/Cargo.toml --profile release
|
||||||
RUN cp /opt/rust/helix/target/debug/helix /usr/bin/
|
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"]
|
ENTRYPOINT ["bash"]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
# My Rust environment in a Docker container
|
||||||
|
|
||||||
|
More. to come... ;)
|
||||||
|
|
||||||
|
|
@ -5,5 +5,10 @@ services:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
container_name: rust
|
container_name: rust
|
||||||
#tty: true
|
#tty: true
|
||||||
#environment:
|
environment:
|
||||||
# - CARGO_TARGET_DIR
|
- EDITOR: /usr/bin/hx
|
||||||
|
- HOME: /root
|
||||||
|
- SHELL: /bin/bash
|
||||||
|
volumes:
|
||||||
|
- ./root:/root:rw
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue