This is based on pspdev-docker.
docker build -t vitasdk-docker .
(or just run make
)
Assuming you have a ~/.local/bin
folder and it's in your $PATH
:
ln -s $(pwd)/vitasdk-docker ~/.local/bin
Alternatively, you can also copy the script somewhere.
The directory where you run the script gets exposed to the
Docker image as /build/
, and this is also the working
directory. This allows you to run e.g.:
vitasdk-docker make
You can also just run a shell by running it without args:
vitasdk-docker
Note that only the current folder is exported, so you can't
do a cmake ..
in a build folder, for this, use the shell:
vitasdk-docker
mkdir build
cd build
cmake ..
Once this is set up, you can use the script from outside (again, from the parent folder, so it can find source files):
vitasdk-docker make -C build
Save the image:
docker save vitasdk-docker | bzip2 > vitasdk-docker.tar.bz2
Load the image:
docker load < bzip2 -dc vitasdk-docker.tar.bz2