mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-11 21:29:18 +00:00
23 lines
447 B
Bash
23 lines
447 B
Bash
#!/bin/sh
|
|
|
|
HOST_PATH=$PWD/..
|
|
|
|
# store a command history inside containers into this file
|
|
|
|
touch $HOME/.rustlings_history
|
|
|
|
xhost local:
|
|
|
|
sudo docker run --rm \
|
|
-v /tmp/.X11-unix/:/tmp/.X11-unix \
|
|
-v $HOST_PATH:/mnt/rustlings \
|
|
-v $HOME/.rustlings_history:/root/.bash_history \
|
|
-w /mnt/rustlings \
|
|
--sysctl fs.mqueue.msg_max=128 \
|
|
--ulimit msgqueue=8192000 \
|
|
--ulimit core=-1 \
|
|
--shm-size=12G \
|
|
--name rustlings \
|
|
-i -t rustlings:latest \
|
|
/bin/bash
|