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

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

Open
jthuraisamy opened this issue Dec 5, 2022 · 0 comments
Open

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

jthuraisamy opened this issue Dec 5, 2022 · 0 comments

Comments

@jthuraisamy
Copy link

jthuraisamy commented Dec 5, 2022

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 = [email protected]:insperatum/pregex.git
6c6
<       url = https://github.com/insperatum/pinn.git
---
>       url = [email protected]: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
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

No branches or pull requests

1 participant