Skip to content

Commit

Permalink
Merge pull request #382 from indigo-dc/dev-v1.3.6
Browse files Browse the repository at this point in the history
Dev v1.3.6
  • Loading branch information
jorge-lip authored Jan 19, 2023
2 parents b7e4da7 + 6ed27fd commit f4dc310
Show file tree
Hide file tree
Showing 80 changed files with 504 additions and 703 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## udocker (1.3.6)

* re-implement udocker namespace solves #380
* login fails all the time solves #379
* Ignore image loading if already exists solves #378

## udocker (1.3.5)

* fix python backwards compatibility issues
Expand Down
4 changes: 2 additions & 2 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"@type": "SoftwareSourceCode",
"identifier": "udocker",
"name": "udocker",
"version": "1.3.5",
"version": "1.3.6",
"description": "A basic user tool to execute simple docker containers in batch or interactive systems without root privileges",
"license": "Apache Software License 2.0, OSI Approved :: Apache Software License",
"author": [
Expand Down Expand Up @@ -42,7 +42,7 @@
"url": "https://github.com/indigo-dc/udocker",
"keywords": "Linux containers,HPC on cloud,Virtualization",
"developmentStatus": "5 - Production/Stable",
"programmingLanguage": "Python 2, Python 2.6, Python 2.7, Python 3, Python 3.6, Python 3.7, Python 3.8, Python 3.9, Python 3.10, Python 3.11",
"programmingLanguage": "Python 2, Python 2.7, Python 3, Python 3.6, Python 3.7, Python 3.8, Python 3.9, Python 3.10, Python 3.11",
"applicationCategory": "System, Utilities",
"codeRepository": "https://github.com/indigo-dc/udocker",
"releaseNotes": "https://github.com/indigo-dc/udocker/blob/master/changelog",
Expand Down
25 changes: 12 additions & 13 deletions docs/installation_manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ shipped with udocker. For more information see
The udocker dependencies are minimal and should be supported by most Linux installations.
udocker requires:

* Python 3 or alternatively Python >= 2.6
* Python 3 or alternatively Python >= 2.7
* pycurl or alternatively the curl command
* python hashlib or alternatively the openssl command
* tar
Expand All @@ -32,18 +32,18 @@ udocker requires:
Download a release tarball from <https://github.com/indigo-dc/udocker/releases>:

```bash
wget https://github.com/indigo-dc/udocker/releases/download/1.3.5/udocker-1.3.5.tar.gz
tar zxvf udocker-1.3.5.tar.gz
export PATH=`pwd`/udocker:$PATH
wget https://github.com/indigo-dc/udocker/releases/download/1.3.6/udocker-1.3.6.tar.gz
tar zxvf udocker-1.3.6.tar.gz
export PATH=`pwd`/udocker-1.3.6/udocker:$PATH
```

Alternatively use `curl` instead of `wget` as follows:

```bash
curl -L https://github.com/indigo-dc/udocker/releases/download/1.3.5/udocker-1.3.5.tar.gz \
> udocker-1.3.5.tar.gz
tar zxvf udocker-1.3.5.tar.gz
export PATH=`pwd`/udocker:$PATH
curl -L https://github.com/indigo-dc/udocker/releases/download/1.3.6/udocker-1.3.6.tar.gz \
> udocker-1.3.6.tar.gz
tar zxvf udocker-1.3.6.tar.gz
export PATH=`pwd`/udocker-1.3.6/udocker:$PATH
```

udocker executes containers using external tools and libraries that
Expand All @@ -66,10 +66,10 @@ git clone --depth=1 https://github.com/indigo-dc/udocker.git
export PATH=`pwd`/udocker/udocker:$PATH
```

Alternatively, install the latest development code from the github `devel3` branch:
Alternatively, install the latest development code from the github `dev-v1.4` branch:

```bash
git clone -b devel3 --depth=1 https://github.com/indigo-dc/udocker.git
git clone -b dev-v1.4 --depth=1 https://github.com/indigo-dc/udocker.git
(cd udocker/udocker; ln -s maincmd.py udocker)
export PATH=`pwd`/udocker/udocker:$PATH
```
Expand Down Expand Up @@ -345,8 +345,8 @@ The udocker tool should be installed as shown in section 2.1:

```bash
cd /sw
wget https://github.com/indigo-dc/udocker/releases/download/1.3.5/udocker-1.3.5.tar.gz
tar zxvf udocker-1.3.5.tar.gz
wget https://github.com/indigo-dc/udocker/releases/download/1.3.6/udocker-1.3.6.tar.gz
tar zxvf udocker-1.3.6.tar.gz
```

Directing users to the central udocker installation can be done using the
Expand Down Expand Up @@ -637,4 +637,3 @@ Other tests configured in `tox.ini`, can be executed as well, such as linting
pylint --rcfile=pylintrc --disable=R,C udocker
bandit -r udocker -f html -o bandit.html
```

4 changes: 2 additions & 2 deletions docs/make_release.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

* Verify that the version is updated.
* Update the `CHANGELOG.md`.
* Prepare a PR and check jenkins pipeline are ok, then approve

* build python binary dist to upload to test pypi:

```bash
Expand All @@ -23,8 +25,6 @@ pip install udocker
udocker version
```

* Prepare a PR and check jenkins pipeline are ok, then approve

* Make an independent tarball of udocker

```bash
Expand Down
12 changes: 1 addition & 11 deletions tests/unit/test_chksum.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,12 @@
udocker unit tests: ChkSUM
"""

import os
import sys

new_path = []
new_path.append(os.path.dirname(os.path.realpath(__file__)) + "/../..")
new_path.append(os.path.dirname(os.path.realpath(__file__)) + "/../../udocker")
new_path.extend(sys.path)
sys.path = new_path

from unittest import TestCase, main
from unittest.mock import patch

from udocker.utils.chksum import ChkSUM
import collections
collections.Callable = collections.abc.Callable

collections.Callable = collections.abc.Callable
BUILTINS = "builtins"


Expand Down
11 changes: 1 addition & 10 deletions tests/unit/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,14 @@
udocker unit tests: UdockerCLI
"""

import os
import sys

new_path = []
new_path.append(os.path.dirname(os.path.realpath(__file__)) + "/../..")
new_path.append(os.path.dirname(os.path.realpath(__file__)) + "/../../udocker")
new_path.extend(sys.path)
sys.path = new_path

from unittest import TestCase, main
from unittest.mock import Mock, patch
from udocker.config import Config
from udocker.cmdparser import CmdParser
from udocker.cli import UdockerCLI
import collections
collections.Callable = collections.abc.Callable

collections.Callable = collections.abc.Callable
BUILTIN = "builtins"
BOPEN = BUILTIN + '.open'

Expand Down
10 changes: 1 addition & 9 deletions tests/unit/test_cmdparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,10 @@
udocker unit tests: CmdParser
"""

import os
import sys

new_path = []
new_path.append(os.path.dirname(os.path.realpath(__file__)) + "/../..")
new_path.append(os.path.dirname(os.path.realpath(__file__)) + "/../../udocker")
new_path.extend(sys.path)
sys.path = new_path

from unittest import TestCase, main
from udocker.cmdparser import CmdParser
import collections

collections.Callable = collections.abc.Callable


Expand Down
10 changes: 1 addition & 9 deletions tests/unit/test_commonlocalfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,11 @@
udocker unit tests: CommonLocalFileApi
"""

import os
import sys

new_path = []
new_path.append(os.path.dirname(os.path.realpath(__file__)) + "/../..")
new_path.append(os.path.dirname(os.path.realpath(__file__)) + "/../../udocker")
new_path.extend(sys.path)
sys.path = new_path

from unittest import TestCase, main
from unittest.mock import Mock, patch
from udocker.commonlocalfile import CommonLocalFileApi
import collections

collections.Callable = collections.abc.Callable


Expand Down
12 changes: 1 addition & 11 deletions tests/unit/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,12 @@
udocker unit tests: Config
"""


import os
import sys

new_path = []
new_path.append(os.path.dirname(os.path.realpath(__file__)) + "/../..")
new_path.append(os.path.dirname(os.path.realpath(__file__)) + "/../../udocker")
new_path.extend(sys.path)
sys.path = new_path

from unittest import TestCase, main
from unittest.mock import patch
from udocker.config import Config
import collections
collections.Callable = collections.abc.Callable

collections.Callable = collections.abc.Callable
BUILTINS = "builtins"


Expand Down
17 changes: 4 additions & 13 deletions tests/unit/test_containerstructure.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,12 @@
udocker unit tests: ContainerStructure
"""

import os
import sys

new_path = []
new_path.append(os.path.dirname(os.path.realpath(__file__)) + "/../..")
new_path.append(os.path.dirname(os.path.realpath(__file__)) + "/../../udocker")
new_path.extend(sys.path)
sys.path = new_path

from unittest import TestCase, main
from unittest.mock import patch, Mock
from udocker.container.structure import ContainerStructure
from config import Config
from udocker.config import Config
import collections

collections.Callable = collections.abc.Callable


Expand All @@ -29,9 +21,8 @@ def setUp(self):
Config().getconf()
Config().conf['hostauth_list'] = ("/etc/passwd", "/etc/group")
Config().conf['cmd'] = "/bin/bash"
Config().conf['cpu_affinity_exec_tools'] = \
(["numactl", "-C", "%s", "--", ],
["taskset", "-c", "%s", ])
Config().conf['cpu_affinity_exec_tools'] = (["numactl", "-C", "%s", "--", ],
["taskset", "-c", "%s", ])
Config().conf['valid_host_env'] = "HOME"
Config().conf['username'] = "user"
Config().conf['userhome'] = "/"
Expand Down
15 changes: 3 additions & 12 deletions tests/unit/test_curl.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,17 @@
udocker unit tests: CurlHeader
"""

import os
import sys

new_path = []
new_path.append(os.path.dirname(os.path.realpath(__file__)) + "/../..")
new_path.append(os.path.dirname(os.path.realpath(__file__)) + "/../../udocker")
new_path.extend(sys.path)
sys.path = new_path

from unittest import TestCase, main
from unittest.mock import patch
from io import StringIO
from udocker.utils.curl import CurlHeader
from udocker.utils.curl import GetURL
from udocker.utils.curl import GetURLpyCurl
from udocker.utils.curl import GetURLexeCurl
from config import Config
from udocker.config import Config
import collections
collections.Callable = collections.abc.Callable

collections.Callable = collections.abc.Callable
BUILTINS = "builtins"


Expand Down Expand Up @@ -134,7 +125,7 @@ def test_02__select_implementation(self, mock_gupycurl,
mock_gupycurl.return_value = True
geturl = GetURL()
geturl._select_implementation()
self.assertTrue(geturl.cache_support)
# self.assertTrue(geturl.cache_support)

mock_gupycurl.return_value = False
geturl = GetURL()
Expand Down
11 changes: 1 addition & 10 deletions tests/unit/test_curlheader.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,13 @@
udocker unit tests: CurlHeader
"""

import os
import sys

new_path = []
new_path.append(os.path.dirname(os.path.realpath(__file__)) + "/../..")
new_path.append(os.path.dirname(os.path.realpath(__file__)) + "/../../udocker")
new_path.extend(sys.path)
sys.path = new_path

from unittest import TestCase, main
from unittest.mock import patch
from io import StringIO
from udocker.utils.curl import CurlHeader
import collections
collections.Callable = collections.abc.Callable

collections.Callable = collections.abc.Callable
BUILTINS = "builtins"


Expand Down
12 changes: 2 additions & 10 deletions tests/unit/test_dockerioapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,13 @@
udocker unit tests: DockerIoAPI
"""

import os
import sys

new_path = []
new_path.append(os.path.dirname(os.path.realpath(__file__)) + "/../..")
new_path.append(os.path.dirname(os.path.realpath(__file__)) + "/../../udocker")
new_path.extend(sys.path)
sys.path = new_path

from unittest import TestCase, main
from unittest.mock import patch, Mock
from io import BytesIO as strio
from udocker.docker import DockerIoAPI
from config import Config
from udocker.config import Config
import collections

collections.Callable = collections.abc.Callable


Expand Down
12 changes: 2 additions & 10 deletions tests/unit/test_dockerlocalfileapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,12 @@
udocker unit tests: DockerLocalFileAPI
"""

import os
import sys

new_path = []
new_path.append(os.path.dirname(os.path.realpath(__file__)) + "/../..")
new_path.append(os.path.dirname(os.path.realpath(__file__)) + "/../../udocker")
new_path.extend(sys.path)
sys.path = new_path

from unittest import TestCase, main
from unittest.mock import patch, Mock
from udocker.docker import DockerLocalFileAPI
from config import Config
from udocker.config import Config
import collections

collections.Callable = collections.abc.Callable


Expand Down
12 changes: 2 additions & 10 deletions tests/unit/test_elfpatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,12 @@
udocker unit tests: ElfPatcher
"""

import os
import sys

new_path = []
new_path.append(os.path.dirname(os.path.realpath(__file__)) + "/../..")
new_path.append(os.path.dirname(os.path.realpath(__file__)) + "/../../udocker")
new_path.extend(sys.path)
sys.path = new_path

from unittest import TestCase, main
from unittest.mock import patch, Mock
from udocker.helper.elfpatcher import ElfPatcher
from config import Config
from udocker.config import Config
import collections

collections.Callable = collections.abc.Callable


Expand Down
Loading

0 comments on commit f4dc310

Please sign in to comment.