-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from peterbull/arm
misc updates for running locally on ARM
- Loading branch information
Showing
11 changed files
with
4,044 additions
and
8,173 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,45 +1,53 @@ | ||
FROM apache/airflow:2.8.1 | ||
|
||
# Install additional dependencies for ECCODES | ||
|
||
|
||
USER root | ||
RUN mkdir -p /etc/apt/keyrings | ||
RUN curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor -o /etc/apt/keyrings/microsoft.gpg | ||
RUN curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor -o /etc/apt/keyrings/postgresql.gpg | ||
RUN curl -fsSL https://mariadb.org/mariadb_release_signing_key.asc | gpg --dearmor -o /etc/apt/keyrings/mariadb.gpg | ||
|
||
# Install additional dependencies for ECCODES | ||
RUN apt-get update --fix-missing && apt-get install -y libpq-dev gcc g++ wget \ | ||
libnetcdff-dev libopenjp2-7-dev gfortran make unzip git cmake \ | ||
&& mkdir /root/source_builds \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
libnetcdff-dev libopenjp2-7-dev gfortran make unzip git cmake \ | ||
libgdal-dev gdal-bin \ | ||
&& mkdir /root/source_builds \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /root | ||
RUN mkdir -p source_builds/eccodes/build && mkdir -p /usr/src/eccodes | ||
|
||
# Get ECCodes package | ||
WORKDIR /root/source_builds/eccodes | ||
RUN wget https://confluence.ecmwf.int/download/attachments/45757960/eccodes-2.31.0-Source.tar.gz?api=v2 && \ | ||
tar -xzf eccodes-2.31.0-Source.tar.gz?api=v2 && \ | ||
rm eccodes-2.31.0-Source.tar.gz?api=v2 | ||
tar -xzf eccodes-2.31.0-Source.tar.gz?api=v2 && \ | ||
rm eccodes-2.31.0-Source.tar.gz?api=v2 | ||
|
||
# Build ECCodes from source | ||
WORKDIR /root/source_builds/eccodes/build | ||
RUN cmake -DCMAKE_INSTALL_PREFIX=/usr/src/eccodes -DENABLE_JPG=ON ../eccodes-2.31.0-Source && \ | ||
make && \ | ||
ctest && \ | ||
make install && cp -r /usr/src/eccodes/bin/* /usr/bin | ||
make && \ | ||
ctest && \ | ||
make install && cp -r /usr/src/eccodes/bin/* /usr/bin | ||
|
||
# Export ECCodes Paths | ||
ENV ECCODES_DIR=/usr/src/eccodes | ||
ENV ECCODES_DEFINITION_PATH=/usr/src/eccodes/share/eccodes/definitions | ||
|
||
RUN cp $ECCODES_DIR/lib/libeccodes.so /usr/lib && \ | ||
cp /usr/src/eccodes/include/* /usr/include/ | ||
cp /usr/src/eccodes/include/* /usr/include/ | ||
|
||
# Install and check for correct install with pthyon | ||
RUN apt-get update && apt-get install -y python3-pip && \ | ||
pip3 install eccodes-python && \ | ||
python3 -m eccodes selfcheck | ||
pip3 install eccodes-python && \ | ||
python3 -m eccodes selfcheck | ||
|
||
# Install additional dependencies for project | ||
|
||
USER airflow | ||
WORKDIR /home/airflow | ||
|
||
COPY airflow/requirements.txt . | ||
RUN pip install -r requirements.txt | ||
RUN pip install -r requirements.txt |
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 @@ | ||
3.11.0 |
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
Large diffs are not rendered by default.
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
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.