-
Notifications
You must be signed in to change notification settings - Fork 35
Update CI to use Docker #1329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Update CI to use Docker #1329
Conversation
rbanka1
commented
May 23, 2025
- Updated reusable_basic.yml and reusable_fast.yml to use Docker images.
- Added install_oneAPI.sh to support image setup.
@rbanka1 please rebase |
- Updated reusable_basic.yml and reusable_fast.yml to use Docker images. - Added install_oneAPI.sh to support image setup.
wget https://github.com/Kitware/CMake/releases/download/v${{matrix.cmake_ver}}/cmake-${{matrix.cmake_ver}}-Linux-x86_64.sh | ||
chmod +x cmake-${{matrix.cmake_ver}}-Linux-x86_64.sh | ||
sudo ./cmake-${{matrix.cmake_ver}}-Linux-x86_64.sh --skip-license --prefix=/usr/local | ||
echo ${USERPASS} | sudo -Sk ./cmake-${{matrix.cmake_ver}}-Linux-x86_64.sh --skip-license --prefix=/usr/local |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you not using root under the container?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to avoid security issue, @lukaszstolarczuk suggested me this solution
.github/workflows/reusable_basic.yml
Outdated
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/bb-ur/umf-${{ matrix.os }}:latest | ||
options: --privileged |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean: options: --user root
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, test_user is default container user I set it on Dockerfile, it is non-root user to avoid security issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So give me an explanation why using root user is worse than --priviledged
or why not to avoid both of them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed the image options