Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
course-material
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IT1901
course-material
Commits
6ff040e8
Commit
6ff040e8
authored
1 year ago
by
George Adrian Stoica
Browse files
Options
Downloads
Patches
Plain Diff
edit: update slides for lecture 8
parent
c0b222ca
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#232944
passed
1 year ago
Stage: build
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lectures/revealjs/08-eclipse-che.adoc
+105
-0
105 additions, 0 deletions
lectures/revealjs/08-eclipse-che.adoc
lectures/revealjs/08-git-special-files.adoc
+96
-0
96 additions, 0 deletions
lectures/revealjs/08-git-special-files.adoc
with
201 additions
and
0 deletions
lectures/revealjs/08-eclipse-che.adoc
0 → 100644
+
105
−
0
View file @
6ff040e8
= CDEs / Eclipse Che
:customcss: slides.css
:icons: font
:includedir: includes/
:LECTURE_TOPIC: CDEs / Eclipse Che
:LECTURE_NO: 8th Lecture
include::{includedir}header.adoc[]
[.smaller-80][.center-paragraph]
IT1901 Fall 2023 - {LECTURE_NO}
[background-color = "#124990"]
[color = "#fff6d5"]
== Overview
[.smaller-80]
- Administrative issues
- CDEs
- Eclipse Che
- Git - Special Files
- Summary
== Group work
- 1st group assignment - deadline - 21.09.2023 18:00
- Eclipse Che requirement is replaced
- Need to have documentation that indicates the java and maven versions needed
[background-color = "#124990"]
[color = "#fff6d5"]
== Cloud Cevelopment Environments (CDEs)
== CDEs
- aim is to have a browser as sole requirement
- click a link to open the project
- automated git setup
- the entire development environment is preconfigured
- everyone runs the same environment (works on any machine)
- improved collaboration and onboarding
== CDEs (2)
- Gitpod
- Codespaces
- Eclipse Che
- etc
- the main idea is having a preconfigured container running on a cloud infrastructure
== CDEs (3)
- we tradeoff control
- we are dependent of network access
- save time (Gitpod claims it saves 5h/week/dev)
- less developers work on their environment setting skills
- limited somewhat by the browser view
== Eclipse Che
- open source - Eclipse Foundation
- available online hosted by RedHat
- can be self hosted on Kubernetes
- we will use it in IT1901
** test in deliverable 2
** obligatory for deliverable 3
== Eclipse Che IT1901
[.smaller-80]
- https://che.stud.ntnu.no
- current limitations
** container UI needs to be started manually
** UI might lock (screensaver) - we need to unlock using terminal commands
** every user is limited to 1 running workspace
** stoping a workspace loses changes (you should always push your changes before closing)
== Eclipse Che IT1901
[.smaller-80]
- setting up Gitlab access
** in Che -> User Preferences -> Personal Access Tokens
** Add token
** if you do not have a token - generate one in Gitlab
- opening a project in Che
** using a link - https://che.stud.ntnu.no/#https://gitlab.stud.idi.ntnu.no/project_path?new
** using the dashboard in Che
== Eclipse Che configuration
- devfile.yaml or .devfile.yaml in the root of the repo
- https://eclipse.dev/che/docs/stable/end-user-guide/devfile-introduction/
[background-color = "#124990"]
[color = "#fff6d5"]
== Demo
include::{includedir}footer.adoc[]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
lectures/revealjs/08-git-special-files.adoc
0 → 100644
+
96
−
0
View file @
6ff040e8
= Git Special Files
:customcss: slides.css
:icons: font
:includedir: includes/
:LECTURE_TOPIC: Git Special Files
:LECTURE_NO: 8th Lecture
include::{includedir}header.adoc[]
[.smaller-80][.center-paragraph]
IT1901 Fall 2023 - {LECTURE_NO}
[background-color = "#124990"]
[color = "#fff6d5"]
== Git Special Files
== Overview
- .gitignore
- .mailmap
- .gitkeep
- .gitattributes
== .gitignore
- configure files to ignore
- https://git-scm.com/docs/gitignore
- https://gitignore.io
== .mailmap
- map author / committer names and emails
- https://git-scm.com/docs/gitmailmap
== .mailmap
```
# Hallvard
Hallvard Trætteberg <hal@ntnu.no> Hallvard Trætteberg <hal@ntnu.no>
Hallvard Trætteberg <hal@ntnu.no> Hallvard Traetteberg <hal@ntnu.no>
Hallvard Trætteberg <hal@ntnu.no> hal <hal@ntnu.no>
# Adrian
George Adrian Stoica <stoica@ntnu.no> George Adrian Stoica <stoica@ntnu.no>
George Adrian Stoica <stoica@ntnu.no> Adrian Stoica <stoica@ntnu.no>
```
== .gitkeep
- keep in the repository empty folders
- git keeps track of folders that have files
- not really a git special file
- widely used convention
- typically we remove the file when we add other files to the folder
== .gitattributes
- https://www.git-scm.com/docs/gitattributes
- control git attributes per path
- for example configure how EOL is handled
== .gitattributes
```
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto
# Set linux endings for . files
.bashrc text eol=lf
.xinitrc text eol=lf
# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
*.c text
*.h text
# Declare files that will always have CRLF line endings on checkout.
*.sln text eol=crlf
# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary
```
[smaller-40]
https://docs.github.com/en/get-started/getting-started-with-git/configuring-git-to-handle-line-endings
[background-color = "#124990"]
[color = "#fff6d5"]
== Summary
include::{includedir}footer.adoc[]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment