-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update docker images, fix 18.04 because of node error with actions/ch…
…eckout@v4
- Loading branch information
Showing
17 changed files
with
160 additions
and
52 deletions.
There are no files selected for viewing
This file contains 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 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,10 +1,12 @@ | ||
FROM ubuntu:18.04 | ||
|
||
# to build, use the script build_and_push.sh, located above | ||
|
||
LABEL org.opencontainers.image.source=https://github.com/biojppm/c4core | ||
LABEL org.opencontainers.image.description="C++ build testing: gcc4.8-gcc11, clang3.9-clang16, arm-eabi-none, swig" | ||
LABEL org.opencontainers.image.licenses=MIT | ||
LABEL [email protected] | ||
LABEL version=1.0 | ||
LABEL version=1.1 | ||
SHELL ["/bin/bash", "-c"] | ||
|
||
RUN apt-get update \ | ||
|
@@ -82,6 +84,7 @@ RUN apt-get install -y \ | |
|
||
# cmany | ||
RUN ( \ | ||
set -xe ; \ | ||
cd /tmp ; \ | ||
git clone --recursive https://github.com/biojppm/cmany -b dev ; \ | ||
pip install cmany \ | ||
|
@@ -92,16 +95,78 @@ RUN ( \ | |
RUN apt-get install -y valgrind \ | ||
&& echo "valgrind done" | ||
|
||
# helper to install compiler versions, etc | ||
ADD c4core-install /usr/bin/c4core-install | ||
|
||
RUN \ | ||
# Standard Cleanup on Debian images | ||
apt-get -y clean \ | ||
&& apt-get -y autoclean \ | ||
&& apt-get -y autoremove \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& rm -rf /var/cache/debconf/*-old \ | ||
&& rm -rf /usr/share/doc/* \ | ||
&& rm -rf /usr/share/man/?? \ | ||
&& rm -rf /usr/share/man/??_* \ | ||
&& echo "cleanup done" | ||
|
||
## actions/checkout@v4 needs a different version of nodejs: | ||
## node 18 and 20 failed with this: | ||
## error:node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by node) | ||
RUN cd /tmp \ | ||
&& git clone --recursive https://github.com/nodejs/node --branch v20.12.1 \ | ||
&& cd node \ | ||
&& /usr/bin/c4core-install g++-10 \ | ||
&& env CXX=g++-10 ./configure \ | ||
&& make -j `nproc` \ | ||
&& make install \ | ||
&& cd .. \ | ||
&& rm -rf node | ||
## actions/checkout@v4 needs a different version of nodejs: | ||
## node 18 and 20 failed with this: | ||
## error:node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by node) | ||
## see https://tecadmin.net/how-to-install-nvm-on-ubuntu-20-04/ | ||
## see https://stackoverflow.com/questions/25899912/how-to-install-nvm-in-docker | ||
## /usr/local/nvm or ~/.nvm , depending | ||
#ENV NVM_DIR /usr/local/nvm | ||
##ENV NVM_DIR ~/.nvm | ||
#ENV NODE_VERSION 20.12.2 | ||
#ENV NODE_PATH $NVM_DIR/versions/node/v$NODE_VERSION/lib/node_modules | ||
#ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH | ||
#SHELL ["/bin/bash", "--login", "-i", "-c"] # https://stackoverflow.com/questions/25899912/how-to-install-nvm-in-docker/60137919#60137919 | ||
#RUN mkdir $NVM_DIR \ | ||
# && curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.35.2/install.sh | bash \ | ||
# && whoami \ | ||
# && echo "NVM_DIR=$NVM_DIR" \ | ||
# && . $NVM_DIR/nvm.sh \ | ||
# && nvm install $NODE_VERSION \ | ||
# && nvm alias default $NODE_VERSION \ | ||
# && nvm use default \ | ||
# # node 20 doesn't work because it requires glib-2.28 | ||
# #&& set -x \ | ||
# #&& which node \ | ||
# #&& `which node` --version \ | ||
# #&& node --version | ||
# | ||
## | ||
## so install glibc-2.28! | ||
## | ||
#RUN echo "glibc-2.28" \ | ||
# && apt install -y gawk \ | ||
# && cd /tmp \ | ||
# && wget -c https://ftp.gnu.org/gnu/glibc/glibc-2.28.tar.gz \ | ||
# && tar -zxf glibc-2.28.tar.gz \ | ||
# && cd glibc-2.28 \ | ||
# && ../configure --prefix=/opt/glibc-2.28 \ | ||
# && make -j `nproc` \ | ||
# && make install \ | ||
# && cd .. \ | ||
# && rm -fr glibc-2.28 glibc-2.28.tar.gz | ||
## | ||
## Patch the installed Node 20 to work with /opt/glibc-2.28 instead: | ||
## | ||
#RUN echo "patching node to use glibc 2.28" \ | ||
# && apt install -y patchelf \ | ||
# && patchelf --set-interpreter \ | ||
# #&& /opt/glibc-2.28/lib/ld-linux-x86_64.so.2 --set-rpath /opt/glibc-2.28/lib/:/lib/aarch64-linux-gnu/:/usr/lib/aarch64-linux-gnu/ /usr/local/bin/node | ||
|
||
|
||
# Standard Cleanup on Debian images | ||
RUN apt-get -y clean \ | ||
&& apt-get -y autoclean \ | ||
&& apt-get -y autoremove \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& rm -rf /var/cache/debconf/*-old \ | ||
&& rm -rf /usr/share/doc/* \ | ||
&& rm -rf /usr/share/man/?? \ | ||
&& rm -rf /usr/share/man/??_* \ | ||
&& echo "cleanup done" |
This file contains 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 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 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 |
---|---|---|
|
@@ -62,7 +62,7 @@ jobs: | |
#- {std: 17, bt: Debug , arch: armv7 , distro: ubuntu20.04} | ||
#- {std: 17, bt: Release, arch: armv7 , distro: ubuntu20.04} | ||
steps: | ||
- {name: checkout, uses: actions/checkout@v4, with: {submodules: recursive}} | ||
- {name: checkout, uses: actions/checkout@v3, with: {submodules: recursive}} | ||
- name: test | ||
uses: uraimo/[email protected] | ||
with: | ||
|
This file contains 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 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 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 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 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 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 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.