Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
C Coding Workspace
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • 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
  • Newbies
  • Coding Workspace
  • Wiki
  • Code Workspace

Code Workspace · Changes

Page history
feat: add the coding workspace wiki authored Nov 13, 2020 by Yogesh Hegde's avatar Yogesh Hegde
Hide whitespace changes
Inline Side-by-side
Showing with 80 additions and 0 deletions
+80 -0
  • Code-Workspace.md Code-Workspace.md +80 -0
  • No files found.
Code-Workspace.md 0 → 100644
View page @ 36ded2ed
## Coding Workspace
Coding workspace provides you all the set of tools and dependencies required for coding
at iotiot or shunyaos.
Goal of the workspace is to provide same working environment to all the developers writing code.
### Requirements for coding workspace
1. Vscode
2. Vscode Remote-Development Plugin
3. Docker
See [Installing required Tools for Coding](Installing-Required-Tools), for step by step instructions on how to install these requirements.
### Steps to start Coding Workspace
1. Get the workspace for coding
- Download the ready to use workspace for refactoring - https://gitlab.iotiot.in/newbies/coding-workspace/-/archive/master/coding-workspace-master.zip
- Unzip the `coding-workspace-master.zip`
- Open VScode.
- Press `Ctrl` + `Shift` + `p` in VScode. A bar will open up at the top.
- Search for `Remote-Containers`
![001](uploads/640bc439529f7edde17e5a655e3e9896/001.png)
- Click on "Remote-Containers: Open Folder in Containers".
- In the pop up Window, Navigate to Downloads --> coding-workspace-master folder
![002](uploads/26a8a2db75e2c50bb5426926c8306a8c/002.png)
- Click on Open.
- Vscode will take some time to start up the container, once done
- Open up terminal by Pressing `Ctrl` + `j`.
![Screenshot_2020-11-06_at_9.50.03_PM](uploads/425fae721811e51d5338af68d923a3ad/Screenshot_2020-11-06_at_9.50.03_PM.png)
- That is it done you have successfully opened up the workspace. Now you can follow the regular git workflow.
2. Clone the repository.
```sh
git clone {repository-url}
```
3. Make changes to the code
- Your code files will be visible in the left had section in vscode.
- Click on the file to start editing the file.
- To Save you can press `Ctrl` + `s`
4. Submit the changes.
- Open up terminal by Pressing `Ctrl` + `j`.
- Run commands
```sh
git config --global user.name "{Your-name}"
#(for ex: `git config --global user.name "Yogesh Hegde"`)
git config --global user.email "{your-email-id}"
#(for ex: `git config --global user.email "yogesh@iotiot.in"`)
git add .
git commit -m "made XXX changes"
git push
```
![Screenshot_2020-11-06_at_9.54.48_PM](uploads/ae2497be230891dce22b6e5c5cadb81c/Screenshot_2020-11-06_at_9.54.48_PM.png)
5. See your code Build, Test and Deploy via CI/CD.
- Go to the repository that you have cloned, CI/CD --> Pipelines.
![Screenshot_2020-11-06_at_9.55.16_PM](uploads/71ac8633043b7367b2dcaf02340070c7/Screenshot_2020-11-06_at_9.55.16_PM.png)
- You can see Build, Test and Deploy devOps stages passing.
![Screenshot_2020-11-06_at_9.55.36_PM](uploads/433059ebc2a1c24d8862f32feaf7a5f7/Screenshot_2020-11-06_at_9.55.36_PM.png)
- Click on the `passed/failed` to see all the individual stage summary.
![Screenshot_2020-11-06_at_9.55.52_PM](uploads/3f116a33c2c1377421783b1ebb6f0bd9/Screenshot_2020-11-06_at_9.55.52_PM.png)
Clone repository
  • Code Workspace
  • Installing Required Tools
  • Home
  • install tools ubuntu 16.04
  • install tools windows