mirror of
https://github.com/denisidoro/navi
synced 2025-02-17 21:18:32 +00:00
Fix some cheatsheets
This commit is contained in:
parent
2993608739
commit
e6486d6b26
5 changed files with 47 additions and 33 deletions
|
@ -1,20 +0,0 @@
|
||||||
# Builds, (re)creates, starts, and attaches to containers for all services
|
|
||||||
docker-compose up
|
|
||||||
|
|
||||||
# Builds, (re)creates, starts, and dettaches to containers for all services
|
|
||||||
docker-compose up -d
|
|
||||||
|
|
||||||
# Builds, (re)creates, starts, and attaches to containers for a service
|
|
||||||
docker-compose up -d <service_name>
|
|
||||||
|
|
||||||
# Builds, (re)creates, starts, and dettaches to containers for a service
|
|
||||||
docker-compose up -d <service_name>
|
|
||||||
|
|
||||||
# Print the last lines of a service’s logs
|
|
||||||
docker-compose logs --tail 100 <service_name> | less
|
|
||||||
|
|
||||||
# Print the last lines of a service's logs and following its logs
|
|
||||||
docker-compose logs -f --tail 100 <service_name>
|
|
||||||
|
|
||||||
# Stops containers and removes containers, networks created by up
|
|
||||||
docker-compose down
|
|
|
@ -44,3 +44,29 @@ docker network create <network_name>
|
||||||
|
|
||||||
$ image_id: docker images --- --headers 1 --column 3
|
$ image_id: docker images --- --headers 1 --column 3
|
||||||
$ container_id: docker ps --- --headers 1 --column 1
|
$ container_id: docker ps --- --headers 1 --column 1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
% docker-compose, container
|
||||||
|
|
||||||
|
# Builds, (re)creates, starts, and attaches to containers for all services
|
||||||
|
docker-compose up
|
||||||
|
|
||||||
|
# Builds, (re)creates, starts, and dettaches to containers for all services
|
||||||
|
docker-compose up -d
|
||||||
|
|
||||||
|
# Builds, (re)creates, starts, and attaches to containers for a service
|
||||||
|
docker-compose up -d <service_name>
|
||||||
|
|
||||||
|
# Builds, (re)creates, starts, and dettaches to containers for a service
|
||||||
|
docker-compose up -d <service_name>
|
||||||
|
|
||||||
|
# Print the last lines of a service’s logs
|
||||||
|
docker-compose logs --tail 100 <service_name> | less
|
||||||
|
|
||||||
|
# Print the last lines of a service's logs and following its logs
|
||||||
|
docker-compose logs -f --tail 100 <service_name>
|
||||||
|
|
||||||
|
# Stops containers and removes containers, networks created by up
|
||||||
|
docker-compose down
|
|
@ -81,7 +81,7 @@ git fetch origin pull/<pr_number>/head:pr/<pr_number> \
|
||||||
&& git checkout pr/<pr_number>
|
&& git checkout pr/<pr_number>
|
||||||
|
|
||||||
# Add a new module
|
# Add a new module
|
||||||
git submodule add <repository> [<path>]
|
git submodule add <repository> <path>
|
||||||
|
|
||||||
# Update module
|
# Update module
|
||||||
git submodule update --init
|
git submodule update --init
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
% npm, node, js
|
||||||
|
|
||||||
# initial new package
|
# initial new package
|
||||||
npm init
|
npm init
|
||||||
|
|
||||||
|
@ -18,3 +20,20 @@ npm install <package_name> --save-dev
|
||||||
|
|
||||||
# install globally a specified package
|
# install globally a specified package
|
||||||
npm install <package_name> -g
|
npm install <package_name> -g
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
% nvm, node, js
|
||||||
|
|
||||||
|
# install a specified version of node
|
||||||
|
nvm install <version>
|
||||||
|
|
||||||
|
# list available versions
|
||||||
|
nvm ls-remote
|
||||||
|
|
||||||
|
# use installed node's version
|
||||||
|
nvm use <version>
|
||||||
|
|
||||||
|
# set a node's version as default
|
||||||
|
nvm alias default <version>
|
|
@ -1,11 +0,0 @@
|
||||||
# install a specified version of node
|
|
||||||
nvm install <version>
|
|
||||||
|
|
||||||
# list available versions
|
|
||||||
nvm ls-remote
|
|
||||||
|
|
||||||
# use installed node's version
|
|
||||||
nvm use <version>
|
|
||||||
|
|
||||||
# set a node's version as default
|
|
||||||
nvm alias default <version>
|
|
Loading…
Add table
Reference in a new issue