cdnjs / workspace

Dockerized CDNJS workspace

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cdnjs-workspace

Use docker to pack our working environment, based on Ubuntu 18.04 (Bionic Beaver).

Table of Contents

Note

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.

Usage

For the first time setup

Get workspace docker image

You can download the image we built then load it, or build your own.

Download and load pre-built image

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

Build image from scratch
$ docker build -t cdnjs-workspace .

Create container from image

$ docker run --hostname cdnjs-workspace -it cdnjs-workspace --name cdnjs-workspace bash

Setup git user info

$ git config --global user.name  "User"
$ git config --global user.email "User@github.com"

Setup your own remote on each repositories, start hacking!

cdnjs-workspace / # cd ~/cdnjs/
cdnjs-workspace ~/cdnjs # ls
atom-extension/  autoupdate/  bot/  buildScript/  cdnjs/  cdnjs-drone-ci/  cdnjs-importer/  new-website/  script/  tutorials/  workspace/

For future usage

Make sure the container started

$ docker start cdnjs-workspace

Enter into the container

$ docker exec -it cdnjs-workspace bash

Go to the working directory, start hacking!

cdnjs-workspace / # cd ~/cdnjs/
cdnjs-workspace ~/cdnjs # ls
atom-extension/  autoupdate/  bot/  buildScript/  cdnjs/  cdnjs-drone-ci/  cdnjs-importer/  new-website/  script/  tutorials/  workspace/

About

Dockerized CDNJS workspace

License:GNU General Public License v3.0


Languages

Language:Dockerfile 100.0%