occystrap 0.3.0__tar.gz → 0.4.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. {occystrap-0.3.0 → occystrap-0.4.0}/.github/workflows/functional-tests.yml +5 -7
  2. {occystrap-0.3.0 → occystrap-0.4.0}/PKG-INFO +1 -1
  3. {occystrap-0.3.0 → occystrap-0.4.0}/deploy/ansible/ci.yml +0 -9
  4. {occystrap-0.3.0 → occystrap-0.4.0}/occystrap/docker_registry.py +8 -2
  5. {occystrap-0.3.0 → occystrap-0.4.0}/occystrap.egg-info/PKG-INFO +1 -1
  6. occystrap-0.4.0/occystrap.egg-info/pbr.json +1 -0
  7. occystrap-0.3.0/occystrap.egg-info/pbr.json +0 -1
  8. {occystrap-0.3.0 → occystrap-0.4.0}/.github/workflows/codeql-analysis.yml +0 -0
  9. {occystrap-0.3.0 → occystrap-0.4.0}/.github/workflows/python-unit-tests.yml +0 -0
  10. {occystrap-0.3.0 → occystrap-0.4.0}/AUTHORS +0 -0
  11. {occystrap-0.3.0 → occystrap-0.4.0}/LICENSE +0 -0
  12. {occystrap-0.3.0 → occystrap-0.4.0}/README.md +0 -0
  13. {occystrap-0.3.0 → occystrap-0.4.0}/deploy/.stestr.conf +0 -0
  14. {occystrap-0.3.0 → occystrap-0.4.0}/deploy/occystrap_ci/__init__.py +0 -0
  15. {occystrap-0.3.0 → occystrap-0.4.0}/deploy/occystrap_ci/testdata/deletion_layers/Dockerfile +0 -0
  16. {occystrap-0.3.0 → occystrap-0.4.0}/deploy/occystrap_ci/tests/__init__.py +0 -0
  17. {occystrap-0.3.0 → occystrap-0.4.0}/deploy/occystrap_ci/tests/test_dir_deep_images.py +0 -0
  18. {occystrap-0.3.0 → occystrap-0.4.0}/deploy/occystrap_ci/tests/test_oci_hello_world.py +0 -0
  19. {occystrap-0.3.0 → occystrap-0.4.0}/deploy/occystrap_ci/tests/test_whiteout.py +0 -0
  20. {occystrap-0.3.0 → occystrap-0.4.0}/deploy/requirements.txt +0 -0
  21. {occystrap-0.3.0 → occystrap-0.4.0}/deploy/setup.cfg +0 -0
  22. {occystrap-0.3.0 → occystrap-0.4.0}/deploy/setup.py +0 -0
  23. {occystrap-0.3.0 → occystrap-0.4.0}/deploy/test-requirements.txt +0 -0
  24. {occystrap-0.3.0 → occystrap-0.4.0}/deploy/tox.ini +0 -0
  25. {occystrap-0.3.0 → occystrap-0.4.0}/occystrap/__init__.py +0 -0
  26. {occystrap-0.3.0 → occystrap-0.4.0}/occystrap/common.py +0 -0
  27. {occystrap-0.3.0 → occystrap-0.4.0}/occystrap/constants.py +0 -0
  28. {occystrap-0.3.0 → occystrap-0.4.0}/occystrap/docker_extract.py +0 -0
  29. {occystrap-0.3.0 → occystrap-0.4.0}/occystrap/main.py +0 -0
  30. {occystrap-0.3.0 → occystrap-0.4.0}/occystrap/output_directory.py +0 -0
  31. {occystrap-0.3.0 → occystrap-0.4.0}/occystrap/output_mounts.py +0 -0
  32. {occystrap-0.3.0 → occystrap-0.4.0}/occystrap/output_ocibundle.py +0 -0
  33. {occystrap-0.3.0 → occystrap-0.4.0}/occystrap/output_tarfile.py +0 -0
  34. {occystrap-0.3.0 → occystrap-0.4.0}/occystrap/tests/__init__.py +0 -0
  35. {occystrap-0.3.0 → occystrap-0.4.0}/occystrap/util.py +0 -0
  36. {occystrap-0.3.0 → occystrap-0.4.0}/occystrap.egg-info/SOURCES.txt +0 -0
  37. {occystrap-0.3.0 → occystrap-0.4.0}/occystrap.egg-info/dependency_links.txt +0 -0
  38. {occystrap-0.3.0 → occystrap-0.4.0}/occystrap.egg-info/entry_points.txt +0 -0
  39. {occystrap-0.3.0 → occystrap-0.4.0}/occystrap.egg-info/not-zip-safe +0 -0
  40. {occystrap-0.3.0 → occystrap-0.4.0}/occystrap.egg-info/requires.txt +0 -0
  41. {occystrap-0.3.0 → occystrap-0.4.0}/occystrap.egg-info/top_level.txt +0 -0
  42. {occystrap-0.3.0 → occystrap-0.4.0}/release.sh +0 -0
  43. {occystrap-0.3.0 → occystrap-0.4.0}/requirements.txt +0 -0
  44. {occystrap-0.3.0 → occystrap-0.4.0}/setup.cfg +0 -0
  45. {occystrap-0.3.0 → occystrap-0.4.0}/setup.py +0 -0
  46. {occystrap-0.3.0 → occystrap-0.4.0}/test-requirements.txt +0 -0
  47. {occystrap-0.3.0 → occystrap-0.4.0}/tools/flake8wrap.sh +0 -0
  48. {occystrap-0.3.0 → occystrap-0.4.0}/tox.ini +0 -0
@@ -20,7 +20,7 @@ jobs:
20
20
  steps:
21
21
  - name: Remove previous unfinished runs
22
22
  uses: n1hility/cancel-previous-runs@v2
23
- with:
23
+ with:
24
24
  token: ${{ secrets.GITHUB_TOKEN }}
25
25
 
26
26
  - name: Get rid of sudo error messages
@@ -31,8 +31,6 @@ jobs:
31
31
 
32
32
  - name: Install minimum dependencies
33
33
  run: |
34
- echo 'Acquire::http::Proxy "http://192.168.1.50:8000";' > /tmp/00proxy
35
- sudo mv /tmp/00proxy /etc/apt/apt.conf.d/
36
34
  sudo apt-get update
37
35
  sudo apt-get dist-upgrade -y
38
36
  sudo apt-get install -y python3 python3-dev python3-pip python3-wheel apparmor docker.io runc
@@ -53,7 +51,7 @@ jobs:
53
51
 
54
52
  - name: Build occystrap wheel and install it
55
53
  run: |
56
- cd /srv/github/_work/occystrap/occystrap/occystrap
54
+ cd /srv/ci/runner/_work/occystrap/occystrap/occystrap
57
55
  rm -f dist/*
58
56
  python3 setup.py sdist bdist_wheel
59
57
  sudo pip3 install dist/occystrap*.whl
@@ -61,18 +59,18 @@ jobs:
61
59
  - name: Run a local docker registry to talk to, and populate it with test data
62
60
  run: |
63
61
  docker run -d -p 5000:5000 --restart=always --name registry registry:2
64
- cd /srv/github/_work/occystrap/occystrap/occystrap/deploy/occystrap_ci/testdata
62
+ cd /srv/ci/runner/_work/occystrap/occystrap/occystrap/deploy/occystrap_ci/testdata
65
63
 
66
64
  for img in deletion_layers; do
67
65
  cd $img
68
66
  docker build -t localhost:5000/occystrap_$img:latest .
69
67
  docker push localhost:5000/occystrap_$img:latest
70
- cd /srv/github/_work/occystrap/occystrap/occystrap/deploy/occystrap_ci/testdata
68
+ cd /srv/ci/runner/_work/occystrap/occystrap/occystrap/deploy/occystrap_ci/testdata
71
69
  done
72
70
 
73
71
  - name: Run functional tests
74
72
  run: |
75
- cd /srv/github/_work/occystrap/occystrap/occystrap/deploy
73
+ cd /srv/ci/runner/_work/occystrap/occystrap/occystrap/deploy
76
74
  sudo pip3 install -r requirements.txt
77
75
  sudo pip3 install -r test-requirements.txt
78
76
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: occystrap
3
- Version: 0.3.0
3
+ Version: 0.4.0
4
4
  Summary: occystrap: docker and OCI container tools
5
5
  Home-page: https://github.com/shakenfist/occystrap
6
6
  Author: Michael Still
@@ -133,15 +133,6 @@
133
133
  source_path: "/home/jenkins/src/occystrap/"
134
134
 
135
135
  tasks:
136
- - name: Use CI package cache to speed things up
137
- copy:
138
- content: |
139
- Acquire::http::Proxy "http://192.168.1.50:8000";
140
- dest: /etc/apt/apt.conf.d/00proxy
141
- owner: root
142
- group: root
143
- mode: u=r,g=r,o=r
144
-
145
136
  - name: Install minimum dependencies
146
137
  apt:
147
138
  name:
@@ -5,6 +5,9 @@
5
5
  # format, noting that the response format you get back varies based on what you have
6
6
  # in your accept header for the request.
7
7
 
8
+ # https://github.com/opencontainers/image-spec/blob/main/media-types.md documents
9
+ # the new OCI mime types.
10
+
8
11
  import hashlib
9
12
  import io
10
13
  import logging
@@ -86,7 +89,9 @@ class Image(object):
86
89
  if r.headers['Content-Type'] == 'application/vnd.docker.distribution.manifest.v2+json':
87
90
  manifest = r.json()
88
91
  config_digest = manifest['config']['digest']
89
- elif r.headers['Content-Type'] == 'application/vnd.docker.distribution.manifest.list.v2+json':
92
+ elif r.headers['Content-Type'] in [
93
+ 'application/vnd.docker.distribution.manifest.list.v2+json',
94
+ 'application/vnd.oci.image.index.v1+json']:
90
95
  for m in r.json()['manifests']:
91
96
  if 'variant' in m['platform']:
92
97
  LOG.info('Found manifest for %s on %s %s'
@@ -109,7 +114,8 @@ class Image(object):
109
114
  'image': self.image,
110
115
  'tag': m['digest']
111
116
  },
112
- headers={'Accept': ('application/vnd.docker.distribution.manifest.v2+json')})
117
+ headers={'Accept': ('application/vnd.docker.distribution.manifest.v2+json, '
118
+ 'application/vnd.oci.image.manifest.v1+json')})
113
119
  manifest = r.json()
114
120
  config_digest = manifest['config']['digest']
115
121
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: occystrap
3
- Version: 0.3.0
3
+ Version: 0.4.0
4
4
  Summary: occystrap: docker and OCI container tools
5
5
  Home-page: https://github.com/shakenfist/occystrap
6
6
  Author: Michael Still
@@ -0,0 +1 @@
1
+ {"git_version": "c1cb09a", "is_release": true}
@@ -1 +0,0 @@
1
- {"git_version": "27e37dc", "is_release": true}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes