How to Run the Site Locally - adasegroup/adasegroup.github.io Wiki

  • Clone the repository
git clone https://github.com/adasegroup/adasegroup.github.io
cd adasegroup.github.io
  • Build the environment or use the prebuilt container at Athena:/home/ovoinov/exchange/world/adase_website_env.dockerimage.
# Prepare base environment
cd _setup_env
docker build -t adase/website:base .

# Prepare whole environment
cd ..
docker run --name adase_website_env_setup \
    --mount type=bind,source="$(pwd)",target=/adasegroup.github.io \
    adase/website:base \
    bash /adasegroup.github.io/_setup_env/setup_env.sh
docker commit adase_website_env_setup adase/website:env
  • Run the container
docker run --rm -ti --init --name adase_website_env \
    --mount type=bind,source="$(pwd)",target=/adasegroup.github.io \
    -p $PORT:2000 \
    adase/website:env \
    gulp --cwd /adasegroup.github.io

where $PORT is some free port on your host, e.g 12345.

  • Connect to localhost:$PORT.