File tree 3 files changed +19
-17
lines changed
3 files changed +19
-17
lines changed Original file line number Diff line number Diff line change 1
1
2
- This is the directory where you should do you MESA work. This
2
+ This is the directory where you should do your MESA work. This
3
3
directory gets mounted into the Docker container, so changes made here
4
4
persist after the container is closed. Anything saved outside of this
5
5
directory is lost when the container is removed.
Original file line number Diff line number Diff line change 2
2
3
3
export DISPLAY=localhost:0.0
4
4
5
- # Creating a machine with 4GB of RAM
5
+ # Creating a machine with 2GB of RAM and 2 CPUs
6
6
7
7
docker-machine create \
8
8
-d virtualbox \
@@ -11,11 +11,25 @@ docker-machine create \
11
11
--virtualbox-disk-size=10000 \
12
12
mesa-machine
13
13
14
- ip=$( docker-machine ip mesa-machine)
14
+ echo " MESA MACHINE CREATED"
15
+
16
+ # Needs a windows style path to mount.
17
+ # export HERE=$(echo $PWD | sed -e 's/^\///' -e 's/\//\\/g' -e 's/^./\0:/')
18
+ # figure out the voume mounting later
19
+ # -v $HERE/docker_work:/home/docker/docker_work \
20
+
21
+ # Connect terminal to the docker machine to allow running docker commands.
22
+ eval " $( docker-machine env mesa-machine) "
15
23
16
- # Get the docker container running inside the machine.
17
- ssh docker@$ip ' bash -s' < start_remote.sh
24
+ docker run -d --rm \
25
+ --name mesa_dock \
26
+ -p 6158:22 \
27
+ evbauer/mesa_lean:9793.01 \
28
+ sleep infinity
18
29
30
+ docker exec --user root mesa_dock service ssh start
31
+
32
+ ip=$( docker-machine ip mesa-machine)
19
33
# Bind port of docker container inside the machine to local port 20000
20
34
ssh -Nf -L20000:localhost:6158 docker@$ip
21
35
# ssh with X11 forwarding for pgstar.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments