"no source files found matching:"

2 views
Skip to first unread message

Carl Baribault

unread,
Aug 8, 2025, 3:22:36 PMAug 8
to Singularity Community Edition
I'd appreciate help with syntax, etc., in the following. The cmake directory is in the current working directory.

$singularity --version
singularity-ce version 3.9.0
$

$singularity build --no-cleanup --remote hyphy.sif hyphy.def
INFO:    Starting build...
INFO:    Setting maximum build duration to 1h0m0s
INFO:    Remote "cloud.sylabs.io" added.
INFO:    Access Token Verified!
INFO:    Token stored in /root/.singularity/remote.yaml
INFO:    Remote "cloud.sylabs.io" now in use.
INFO:    Starting build...
Getting image source signatures
Copying blob sha256:32f112e3802cadcab3543160f4d2aa607b3cc1c62140d57b4f5441384f40e927
Copying config sha256:65ae7a6f3544bd2d2b6d19b13bfc64752d776bc92c510f874188bfd404d205a3
Writing manifest to image destination
2025/08/08 19:18:29  info unpack layer: sha256:32f112e3802cadcab3543160f4d2aa607b3cc1c62140d57b4f5441384f40e927
INFO:    Copying cmake to /hyphy/cmake
FATAL:   While performing build: unable to copy files from host to container fs: no source files found matching: cmake
FATAL:   While performing build: build image size <= 0
$cat hyphy.def
Bootstrap: docker
From: ubuntu:24.04
Stage: spython-base

%files
./cmake /hyphy/cmake
./src /hyphy/src
./contrib /hyphy/contrib
./res /hyphy/res
CMakeLists.txt /hyphy
./tests /hyphy/tests
%post

# Install build dependencies
apt-get update && \
apt-get install --no-install-recommends -y build-essential cmake

# Add a non-root user
groupadd -r hyphyuser && useradd -r -g hyphyuser hyphyuser

# Create a directory for the project
mkdir -p /hyphy
cd /hyphy

# Copy project files

chown -R hyphyuser:hyphyuser .

# Install project
cmake . && make -j install

su -  hyphyuser # USER hyphyuser
%runscript
cd /hyphy
exec /bin/bash "$@"
%startscript
cd /hyphy
exec /bin/bash "$@"
$
Reply all
Reply to author
Forward
0 new messages