Skip to content
Snippets Groups Projects
Commit 17c80249 authored by Eric Müller's avatar Eric Müller :mountain_bicyclist:
Browse files

Add gocryptfs (package for F9, build-from-source for ASIC)

Change-Id: I2e221481ac5e13df8e05c53b0f3bb3d65eb4bfa1
parent 73605e9f
No related branches found
No related tags found
No related merge requests found
...@@ -81,6 +81,9 @@ From: ${DOCKER_BASE_IMAGE} ...@@ -81,6 +81,9 @@ From: ${DOCKER_BASE_IMAGE}
# ECM: and now some abspacking # ECM: and now some abspacking
yum -y install ccache sudo parallel yum -y install ccache sudo parallel
# ECM: and userspace mount stuff
yum -y install fuse3
# create a fingerprint by which we can identify the container from within # create a fingerprint by which we can identify the container from within
cat /proc/sys/kernel/random/uuid > /opt/fingerprint cat /proc/sys/kernel/random/uuid > /opt/fingerprint
...@@ -99,7 +102,10 @@ From: ${DOCKER_BASE_IMAGE} ...@@ -99,7 +102,10 @@ From: ${DOCKER_BASE_IMAGE}
export CONTAINER_STYLE="${CONTAINER_STYLE}" export CONTAINER_STYLE="${CONTAINER_STYLE}"
"${SPACK_INSTALL_SCRIPTS}/complete_spack_install_routine_called_in_post_as_root.sh" "${SPACK_INSTALL_SCRIPTS}/complete_spack_install_routine_called_in_post_as_root.sh"
wait wait
"${SPACK_INSTALL_SCRIPTS}/install_singularity_as_root.sh" || \ (
"${SPACK_INSTALL_SCRIPTS}/install_singularity_as_root.sh" && \
"${SPACK_INSTALL_SCRIPTS}/install_gocryptfs_as_root.sh"
) || \
( (
sudo -Eu spack "${SPACK_INSTALL_SCRIPTS}/preserve_built_spack_packages.sh" && sudo -Eu spack "${SPACK_INSTALL_SCRIPTS}/preserve_built_spack_packages.sh" &&
exit 1 # propagate the error exit 1 # propagate the error
...@@ -118,8 +124,8 @@ From: ${DOCKER_BASE_IMAGE} ...@@ -118,8 +124,8 @@ From: ${DOCKER_BASE_IMAGE}
unset LC_COLLATE LC_CTYPE LC_MONETARY LC_NUMERIC LC_TIME LC_MESSAGES LC_ALL unset LC_COLLATE LC_CTYPE LC_MONETARY LC_NUMERIC LC_TIME LC_MESSAGES LC_ALL
fi fi
# python now from conda... # python now from conda... and gopath/bin (gocryptfs)
PATH=/opt/conda/bin:${PATH} PATH=/opt/conda/bin:/opt/go/gopath/bin:${PATH}
# ensure conda sees a clean env # ensure conda sees a clean env
unset PYTHONHOME unset PYTHONHOME
EOF EOF
......
#!/bin/bash -lx
# Install gocryptfs from source; needed for older base images such as Cent OS 7
# (ASIC container image)
set -euo pipefail
shopt -s inherit_errexit 2>/dev/null || true
sourcedir="$(dirname "$(readlink -m "${BASH_SOURCE[0]}")")"
source "${sourcedir}/commons.sh"
source "${sourcedir}/setup_env_spack.sh"
GOCRYPTFS_REPO="https://github.com/rfjakob/gocryptfs.git"
# go assumed to be provided via install_singularity_as_root.sh; repeat variables
GO_INSTALL_PATH=/opt/go
# setup environment
export PATH="${GO_INSTALL_PATH}/go/bin${PATH:+:${PATH}}"
export GOPATH="${GO_INSTALL_PATH}/gopath"
# build gocryptfs
# this is a go 1.11-based install flow which probably should be adjusted for
# modern go (no need to build from source within the gopath folder anymore)
GOCRYPTFS_INSTALL_PATH="${SPACK_TMPDIR}/gocryptfs"
git clone "${GOCRYPTFS_REPO}" "${GOCRYPTFS_INSTALL_PATH}"
pushd "${GOCRYPTFS_INSTALL_PATH}"
# build and install
./build.bash
popd
...@@ -19,6 +19,7 @@ system_dependencies=( ...@@ -19,6 +19,7 @@ system_dependencies=(
"g++-aarch64-linux-gnu" "g++-aarch64-linux-gnu"
"gcc-aarch64-linux-gnu" "gcc-aarch64-linux-gnu"
"gfortran-aarch64-linux-gnu" "gfortran-aarch64-linux-gnu"
"gocryptfs"
"htop" "htop"
"iproute2" "iproute2"
"iptables" "iptables"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment