Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
FEBioStudio
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
RC Data Science
community-containers
FEBioStudio
Compare revisions
main to main
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
rc-data-science/community-containers/febiostudio
Select target project
No results found
main
Select Git revision
Swap
Target
firiaye/febio_docker
Select target project
rc-data-science/community-containers/febiostudio
firiaye/febio_docker
2 results
main
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (5)
remove tag denoting minimum kernel version for Qt6Core
· edeb12ea
Matthew K Defenderfer
authored
6 months ago
edeb12ea
remove duplicated code and cookies file
· 1c794346
Matthew K Defenderfer
authored
6 months ago
1c794346
update build tagging
· de704ad5
Matthew K Defenderfer
authored
6 months ago
de704ad5
add explanation for strip function
· f88e6fdc
Matthew K Defenderfer
authored
6 months ago
f88e6fdc
fix name
· a8983e2e
Matthew K Defenderfer
authored
6 months ago
a8983e2e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+23
-5
23 additions, 5 deletions
.gitlab-ci.yml
Dockerfile
+9
-4
9 additions, 4 deletions
Dockerfile
with
32 additions
and
9 deletions
.gitlab-ci.yml
View file @
a8983e2e
default
:
before_script
:
-
docker login -u $CI_REGISTRY_USER
-p $CI_REGISTRY_PASSWORD
$CI_REGISTRY
-
echo "$CI_REGISTRY_PASSWORD" |
docker login -u
"
$CI_REGISTRY_USER
" --password-stdin
$CI_REGISTRY
interruptible
:
true
stages
:
...
...
@@ -28,7 +28,22 @@ get-cookie:
-
cookies.txt
expire_in
:
5 minutes
docker-build
:
build-latest
:
stage
:
build
image
:
docker:latest
services
:
-
docker:dind
dependencies
:
-
get-cookie
script
:
-
echo "Building and tagging as latest"
-
docker pull $CI_REGISTRY_IMAGE:latest ||
true
-
docker build --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from $CI_REGISTRY_IMAGE:latest -t $CI_REGISTRY_IMAGE:latest .
-
docker push $CI_REGISTRY_IMAGE:latest
only
:
-
main
build-version
:
stage
:
build
image
:
docker:latest
services
:
...
...
@@ -36,7 +51,10 @@ docker-build:
dependencies
:
-
get-cookie
script
:
-
echo "Building and tagging as $CI_COMMIT_REF_NAME"
-
docker pull $CI_REGISTRY_IMAGE:latest ||
true
-
docker build --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from $CI_REGISTRY_IMAGE:latest --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA --tag $CI_REGISTRY_IMAGE:latest .
-
docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
-
docker push $CI_REGISTRY_IMAGE:latest
-
docker build --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from $CI_REGISTRY_IMAGE:latest -t $CI_REGISTRY_IMAGE:${CI_COMMIT_REF_NAME#v} .
-
docker push $CI_REGISTRY_IMAGE:${CI_COMMIT_REF_NAME#v}
only
:
-
tags
-
/^v\d+\.\d+$/
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Dockerfile
View file @
a8983e2e
...
...
@@ -7,9 +7,11 @@ RUN apt-get update && \
apt-get
install
curl
-y
COPY
cookies.txt /tmp/cookies.txt
RUN
curl
--output
/tmp/febio.zip
-b
/tmp/cookies.txt
"https://febio.org/download/12171/?tmstv=1729879260"
RUN
curl
--output
/tmp/febio.zip
-b
/tmp/cookies.txt
"https://febio.org/download/12171/?tmstv=1729879260"
&&
\
rm
/tmp/cookies.txt
RUN
apt-get
install
-y
\
binutils
\
libgomp1
\
libglu1-mesa
\
libx11-6
\
...
...
@@ -28,9 +30,6 @@ RUN apt-get install -y \
zip
\
&&
rm
-rf
/var/lib/apt/lists
COPY
cookies.txt /tmp/cookies.txt
RUN
curl
--output
/tmp/febio.zip
-b
/tmp/cookies.txt
"https://febio.org/download/12171/?tmstv=1729879260"
RUN
unzip
-p
/tmp/febio.zip
>
/tmp/febio.run
&&
\
chmod
+x /tmp/febio.run
&&
\
rm
/tmp/febio.zip
...
...
@@ -44,4 +43,10 @@ RUN rm /tmp/febio.run && \
ln
-s
/opt/FEBioStudio/bin/FEBioStudio /usr/bin/FEBioStudio
&&
\
ln
-s
/opt/FEBioStudio/bin/febio4 /usr/bin/febio4
# See https://unix.stackexchange.com/a/700599. libQt6Core.so.6 adds a tag that denotes a minimum kernel version required
# to run it and is set to 3.17.0, above Centos7's 3.10.0. This is why the library was never found even within a
# container despite successfully finding other Qt6 libraries. This command removes that tag so Qt6Core will function on
# Linux kernel 3.10.0
RUN
strip
--remove-section
=
.note.ABI-tag /opt/FEBioStudio/lib/libQt6Core.so.6
ENTRYPOINT
["FEBioStudio"]
This diff is collapsed.
Click to expand it.