-
-
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.
updating dockerfile to test action branch
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
- Loading branch information
Showing
2 changed files
with
83 additions
and
2 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 |
---|---|---|
@@ -1,3 +1,79 @@ | ||
FROM ghcr.io/syspack/paks-ubuntu-18.04:latest | ||
FROM ubuntu:18.04 | ||
|
||
# docker build -f Dockerfile.ubuntu-18.04 -t ghcr.io/syspack/paks-ubuntu-18.04 . | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
ARG GITHUB_BRANCH=add/action | ||
ENV GITHUB_BRANCH=$GITHUB_BRANCH | ||
ENV TZ=America/Los_Angeles | ||
|
||
RUN apt update -y \ | ||
&& apt install -y \ | ||
autoconf \ | ||
automake \ | ||
build-essential \ | ||
bzip2 \ | ||
clang \ | ||
cpio \ | ||
curl \ | ||
file \ | ||
findutils \ | ||
g++ \ | ||
gcc \ | ||
gettext \ | ||
gfortran \ | ||
git \ | ||
gpg \ | ||
iputils-ping \ | ||
jq \ | ||
libffi-dev \ | ||
libssl-dev \ | ||
libtool \ | ||
libxml2-dev \ | ||
locales \ | ||
locate \ | ||
m4 \ | ||
make \ | ||
mercurial \ | ||
ncurses-dev \ | ||
patch \ | ||
patchelf \ | ||
pciutils \ | ||
python3-pip \ | ||
rsync \ | ||
unzip \ | ||
wget \ | ||
xz-utils \ | ||
zlib1g-dev \ | ||
&& locale-gen en_US.UTF-8 \ | ||
&& apt autoremove --purge \ | ||
&& apt clean \ | ||
&& ln -s /usr/bin/gpg /usr/bin/gpg2 | ||
|
||
RUN python3 -m pip install --upgrade pip setuptools wheel \ | ||
&& python3 -m pip install gnureadline boto3 pyyaml pytz minio requests clingo \ | ||
&& rm -rf ~/.cache | ||
|
||
# Build all software with debug flags! | ||
ENV SPACK_ADD_DEBUG_FLAGS=true | ||
|
||
# Install spack to put on path | ||
RUN git clone https://github.com/spack/spack /opt/spack && \ | ||
/opt/spack/bin/spack compiler find | ||
|
||
ENV PATH=/opt/spack/bin:$PATH \ | ||
NVIDIA_VISIBLE_DEVICES=all \ | ||
NVIDIA_DRIVER_CAPABILITIES=compute,utility \ | ||
LANGUAGE=en_US:en \ | ||
LANG=en_US.UTF-8 | ||
|
||
# Install latest version of Paks | ||
RUN git clone -b ${GITHUB_BRANCH} https://github.com/syspack/paks /opt/paks && \ | ||
cd /opt/paks && \ | ||
python3 -m pip install . | ||
|
||
ENV SPACK_ROOT=/opt/spack | ||
|
||
CMD ["/bin/bash"] | ||
COPY entrypoint.sh /entrypoint.sh | ||
ENTRYPOINT ["/entrypoint.sh"] |
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