forked from bregman-arie/devops-resources
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
abregman
committed
Jul 25, 2021
1 parent
907312c
commit 90a50c5
Showing
9 changed files
with
99 additions
and
70 deletions.
There are no files selected for viewing
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,36 @@ | ||
## Tools | ||
## Containers | ||
|
||
Name | Description | ||
:------|:------: | ||
[dive](https://github.com/wagoodman/dive) | "A tool for exploring a docker image, layer content, ..." | ||
[trivy](https://github.com/aquasecurity/trivy) | "A Simple and Comprehensive Vulnerability Scanner for Containers and other Artifacts, Suitable for CI." | ||
### Articles | ||
|
||
## Docker - Resources | ||
Name | Comments | ||
:------ |:--------: | ||
[Docker CheatSheet](https://cheatsheet.dennyzhang.com/cheatsheet-docker-a4) | | ||
[Everything you need to know about containers](https://medium.com/faun/everything-you-need-to-know-about-containers-7655badb4307) | | ||
[A container networking overview](https://jvns.ca/blog/2016/12/22/container-networking) | | ||
[My Docker Cheat Sheet](https://medium.com/statuscode/dockercheatsheet-9730ce03630d) | | ||
[Docker Networking Deep Dive](http://100daysofdevops.com/21-days-of-docker-day-19-docker-networking-deep-dive/?fbclid=IwAR19KJWwhZjulbn7JNbBYLFxKFf-x0v25TSc-_bOJ6YieUND4A6UZcBSUhA) | | ||
|
||
Name | Description | ||
:------|:------: | ||
[Docker Compose](https://docs.docker.com/compose/overview) | Multi-container applications | ||
|
||
## Docker - Checklist | ||
#### Dockerfile | ||
|
||
- [ ] **Images** | ||
- [ ] tag | ||
- [ ] `docker images` command | ||
|
||
- [ ] **Running containers** | ||
- [ ] `docker run` command | ||
- [ ] `-ti` arguments for interactive terminal | ||
|
||
- [ ] **List containers** | ||
- [ ] `docker ps` command | ||
- [ ] `-a` argument for stopped | ||
- [ ] `-l` argument for last stopped | ||
### Projects | ||
|
||
- [ ] **Commit changes** | ||
- [ ] `docker commit` command | ||
- [ ] `docker tag` command | ||
Name | Comments | ||
:------ |:--------: | ||
[awesome-docker](https://github.com/veggiemonk/awesome-docker) | | ||
|
||
## Nomad - Resources | ||
|
||
Name | Description | ||
:------|:------: | ||
[Official Introduction](https://www.nomadproject.io/intro/index.html) | Great place for beginners to start learning about Nomad | ||
#### Cheatsheet | ||
|
||
## Nomad - Commands | ||
* Stop and remove all containers: `docker container stop $(docker container ls -aq)` | ||
* Run container with bash shell: `docker run -ti ubuntu:latest bash` | ||
* Check how many containers are running: `docker info` | ||
* Cleanup everything: `docker system prune -a -f` | ||
|
||
Run Nomad agent in development mode (don't use in production): | ||
### Tools | ||
|
||
sudo nomad agent -dev | ||
|
||
See registered Nomad cluster nodes: | ||
|
||
nomad node status | ||
|
||
View members of the gossip ring (used to connect all instances together): | ||
|
||
nomad server members | ||
Name | Description | ||
:------|:------: | ||
[dive](https://github.com/wagoodman/dive) | "A tool for exploring a docker image, layer content, ..." | ||
[trivy](https://github.com/aquasecurity/trivy) | "A Simple and Comprehensive Vulnerability Scanner for Containers and other Artifacts, Suitable for CI." |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +0,0 @@ | ||
# Docker | ||
|
||
## Articles | ||
|
||
Name | Comments | ||
:------ |:--------: | ||
[Docker CheatSheet](https://cheatsheet.dennyzhang.com/cheatsheet-docker-a4) | | ||
[Everything you need to know about containers](https://medium.com/faun/everything-you-need-to-know-about-containers-7655badb4307) | | ||
[A container networking overview](https://jvns.ca/blog/2016/12/22/container-networking) | | ||
[My Docker Cheat Sheet](https://medium.com/statuscode/dockercheatsheet-9730ce03630d) | | ||
[Docker Networking Deep Dive](http://100daysofdevops.com/21-days-of-docker-day-19-docker-networking-deep-dive/?fbclid=IwAR19KJWwhZjulbn7JNbBYLFxKFf-x0v25TSc-_bOJ6YieUND4A6UZcBSUhA) | | ||
|
||
## Projects | ||
|
||
Name | Comments | ||
:------ |:--------: | ||
[awesome-docker](https://github.com/veggiemonk/awesome-docker) | | ||
|
||
|
||
### Cheatsheet | ||
|
||
* Stop and remove all containers: `docker container stop $(docker container ls -aq)` | ||
* Run container with bash shell: `docker run -ti ubuntu:latest bash` | ||
* Check how many containers are running: `docker info` | ||
* Cleanup everything: `docker system prune -a -f` | ||
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
## OpenShift | ||
|
||
### Learn OpenShift | ||
|
||
Name | Comments | ||
:------ |:--------: | ||
[Learn OpenShift](https://learn.openshift.com) | Interactive way to learn OpenShift | ||
|
||
### CheatSheet | ||
|
||
* Login: `oc login -u my_user -p my_password` | ||
|
||
#### Project | ||
|
||
* Highlevel overview of the project: `oc status` | ||
* Create a new project: `oc new-project my_project` | ||
* List projects: `oc get projects` | ||
|
||
#### User | ||
|
||
* The username of the user currently logged in: `oc whoami` | ||
* The OpenShift server currently used: `oc whoami --show-server` | ||
|
||
#### Pods | ||
|
||
* List pods: `oc get po` | ||
* List pods with with node info: `oc get po -o wide` | ||
|
||
#### Deployments | ||
|
||
* List deployments: `oc get deployments` | ||
|
||
#### Service Accounts | ||
|
||
* List service accounts: `oc get serviceaccounts` | ||
|
||
#### Misc | ||
|
||
* Login: `oc login --token=<TOKEN> --server=https://<ADDRESS>:<PORT>` |