First, clone the ahs-tutorial
repository:
git clone [email protected]:pku-liang/ahs-tutorial.git repos
cd repos
git submodule update --init --recursive
cd ..
Then, build the docker image:
Note
If you don't need proxy setting for docker build, please comment out line 32 in Dockerfile
.
chmod +x run.sh
./run.sh build -i ahs-docker
Then, run the container:
./run.sh run -i ahs-docker -c ahs-docker -v mount.json
docker attach ahs-docker
And, in the container, you can run the following commands to install the dependencies:
cd /root/repos
chmod 777 ./install.sh
./install.sh
Give run.sh
executable permission:
Before running, make sure proxy settings are good for Docker access.
chmod +x run.sh
For usage, run:
./run.sh <command> [options]
Pull the base image, run:
./run.sh pull
Build the image, run:
./run.sh build -i hw-env
Run the container, run:
./run.sh run -i hw-env -c hw-env -v mount.json
The mount information is specified in mount.json
in JSON format.
If you need proxy inside docker, put proxy settings in Dockerfile.proxy
, and edit Dockerfile
to include it (line 27).