Skip to content

Running with Singularity (as of Dec. 2022) #108

Description

@jthuraisamy

This might be useful for anyone that wants to get the project running with Singularity.

This was tested on a fresh install of Ubuntu Server 22.04.1 LTS in VirtualBox.

  1. Download and install SingularityCE.
user@host:~$ wget https://github.com/sylabs/singularity/releases/download/v3.10.4/singularity-ce_3.10.4-jammy_amd64.deb
user@host:~$ sudo apt install runc
user@host:~$ sudo dpkg -i singularity-ce_3.10.4-jammy_amd64.deb
  1. Clone this repo.
user@host:~$ git clone https://github.com/ellisk42/ec.git
user@host:~$ cd ec/
  1. Make changes below:
  • Use HTTP sources for submodules in .gitmodules.
3c3
<       url = https://github.com/insperatum/pregex.git
---
>       url = git@github.com:insperatum/pregex.git
6c6
<       url = https://github.com/insperatum/pinn.git
---
>       url = git@github.com:insperatum/pinn.git
  • Downgrade MaxHalford/vose in singularity to use the latest version of numpy that supports Python 3.7.
41c41
<     pip install git+https://github.com/MaxHalford/vose
---
>     pip install git+https://github.com/MaxHalford/vose@fae179e5afa45f224204519c10957d087633ae60
  1. Download submodules and build Singularity container.
user@host:~/ec$ git submodule update --recursive --init
user@host:~/ec$ sudo singularity build container.img singularity
user@host:~/ec$ ./container.img
  1. Run example.
Singularity> python bin/text.py -t 20 -RS 5000

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions