-
Notifications
You must be signed in to change notification settings - Fork 23
Install all dependencies with APT, reduce verbosity in Makefile build #91
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
00ae064
Install all dependencies with APT
hattne 917bbbc
Reduce verbose output from non-critical commands
hattne d97c2cb
Use all Docker CPU:s by default for CMake
hattne 12b317c
Use UTF-8 locale inside container
hattne 64fefac
Merge branch 'dials:main' into docker-make
hattne File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,29 +1,17 @@ | ||
| FROM ubuntu:24.04 | ||
| SHELL ["/bin/bash", "-c"] | ||
| ENV LANG=C.UTF-8 | ||
|
|
||
| RUN mkdir /app | ||
| COPY ./cbflib /app/cbflib | ||
|
|
||
| RUN apt-get update && \ | ||
| apt-get install -y bison build-essential git wget libjpeg-dev m4 automake libpcre2-dev liblzma-dev rsync gfortran libz-dev | ||
|
|
||
| RUN mkdir -p ~/miniconda3 && \ | ||
| wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh && \ | ||
| bash ~/miniconda3/miniconda.sh -b -u -p /usr/share/miniconda && \ | ||
| rm ~/miniconda3/miniconda.sh | ||
|
|
||
| RUN source /usr/share/miniconda/etc/profile.d/conda.sh && \ | ||
| conda create -y -n build -c conda-forge python=3.11 python-build && \ | ||
| conda create -y -n test -c conda-forge python=3.11 numpy matplotlib | ||
| apt-get install -y bison build-essential git wget libjpeg-dev m4 automake libpcre2-dev liblzma-dev python3-build python3-dev python3-numpy-dev python3-setuptools python3-venv rsync gfortran libz-dev | ||
|
|
||
| RUN cd /app/cbflib && \ | ||
| source /usr/share/miniconda/etc/profile.d/conda.sh && \ | ||
| conda activate build && \ | ||
| make all | ||
|
|
||
| RUN cd /app/cbflib && \ | ||
| source /usr/share/miniconda/etc/profile.d/conda.sh && \ | ||
| conda activate test && \ | ||
| make tests 2>&1 | tee test.out | ||
|
|
||
| RUN ! grep -a ignored /app/cbflib/test.out |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
thank you, maybe my shift key is defective