{"id":20566162,"url":"https://github.com/aces/datalad-wrappers","last_synced_at":"2025-03-06T08:46:48.703Z","repository":{"id":139175218,"uuid":"341904739","full_name":"aces/datalad-wrappers","owner":"aces","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-31T16:26:34.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-01-16T20:18:47.758Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aces.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-24T13:11:11.000Z","updated_at":"2024-07-31T16:26:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"707117c4-7366-42d4-8e0a-a63cd02b61a6","html_url":"https://github.com/aces/datalad-wrappers","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aces%2Fdatalad-wrappers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aces%2Fdatalad-wrappers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aces%2Fdatalad-wrappers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aces%2Fdatalad-wrappers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aces","download_url":"https://codeload.github.com/aces/datalad-wrappers/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242179256,"owners_count":20084940,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T04:40:17.704Z","updated_at":"2025-03-06T08:46:48.673Z","avatar_url":"https://github.com/aces.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# datalad-wrappers (also, with EBRAINS support)\n\n## Plain Datalad (without EBRAINS)\n\nThis repository contains:\n\n* a `Dockerfile` for building a Ubuntu container with datalad and git-annex\n* an _Apptainer definition file_ `ubuntu.def` for building a similar container with Apptainer\n* a bash wrapper script named `datalad` that can act as the datalad command or the git-annex command through the Apptainer container\n\nRight now, (Feb 2021) the Apptainer container created with the\ndefinition file results in a container with **datalad 0.11** while\nthe container created with the Dockerfile has **datalad 0.12** . I\nam not sure how to adjust the definition file in order to get 0.12.\nSuggestions welcome.\n\n## Datalad with EBRAINS\n\nThe folder 'ebrains' contains basically the same things as the top\nlevel directory, but with the necessary code to build a container\nthat also support the special EBRAINS module for datalad. The\ndockerfile in there use a more recent Linux distribution, AlmaLinux.\nSee the README.md in there for more information.\n\n## Building the image with Docker\n\n```shell\ncd this_repo\ndocker build .\ndocker tag dalatad:ubuntu22  # or whatever tag you prefer\n```\n\nThe docker image will need to be given a name, which you can do\nwith the 'docker tag' command.  See the docker manual for more\ninformation.\n\n## Building the image with Apptainer\n\n```shell\napptainer build datalad.sif ubuntu.def\n```\n\n## Building the apptainer image from the Docker image\n\nAn alternative way to create the apptainer image directly is\nto build it from the local docker image created above.\n\n```shell\n# Given you tagged the Docker build as 'datalad:ubuntu22' as show above...\napptainer build datalad.sif docker-daemon://datalad:ubuntu22\n```\n\n## How to use the wrappers\n\nThis repo contains a bash script called simply 'datalad'. It is a\nwrapper that will act as the datalad command provided that the\napptainer image `datalad.sif` (created by one of the two steps\nabove) is installed at an appropriate location. The script will try\nto find `datalad.sif` using the environment variable DATALAD_SIF,\nor failing that under the exact same directory where the script\nitself is installed. It's up to you to decide which of these two\nways you prefer to deploy the command.\n\nThe script can be used to invoke ANY command inside the apptainer\ncontainer, not just datalad. The name of the script itself will be\nthe command that is invoked inside the container. So you can install\nthe script several time with several names in order to access as\nmany commands as you want from the container. An example of that\nis provided here by having a symbolic link to it created under the\nname \"git-annex\", which means we can invoke the git-annex command\nfrom the container.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faces%2Fdatalad-wrappers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faces%2Fdatalad-wrappers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faces%2Fdatalad-wrappers/lists"}