summaryrefslogtreecommitdiffstats
path: root/build/buildah.sh
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@ipecompute2.ands.kit.edu>2020-11-09 20:16:44 +0100
committerSuren A. Chilingaryan <csa@ipecompute2.ands.kit.edu>2020-11-09 20:16:44 +0100
commit28190b6d4664508ad8b1cf88a82378b02f487cfa (patch)
tree8bb6f21b9feb1013f67a4c1a147c95c4ff976fc4 /build/buildah.sh
parent8fb3c0a3f96024786305a1234fe5cfb70e6f00c0 (diff)
downloadccpi-28190b6d4664508ad8b1cf88a82378b02f487cfa.tar.gz
ccpi-28190b6d4664508ad8b1cf88a82378b02f487cfa.tar.bz2
ccpi-28190b6d4664508ad8b1cf88a82378b02f487cfa.tar.xz
ccpi-28190b6d4664508ad8b1cf88a82378b02f487cfa.zip
Support ssh server for remote debugging
Diffstat (limited to 'build/buildah.sh')
-rw-r--r--build/buildah.sh34
1 files changed, 2 insertions, 32 deletions
diff --git a/build/buildah.sh b/build/buildah.sh
index 45ee576..2f4f283 100644
--- a/build/buildah.sh
+++ b/build/buildah.sh
@@ -1,34 +1,4 @@
-#! /usr/bin/env bash
-
set -o errexit
-#container=$(buildah from nvidia/cuda:10.1-base-ubuntu18.04)
-container=$(buildah from nvidia/cuda:10.1-devel-ubuntu18.04)
-
-buildah config --label maintainer="Suren A. Chilingaryan <csa@suren.me>" $container
-buildah config --env LANG="C.UTF-8" --env LC_ALL="C.UTF-8" --env TERM="xterm" --env CIL_VERSION=19.10 --env HOME=/ccpi/data $container
-
-buildah run $container sh -c 'echo "ssh:x:101:" >> /etc/group'
-buildah run $container sh -c 'echo "messagebus:x:102:" >> /etc/group'
-buildah run $container sh -c 'echo "rdma:x:103:" >> /etc/group'
-buildah run $container sh -c 'echo "messagebus:x:101:102:messagebus:/dev/null:/sbin/nologin" >> /etc/passwd'
-
-buildah run $container sh -c 'apt-get update --fix-missing && apt-get install -y bash wget bzip2 mc ca-certificates git'
-buildah run $container sh -c 'apt-get install -y python3 python3-setuptools python3-pip cython3'
-buildah run $container sh -c 'apt-get install -y cmake autoconf automake libtool libboost-all-dev'
-
-buildah run $container sh -c 'update-alternatives --remove python /usr/bin/python2'
-buildah run $container sh -c 'update-alternatives --install /usr/bin/python python /usr/bin/python3 10'
-
-buildah copy $container pre-setup /root/pre-setup
-buildah run $container pip3 install -r /root/pre-setup/requirements.txt
-
-buildah copy $container setup /root/setup
-buildah run $container bash /root/setup/repos.sh
-
-buildah commit --format docker $container ccpi:latest
-
-
-
-echo $container
-
+bash buildah-astra.sh
+bash buildah-ccpi.sh