Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hpc-compendium
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ZIH
hpcsupport
hpc-compendium
Commits
d0334340
Commit
d0334340
authored
2 years ago
by
Martin Schroschk
Browse files
Options
Downloads
Patches
Plain Diff
Add git lfs to container and check for lfs files explicitly
parent
fc6f5359
No related branches found
Branches containing commit
No related tags found
2 merge requests
!679
Automated merge from preview to main
,
!658
ignore-file-size-gitlfs
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+1
-1
1 addition, 1 deletion
Dockerfile
doc.zih.tu-dresden.de/util/check-filesize.sh
+5
-1
5 additions, 1 deletion
doc.zih.tu-dresden.de/util/check-filesize.sh
with
6 additions
and
2 deletions
Dockerfile
+
1
−
1
View file @
d0334340
...
@@ -12,7 +12,7 @@ RUN pip install mkdocs>=1.1.2 mkdocs-material>=7.1.0 mkdocs-htmlproofer-plugin==
...
@@ -12,7 +12,7 @@ RUN pip install mkdocs>=1.1.2 mkdocs-material>=7.1.0 mkdocs-htmlproofer-plugin==
# Linter #
# Linter #
##########
##########
RUN
apt-get update
&&
apt-get
install
-y
nodejs npm aspell git
RUN
apt-get update
&&
apt-get
install
-y
nodejs npm aspell git
git-lfs
RUN
npm
install
-g
markdownlint-cli markdown-link-check
RUN
npm
install
-g
markdownlint-cli markdown-link-check
...
...
This diff is collapsed.
Click to expand it.
doc.zih.tu-dresden.de/util/check-filesize.sh
+
5
−
1
View file @
d0334340
...
@@ -35,11 +35,15 @@ large_files_present=false
...
@@ -35,11 +35,15 @@ large_files_present=false
branch
=
"origin/
${
CI_MERGE_REQUEST_TARGET_BRANCH_NAME
:-
preview
}
"
branch
=
"origin/
${
CI_MERGE_REQUEST_TARGET_BRANCH_NAME
:-
preview
}
"
source_hash
=
`
git merge-base HEAD
"
$branch
"
`
source_hash
=
`
git merge-base HEAD
"
$branch
"
`
lfsfiles
=
$(
git lfs ls-files
-n
)
for
f
in
$(
git diff
$source_hash
--name-only
)
;
do
for
f
in
$(
git diff
$source_hash
--name-only
)
;
do
# Do not check size of git lfs files.
# Do not check size of git lfs files.
# This is a bit "Going around your elbow to get to your ear" by assuming that lfs files are
# This is a bit "Going around your elbow to get to your ear" by assuming that lfs files are
# ending with webm or mp4
# ending with webm or mp4
if
[[
"
$f
"
=
~ .
*
".webm"
]]
||
[[
"
$f
"
=
~ .
*
".mp4"
]]
;
then
#if [[ "$f" =~ .*".webm" ]] || [[ "$f" =~ .*".mp4" ]] ; then
echo
$f
if
[[
$lfsfiles
=
~
"
$f
"
]]
;
then
echo
"Skip file
${
f
}
in webm or mp4 format cause it is a git lfs file."
echo
"Skip file
${
f
}
in webm or mp4 format cause it is a git lfs file."
continue
continue
fi
fi
...
...
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