Skip to content
Permalink
Browse files

[DATALAD RUNCMD] git-sedi Niceman ReproMan

=== Do not change lines below ===
{
 "chain": [],
 "cmd": "git-sedi Niceman ReproMan",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [],
 "pwd": "."
}
^^^ Do not change lines above ^^^
  • Loading branch information...
yarikoptic committed Jan 17, 2019
1 parent e2972f0 commit 3114032f2722372dc986c193af49ca87c866eddc
@@ -5,7 +5,7 @@ From:repronim/simple_workflow:latest
%runscript
echo "Welcome to the ReproMan development environment."
echo "Reprozip pre-installed via pip. "
echo "Niceman git repo under /opt/reproman and installed for development systemwide"
echo "ReproMan git repo under /opt/reproman and installed for development systemwide"
/bin/bash

%post
@@ -163,7 +163,7 @@ def _init_apt_sources(self, session,
# Create a new apt sources file if needed.
if sources and not session.exists(apt_source_file):
session.execute_command(
"sh -c 'echo \"# Niceman repo sources\" > {}'"
"sh -c 'echo \"# ReproMan repo sources\" > {}'"
.format(apt_source_file))

for source in sources:
@@ -67,7 +67,7 @@ def container_call(cmd):
calls = [
call(base_url='tcp://127.0.0.1:2375'),
call().exec_create(cmd=['bash', '-c', 'test -e /etc/apt/sources.list.d/reproman.sources.list && echo Found'], container={'Id': '326b0fdfbf838', 'State': 'running', 'Names': ['/my-resource']}),
call().exec_create(cmd='sh -c \'echo "# Niceman repo sources" > /etc/apt/sources.list.d/reproman.sources.list\'', container={'Id': '326b0fdfbf838', 'State': 'running', 'Names': ['/my-resource']}),
call().exec_create(cmd='sh -c \'echo "# ReproMan repo sources" > /etc/apt/sources.list.d/reproman.sources.list\'', container={'Id': '326b0fdfbf838', 'State': 'running', 'Names': ['/my-resource']}),
call().exec_create(cmd="grep -q 'deb http://snapshot.debian.org/archive/debian/20170531T084046Z/ sid main contrib non-free' /etc/apt/sources.list.d/reproman.sources.list", container={'Id': '326b0fdfbf838', 'State': 'running', 'Names': ['/my-resource']}),
call().exec_create(cmd="grep -q 'deb http://snapshot.debian.org/archive/debian/20171208T032012Z/ sid main contrib non-free' /etc/apt/sources.list.d/reproman.sources.list", container={'Id': '326b0fdfbf838', 'State': 'running', 'Names': ['/my-resource']}),
call().exec_create(cmd="grep -q 'deb http://snapshot-neuro.debian.net:5002/archive/neurodebian/20171208T032012Z/ xenial main contrib non-free' /etc/apt/sources.list.d/reproman.sources.list", container={'Id': '326b0fdfbf838', 'State': 'running', 'Names': ['/my-resource']}),
@@ -214,7 +214,7 @@ class PTYSingularitySession(SingularitySession):
def open(self):
lgr.debug("Opening TTY connection to singularity container.")
cmdline = ['singularity', 'shell', 'instance://' + self.name]
# TODO: Until we work out how the Niceman session interactive prompt is
# TODO: Until we work out how the ReproMan session interactive prompt is
# going to work, we are returning to the OS command prompt when the
# resource login shell closes. The following line will change after the
# session management code is developed.

0 comments on commit 3114032

Please sign in to comment.
You can’t perform that action at this time.