Skip to content

Commit

Permalink
Part of Bears-R-Us#3957: simplify offline builds (Bears-R-Us#3944) (B…
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpotts authored Jan 15, 2025
1 parent a3aa4c3 commit abc2731
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 7 deletions.
25 changes: 25 additions & 0 deletions docker/almalinux-chapel/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM almalinux:9.0

# Set user to root
USER root

# Set up environment variables
COPY bashrc.chpl /root/
RUN echo 'source ~/.bashrc.chpl' >> ~/.bashrc && mv /root/bashrc.chpl /root/.bashrc.chpl >> ~/.bashrc.chpl

# Install dependencies
RUN dnf update -y && dnf install -y ca-certificates wget python3-pip && dnf update -y && dnf -y upgrade
RUN dnf install -y gcc gcc-c++ m4 perl python3.12 python3-devel bash make gawk git cmake which diffutils llvm-devel clang clang-devel libcurl-devel

# Download Chapel source
RUN wget https://github.com/chapel-lang/chapel/releases/download/2.3.0/chapel-2.3.0.tar.gz && tar -xvf chapel-2.3.0.tar.gz

# Install Chapel
RUN source ~/.bashrc && cd $CHPL_HOME && make && chpl --version

# install chapel-py
RUN source ~/.bashrc && cd $CHPL_HOME && make chapel-py-venv

WORKDIR /root

ENTRYPOINT ["/bin/bash", "-l"]
10 changes: 10 additions & 0 deletions docker/almalinux-chapel/bashrc.chpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export CHPL_HOME=/chapel-2.3.0
export CHPL_RE2=bundled
export CHPL_GMP=bundled
export CHPL_COMM=none
export CHPL_TARGET_COMPILER=gnu
export export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/chapel-2.3.0:/chapel-2.3.0/bin/linux64-x86_64
export CHPL_TARGET_CPU=native
export CHPL_HOST_MEM=jemalloc
export ARKOUDA_QUICK_COMPILE=true
export ARKOUDA_SKIP_CHECK_DEPS=True
8 changes: 6 additions & 2 deletions docker/almalinux-with-arkouda-deps/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
FROM ajpotts/almalinux-chapel:1.0.0
FROM ajpotts/almalinux-chapel:1.0.1

# Set user to root
USER root


RUN git clone https://github.com/Bears-R-Us/arkouda.git && source ~/.bashrc && cd arkouda && make install-deps DEP_BUILD_DIR=/dep/build && python3 -m pip install -e .[dev]
# Download all the dependencies necessary for make install-deps
RUN git clone https://github.com/Bears-R-Us/arkouda.git && source ~/.bashrc && cd arkouda && make install-deps DEP_BUILD_DIR=/dep/build

# Download all the python packages necessary for the pip install
COPY requirements.txt /root/
RUN mkdir /root/pip_deps && cd /root/pip_deps && python3 -m pip download -r /root/requirements.txt

ENTRYPOINT ["/bin/bash", "-l"]
38 changes: 38 additions & 0 deletions docker/almalinux-with-arkouda-deps/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
numpy>=1.24.1,<2.0
pandas>=1.4.0,!=2.2.0
pyzmq>=20.0.0
typeguard==2.10.0
tabulate
pyfiglet
versioneer
matplotlib>=3.3.2
h5py>=3.7.0
types-tabulate
pyarrow
jupyter
scipy<=1.13.1
pytest>=6.0
pytest-env
pexpect
Sphinx>=5.1.1
sphinx-argparse
sphinx-autoapi
sphinx-design
sphinx-autodoc-typehints
sphinx-autopackagesummary
furo
myst-parser
linkify-it-py
typed-ast
flake8
mypy>=0.931
black
isort
pytest-json-report
pytest-benchmark
mathjax
pandas-stubs
types-python-dateutil
blosc2>=2.3.0
numexpr>=2.6.2
tables>=3.8.0
2 changes: 1 addition & 1 deletion docker/build_almalinux_with_arkouda_deps.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

echo "This script is intended to be run from the arkouda project directory."

VERSION=1.0.0
VERSION=1.0.1
IMAGE_NAME=almalinux-with-arkouda-deps
REPO_NAME=ajpotts

Expand Down
10 changes: 6 additions & 4 deletions docker/build_push_almalinux.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/bash

VERSION=1.0.0
VERSION=1.0.1
IMAGE_NAME=almalinux-chapel
REPO_NAME=ajpotts

docker build -t almalinux-chapel:$VERSION almalinux/
docker tag almalinux-chapel:$VERSION ajpotts/almalinux-chapel:$VERSION
docker push ajpotts/almalinux-chapel:$VERSION
docker build -t $IMAGE_NAME:$VERSION docker/$IMAGE_NAME/
#docker tag $IMAGE_NAME:$VERSION $REPO_NAME/$IMAGE_NAME:$VERSION
#docker push $REPO_NAME/$IMAGE_NAME:$VERSION

0 comments on commit abc2731

Please sign in to comment.