generated from EVerest/everest-template
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Andreas Heinrich <[email protected]>
- Loading branch information
Showing
8 changed files
with
165 additions
and
207 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,12 @@ jobs: | |
name: Build and push all docker images | ||
strategy: | ||
matrix: | ||
image_name: [everest-clang-format] | ||
image_name: | ||
- everest-clang-format | ||
- run-env-base | ||
- build-env-base | ||
- dev-env-base | ||
- build-kit | ||
uses: everest/everest-ci/.github/workflows/[email protected] | ||
with: | ||
force_rebuild: ${{ inputs.force_rebuild || (github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/' )) || false }} | ||
|
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 |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# syntax=docker/dockerfile:1 | ||
# LTODO: pin version | ||
FROM ghcr.io/everest/run-env-base:latest | ||
|
||
RUN apt update \ | ||
&& apt install --no-install-recommends -y \ | ||
# basic command line tools | ||
git=1:2.39.2-1.1 \ | ||
curl=7.88.1-10+deb12u5 \ | ||
rsync=3.2.7-1 \ | ||
# build tools | ||
ninja-build=1.11.1-1 \ | ||
make=4.3-4.1 \ | ||
cmake=3.25.1-1 \ | ||
# compilers | ||
binutils=2.40-2 \ | ||
gcc=4:12.2.0-3 \ | ||
g++=4:12.2.0-3 \ | ||
# compiler tools | ||
ccache=4.8+really4.7.5-1 \ | ||
# LTODO not used but required | ||
lcov=1.16-1 | ||
|
||
# additional packages | ||
RUN apt update \ | ||
&& apt install --no-install-recommends -y \ | ||
# required by some everest libraries | ||
libboost-all-dev=1.74.0.3 \ | ||
# required by libocpp | ||
libsqlite3-dev=3.40.1-2 \ | ||
libssl-dev=3.0.11-1~deb12u2 \ | ||
# required by everest-framework | ||
libnode-dev=18.19.0+dfsg-6~deb12u1 \ | ||
# required by packet sniffer module | ||
pkg-config=1.8.1-1 \ | ||
libpcap-dev=1.10.3-1 \ | ||
libcap-dev=1:2.66-4 \ | ||
# LTODO: move to build-env-everest-core | ||
# required by RiseV2G | ||
maven=3.8.7-1 \ | ||
# LTODO only everest-core | ||
python3-build=0.9.0-1 \ | ||
|
||
# Install Python packages | ||
RUN apt update \ | ||
&& apt install --no-install-recommends -y \ | ||
python3-venv=3.11.2-1+b1 \ | ||
python3-pydantic=1.10.4-1 \ | ||
python3-psutil=5.9.4-1+b1 \ | ||
python3-cryptography=38.0.4-3 \ | ||
python3-netifaces=0.11.0-2+b1 \ | ||
python3-dateutil=2.8.2-2 | ||
|
||
RUN apt clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Install additional Python packages | ||
RUN python3 -m pip install --break-system-packages \ | ||
environs==11.0.0 \ | ||
aiofile==3.8.8 \ | ||
py4j==0.10.9.7 \ | ||
gcovr==7.2 | ||
|
||
# Install EVerest dependency manager | ||
ARG EDM_VERSION=v0.5.5 | ||
RUN python3 -m pip install --break-system-packages \ | ||
git+https://github.com/EVerest/everest-dev-environment@${EDM_VERSION}#subdirectory=dependency_manager | ||
|
||
# Install everest-cmake | ||
ARG EVEREST_CMAKE_PATH=/usr/lib/cmake/everest-cmake | ||
ARG EVEREST_CMAKE_VERSION=v0.4.2 | ||
RUN git clone https://github.com/EVerest/everest-cmake.git ${EVEREST_CMAKE_PATH} \ | ||
&& cd ${EVEREST_CMAKE_PATH} \ | ||
&& git checkout ${EVEREST_CMAKE_VERSION} \ | ||
&& rm -r .git |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# syntax=docker/dockerfile:1 | ||
# LTODO: pin version | ||
FROM ghcr.io/everest/everest-ci/build-env-base:refactor/clean-up-docker-images | ||
|
||
|
||
ENV WORKSPACE_PATH=/workspace | ||
ENV ASSETS_PATH=/assets | ||
ARG EXT_MOUNT=/ext | ||
ENV EXT_MOUNT=$EXT_MOUNT | ||
|
||
RUN mkdir $ASSETS_PATH | ||
COPY maven-settings.xml $ASSETS_PATH/ | ||
|
||
COPY ./entrypoint.sh / | ||
|
||
# LTODO: why is this needed? | ||
# Disable ownership checks | ||
RUN git config --global --add safe.directory '*' | ||
|
||
WORKDIR $WORKSPACE_PATH | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] | ||
CMD ["run-script", "init"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# syntax=docker/dockerfile:1 | ||
# LTODO: pin version | ||
FROM ghcr.io/everest/everest-ci/build-env-base:refactor-docker-images | ||
|
||
ARG USERNAME=docker | ||
ARG USER_UID=1000 | ||
RUN useradd -ms /bin/bash -u ${USER_UID} -U ${USERNAME} | ||
# Extend the timeout | ||
RUN mkdir -p /etc/apt/apt.conf.d/ \ | ||
&& echo 'Acquire::http::Timeout "100";' >> /etc/apt/apt.conf.d/99stahp_stahping \ | ||
&& echo 'Acquire::ftp::Timeout "100";' >> /etc/apt/apt.conf.d/99stahp_stahping \ | ||
&& echo 'Acquire::Retries "10";' >> /etc/apt/apt.conf.d/99stahp_stahping | ||
RUN apt update \ | ||
&& apt install --no-install-recommends -y sudo \ | ||
&& echo ${USERNAME} ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/${USERNAME} \ | ||
&& chmod 0440 /etc/sudoers.d/${USERNAME} | ||
|
||
RUN apt update \ | ||
&& apt install --no-install-recommends -y \ | ||
wget=1.21.3-1+b2 \ | ||
doxygen=1.9.4-4 \ | ||
graphviz=2.42.2-7+b3 \ | ||
build-essential=12.9 \ | ||
clang-format-15=1:15.0.6-4+b1 \ | ||
clang-tidy-15=1:15.0.6-4+b1 \ | ||
cppcheck=2.10-2 | ||
|
||
RUN apt clean \ | ||
&& rm -rf /var&lib/apt/lists/* | ||
|
||
RUN ln -s /usr/bin/clang-format-15 /usr/bin/clang-format \ | ||
&& ln -s /usr/bin/clang-tidy-15 /usr/bin/clang-tidy | ||
|
||
USER ${USERNAME} | ||
|
||
RUN mkdir ~/.ssh \ | ||
&& ssh-keyscan github.com > ~/.ssh/known_hosts | ||
|
||
ENV PATH="/home/$USERNAME/.local/bin:$PATH" | ||
ENV CPM_SOURCE_CACHE="/home/$USERNAME/.cache/CPM" |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# syntax=docker/dockerfile:1 | ||
FROM debian:12-slim | ||
|
||
RUN apt update \ | ||
&& apt install --no-install-recommends -y \ | ||
openjdk-17-jre=17.0.11+9-1~deb12u1 \ | ||
nodejs=18.19.0+dfsg-6~deb12u1 \ | ||
npm=9.2.0~ds1-1 \ | ||
python3-pip=23.0.1+dfsg-1 \ | ||
sqlite3=3.40.1-2 \ | ||
libboost-program-options1.74.0=1.74.0+ds1-21 \ | ||
libboost-log1.74.0=1.74.0+ds1-21 \ | ||
libboost-chrono1.74.0=1.74.0+ds1-21 \ | ||
libboost-system1.74.0=1.74.0+ds1-21 \ | ||
libssl3=3.0.11-1~deb12u2 \ | ||
libcurl4=7.88.1-10+deb12u5 \ | ||
libcap2=1:2.66-4 \ | ||
less=590-2.1~deb12u2 \ | ||
&& apt clean \ | ||
&& rm -rf /var/lib/apt/lists/* |