Skip to content

Commit

Permalink
added a "core" distro (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
denisri committed Nov 22, 2021
1 parent 12c0323 commit 292aa49
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 8 deletions.
2 changes: 1 addition & 1 deletion python/casa_distro/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def main(meant_for_container=False):
# don't allow command options after a non-kw argument, so that
# the remaining is passed as positional arguments and may be used
# as part of a sub-command. ex:
# casa_distro run bash -c 'name=brainvisa-opensource printenv name'
# casa_distro run bash -c 'name=brainvisa-core printenv name'
# will run the command
allows_kwargs = False
try:
Expand Down
5 changes: 3 additions & 2 deletions python/casa_distro/configuration_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -935,8 +935,9 @@ def __init__(self, conf, parent=None):
'base casa-distro directory, if the casa_distro command is '
'used to manage several environments.')),
('distro', traits.Str(
'opensource', desc='Projects set name. Normally "opensource", '
'"brainvisa", "cea", "web". Other sets may be defined. '
'core', desc='Projects set name. Normally "core", '
'"opensource", "brainvisa", "cea", "web". Other sets may be '
'defined. '
'Changing it after the initial setup has no effect.')),
('system', traits.Str(
'', desc='Name of the Linux system running inside the '
Expand Down
8 changes: 4 additions & 4 deletions python/casa_distro/container_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def setup_user(setup_dir='/casa/setup', rw_install=False, distro=None,
'variables, mount points in the virtual image, etc.')


def setup_dev(setup_dir='/casa/setup', distro='opensource', branch='master',
def setup_dev(setup_dir='/casa/setup', distro='core', branch='master',
system=None, image_version=None, image=None, name=None):
if not system:
system = os.getenv('CASA_SYSTEM')
Expand Down Expand Up @@ -424,13 +424,13 @@ def setup_dev(setup_dir='/casa/setup', distro='opensource', branch='master',
There are two situations, which we could simplify as this:
* opensource distro: if you are only using open-source projects, you can
use the public credentials:
* core distro: if you are only using projects without source restrictions,
you can use the public credentials:
Username: brainvisa
Password: Soma2009
* brainvisa and other non-totally opensource distros: they need a
* brainvisa and other distros containing pivate source code: they need a
personal login and password.
Expand Down
2 changes: 1 addition & 1 deletion python/casa_distro/singularity.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def create_image(base, base_metadata,
echo "mv \"$SINGULARITY_CONTAINER\" ~/casa_distro/"
echo 'cd ~/casa_distro'
echo "singularity run -B ./brainvisa-master:/casa/setup \\\\"
echo " $SINGULARITY_NAME distro=opensource"
echo " $SINGULARITY_NAME distro=core"
echo
echo 'If you have already setup such an environment, you should'
echo 'run the image using appropriate options, mount points, and'
Expand Down
5 changes: 5 additions & 0 deletions share/distro/core/casa_distro.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"casa_distro_compatibility": "3.0",
"name": "core",
"description": "This distro contains the open source core software of BrainVISA suite (non-applicative)."
}
13 changes: 13 additions & 0 deletions share/distro/core/conf/bv_maker.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[ source $CASA_SRC ]
brainvisa core $CASA_BRANCH

[ build $CASA_BUILD ]
default_steps = configure build doc
make_options = -j$NCPU
build_type = Release
packaging_thirdparty = OFF
clean_config = ON
clean_build = ON
test_ref_data_dir = $CASA_TESTS/ref
test_run_data_dir = $CASA_TESTS/test
brainvisa core $CASA_BRANCH $CASA_SRC

0 comments on commit 292aa49

Please sign in to comment.