Use docker to pack our working environment, based on Ubuntu 18.04 (Bionic Beaver).
This docker environment will prepare the common repositories we need to work with CDNJS project, please note that due to the repository disk space use issue, a full cloned and checkouted cdnjs main repository will use more than 88 GB disk space, so we use a shallow cloned cdnjs main repository with sparseCheckout enabled.
You can download the image we built then load it, or build your own.
It'll take about 5 mins to load the docker images, it depends on your hardware performance, please get a cup of tea or coffee during the load process.
$ wget https://cdnjs.peterdavehello.org/cdnjs-workspace-docker.txz
$ docker load --input cdnjs-workspace-docker.txz
or
$ docker build -t cdnjs-workspace .
$ docker run --hostname cdnjs-workspace -it cdnjs-workspace --name cdnjs-workspace bash
$ git config --global user.name "User"
$ git config --global user.email "[email protected]"
cdnjs-workspace / # cd ~/cdnjs/
cdnjs-workspace ~/cdnjs # ls
atom-extension/ autoupdate/ bot/ buildScript/ cdnjs/ cdnjs-drone-ci/ cdnjs-importer/ new-website/ script/ tutorials/ workspace/
$ docker start cdnjs-workspace
$ docker exec -it cdnjs-workspace bash
cdnjs-workspace / # cd ~/cdnjs/
cdnjs-workspace ~/cdnjs # ls
atom-extension/ autoupdate/ bot/ buildScript/ cdnjs/ cdnjs-drone-ci/ cdnjs-importer/ new-website/ script/ tutorials/ workspace/