Skip to content

Commit 2e93bc0

Browse files
committed
trying again for toolbox
1 parent 867ba41 commit 2e93bc0

File tree

3 files changed

+19
-17
lines changed

3 files changed

+19
-17
lines changed

docker_work/README

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

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
33
directory gets mounted into the Docker container, so changes made here
44
persist after the container is closed. Anything saved outside of this
55
directory is lost when the container is removed.

home_dockerMESA.sh

+18-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
export DISPLAY=localhost:0.0
44

5-
# Creating a machine with 4GB of RAM
5+
# Creating a machine with 2GB of RAM and 2 CPUs
66

77
docker-machine create \
88
-d virtualbox \
@@ -11,11 +11,25 @@ docker-machine create \
1111
--virtualbox-disk-size=10000 \
1212
mesa-machine
1313

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)"
1523

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
1829

30+
docker exec --user root mesa_dock service ssh start
31+
32+
ip=$(docker-machine ip mesa-machine)
1933
# Bind port of docker container inside the machine to local port 20000
2034
ssh -Nf -L20000:localhost:6158 docker@$ip
2135
# ssh with X11 forwarding for pgstar.

start_remote.sh

-12
This file was deleted.

0 commit comments

Comments
 (0)