Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
D docker-containers
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Public
  • docker-containers
  • Wiki
  • code style container

code style container · Changes

Page history
feat: add instructions for WSL and Ubuntu authored Oct 31, 2020 by Yogesh Hegde's avatar Yogesh Hegde
Show whitespace changes
Inline Side-by-side
Showing with 17 additions and 29 deletions
+17 -29
  • code-style-container.md code-style-container.md +17 -29
  • No files found.
code-style-container.md
View page @ a939a481
...@@ -3,33 +3,21 @@ ...@@ -3,33 +3,21 @@
The guide will help you to check your code's coding style and find issues with the code that generally compiler does not show. The guide will help you to check your code's coding style and find issues with the code that generally compiler does not show.
1. Installing docker. Open up a new Terminal by pressing `Ctrl` + `Alt` + `t` 1. Download ready made docker-containers for the module - https://gitlab.iotiot.in/newbies/pre-office-office/docker-containers/-/archive/master/docker-containers-master.zip
```sh 2. Unzip the docker-containers-master.zip
sudo apt update ![remote-containers](upload/15.png)
sudo apt install git 3. Open Up VScode.
git clone https://gitlab.iotiot.in/newbies/pre-office-office/docker-containers.git 4. Press `Ctrl` + `Shift` + `p` in VScode. A bar will open up at the top.
cd docker-containers 5. Search for `Remote-Containers`
sudo install-docker-ubuntu-16.04.sh ![remote-containers](upload/16.png)
``` 6. Click on "Remote-Containers: Open Folder in Containers".
- **Note:** The script will automatically install and **reboot** your system. 7. In the pop up Window, Navigate to Downloads --> docker-containers-master --> code-style-container.
- **Note:** These steps only work on Ubuntu 16.04 OS. Any other OS will cause an error. ![open-folder](upload/17.png)
8. Vscode will take some time to start up the container, once done the window will look like this below
- After the system reboots, Open up a new Terminal by pressing `Ctrl` + `Alt` + `t`. ![vscode-container](upload/18.png)
- Run command `sudo docker --version` to verify that docker is successfully installed. 9. To open up terminal you can Press `Ctrl` + `j`.
```sh ![vscode-terminal](upload/19.png)
# The output should be a docker version 10. Clone the project repository
$ sudo docker --version
Docker version 19.03.13, build 4484c46d9d
```
2. Start docker container by running command, in the same terminal
```sh
cd docker-containers/coding-style-container
sudo ./start
```
3. You will get a new Terminal prompt,
![terminal](upload/Selection_018.png)
4. Clone the project repository
```sh ```sh
git clone {your-project-repo} git clone {your-project-repo}
cd {your-project-name} cd {your-project-name}
...@@ -40,12 +28,12 @@ The guide will help you to check your code's coding style and find issues with t ...@@ -40,12 +28,12 @@ The guide will help you to check your code's coding style and find issues with t
cd devops-trial cd devops-trial
``` ```
5. Check for vulnerabilities using **flawfinder**, run command 11. Check for vulnerabilities using **flawfinder**, run command
```sh ```sh
flawfinder {folder-which-contains-your-code} flawfinder {folder-which-contains-your-code}
``` ```
6. Check for MISRA C/CPP violations, run commands 12. Check for MISRA C/CPP violations, run commands
```sh ```sh
cppcheck cppcheck --dump --quiet {folder-which-contains-your-code}/* cppcheck cppcheck --dump --quiet {folder-which-contains-your-code}/*
python3 /usr/share/cppcheck/addons/misra.py {folder-which-contains-your-code}/*.dump python3 /usr/share/cppcheck/addons/misra.py {folder-which-contains-your-code}/*.dump
......
Clone repository
  • Installing tools
  • Readme doc format
  • code refactoring
  • code style container
  • day0
  • devops practical
  • docusaurus
  • Home
  • install on mac
  • install tools ubuntu 16.04
  • install tools windows