Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Dockerfiles for container image that includes a (working) fuse-overlayfs #40

Merged
merged 3 commits into from
Jan 4, 2021

Conversation

boegel
Copy link
Contributor

@boegel boegel commented Nov 20, 2020

Resulting container images are available through Docker Hub, see https://hub.docker.com/r/eessi/fuse-overlay/tags

To use:

# create temporary directory
export EESSI_TMPDIR=/tmp/$USER
mkdir -p $EESSI_TMPDIR

# create scratch dirs for $HOME, overlayfs and CVMFS
mkdir -p $EESSI_TMPDIR/{home,overlay-upper,overlay-work}
mkdir -p $EESSI_TMPDIR/{var-lib-cvmfs,var-run-cvmfs}

# specify Singularity configuration
export SINGULARITY_HOME="$EESSI_TMPDIR/home:/home/$USER"
export SINGULARITY_BIND="$EESSI_TMPDIR/var-run-cvmfs:/var/run/cvmfs,$EESSI_TMPDIR/var-lib-cvmfs:/var/lib/cvmfs"
export SINGULARITY_CACHEDIR=$EESSI_TMPDIR/singularity_cache

# values to pass to --fusemount in singularity command
export EESSI_CONFIG="container:cvmfs2 cvmfs-config.eessi-hpc.org /cvmfs/cvmfs-config.eessi-hpc.org"
export EESSI_PILOT_READONLY="container:cvmfs2 pilot.eessi-hpc.org /cvmfs_ro/pilot.eessi-hpc.org"
export EESSI_PILOT_WRITABLE_OVERLAY="container:fuse-overlayfs -o lowerdir=/cvmfs_ro/pilot.eessi-hpc.org -o upperdir=$EESSI_TMPDIR/overlay-upper -o workdir=$EESSI_TMPDIR/overlay-work /cvmfs/pilot.eessi-hpc.org"

# start shell in container
singularity shell --fusemount "$EESSI_CONFIG" --fusemount "$EESSI_PILOT_READONLY" --fusemount "$EESSI_PILOT_WRITABLE_OVERLAY" docker://eessi/fuse-overlay:debian10-$(uname -m)

Dockerfile.fuse-overlay-debian10-aarch64 Outdated Show resolved Hide resolved
Dockerfile.fuse-overlay-debian10-aarch64 Outdated Show resolved Hide resolved
boegel and others added 2 commits January 4, 2021 14:38
Co-authored-by: Bob Dröge <b.e.droge@rug.nl>
Co-authored-by: Bob Dröge <b.e.droge@rug.nl>
@boegel
Copy link
Contributor Author

boegel commented Jan 4, 2021

I should probably update the README too, or the docs, with instructions how to use these containers...

@bedroge
Copy link
Collaborator

bedroge commented Jan 4, 2021

That can probably be part of some software build manual (cleaned up version of your notes/document)? I'll merge this for now, and we can add docs later / in a separate PR.

@bedroge bedroge merged commit e51bbcd into EESSI:master Jan 4, 2021
@boegel boegel deleted the fuse_overlayfs_containers branch January 4, 2021 13:51
Neves-P added a commit to Neves-P/software-layer that referenced this pull request Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants