Last active
August 29, 2015 14:17
-
-
Save fsamin/f61d90c63768cc6a58c7 to your computer and use it in GitHub Desktop.
Docktor step-by-step docker IC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "*** 1) Prepare environment" | |
docker pull node | |
docker run --name=nodejs node npm -version | |
docker commit nodejs docktor-ic | |
docker rm nodejs | |
echo "*** 2) Clone git repository" | |
docker run --name=docktor-ic-checkout --workdir=/opt docktor-ic git clone https://github.com/docktor/docktor.git | |
docker commit docktor-ic-checkout docktor-ic-checkout | |
docker rm docktor-ic-checkout | |
echo "*** 3) Install dependencies" | |
docker run --name=docktor-ic-dependencies --workdir=/opt/docktor docktor-ic-checkout npm install | |
docker commit docktor-ic-dependencies docktor-ic-dependencies | |
docker rm docktor-ic-dependencies | |
echo "*** 4) Check outdated dependencies" | |
#docker run -ti docktor-ic-dependencies npm outdated | |
docker run --name=docktor-ic-dependencies-check --workdir=/opt docktor-ic-dependencies npm install -g npm-check | |
docker commit docktor-ic-dependencies-check docktor-ic-dependencies-check | |
docker rm docktor-ic-dependencies-check | |
docker run -t docktor-ic-dependencies-check npm-check |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment