travis2docker 6.4.15__tar.gz → 6.4.16__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.
- {travis2docker-6.4.15 → travis2docker-6.4.16}/.bumpversion.cfg +1 -1
- {travis2docker-6.4.15 → travis2docker-6.4.16}/PKG-INFO +1 -1
- {travis2docker-6.4.15 → travis2docker-6.4.16}/docs/conf.py +1 -1
- {travis2docker-6.4.15 → travis2docker-6.4.16}/setup.py +1 -1
- travis2docker-6.4.16/src/travis2docker/__init__.py +1 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker/cli.py +1 -1
- {travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker/templates/Dockerfile_deployv +0 -1
- {travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker/templates/build.sh +0 -20
- {travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker/travis2docker.py +23 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker.egg-info/PKG-INFO +1 -1
- travis2docker-6.4.15/src/travis2docker/__init__.py +0 -1
- {travis2docker-6.4.15 → travis2docker-6.4.16}/.coveragerc +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/AUTHORS.rst +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/CHANGELOG.rst +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/CONTRIBUTING.rst +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/LICENSE +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/MANIFEST.in +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/README.rst +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/docs/authors.rst +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/docs/changelog.rst +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/docs/contributing.rst +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/docs/index.rst +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/docs/installation.rst +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/docs/readme.rst +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/docs/reference/index.rst +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/docs/reference/travis2docker.rst +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/docs/requirements.txt +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/docs/spelling_wordlist.txt +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/docs/usage.rst +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/examples/example_1.yml +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/examples/example_2.yml +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/examples/example_3.yml +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/examples/example_4.yml +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/examples/example_5.yml +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/requirements.txt +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/setup.cfg +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker/__main__.py +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker/docker_helper/build.py +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker/exceptions.py +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker/git_run.py +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker/templates/.coveragerc +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker/templates/.vscode/extensions.json +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker/templates/.vscode/launch.json +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker/templates/.vscode/settings.json +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker/templates/10-build.sh +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker/templates/20-run.sh +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker/templates/Dockerfile +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker/templates/entrypoint.sh +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker/templates/entrypoint_deployv.sh +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker/templates/rvm_env.sh +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker/travis-ci-apt-source-whitelist/.git +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker/travis-ci-apt-source-whitelist/.gitignore +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker/travis-ci-apt-source-whitelist/.travis.yml +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker/travis-ci-apt-source-whitelist/LICENSE +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker/travis-ci-apt-source-whitelist/README.md +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker/travis-ci-apt-source-whitelist/add_all.rb +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker/travis-ci-apt-source-whitelist/bin/travis-add-source +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker/travis-ci-apt-source-whitelist/ubuntu.json +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker.egg-info/SOURCES.txt +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker.egg-info/dependency_links.txt +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker.egg-info/entry_points.txt +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker.egg-info/not-zip-safe +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker.egg-info/requires.txt +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker.egg-info/top_level.txt +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/tests/test_travis2docker.py +0 -0
- {travis2docker-6.4.15 → travis2docker-6.4.16}/tox.ini +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "6.4.16"
|
|
@@ -94,7 +94,7 @@ def main(return_result=False):
|
|
|
94
94
|
parser.add_argument(
|
|
95
95
|
'--root-path',
|
|
96
96
|
dest='root_path',
|
|
97
|
-
help="Root path to save scripts generated
|
|
97
|
+
help=f"Root path to save scripts generated.\nDefault: {default_root_path}",
|
|
98
98
|
default=default_root_path,
|
|
99
99
|
)
|
|
100
100
|
parser.add_argument(
|
|
@@ -55,26 +55,6 @@ EOF
|
|
|
55
55
|
# alias odoo
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
set_authorized_keys(){
|
|
59
|
-
YELLOW='\033[0;33m'
|
|
60
|
-
NC='\033[0m'
|
|
61
|
-
|
|
62
|
-
AUTH_FILE="${HOME}/.ssh/authorized_keys"
|
|
63
|
-
ED_KEY="${HOME}/.ssh/id_ed25519.pub"
|
|
64
|
-
RSA_KEY="${HOME}/.ssh/id_rsa.pub"
|
|
65
|
-
|
|
66
|
-
echo "INFO: Adding public key to ~/.ssh/authorized_keys"
|
|
67
|
-
if [ -f "${ED_KEY}" ]; then
|
|
68
|
-
tee -a "${AUTH_FILE}" < "${ED_KEY}"
|
|
69
|
-
elif [ -f "${RSA_KEY}" ]; then
|
|
70
|
-
printf "${YELLOW}WARNING: RSA keys are deprecated, consider changing to ed25519\n${NC}"
|
|
71
|
-
tee -a "${AUTH_FILE}" < "${RSA_KEY}"
|
|
72
|
-
else
|
|
73
|
-
echo "INFO: No public key found. No key added to ~/.ssh/authorized_keys"
|
|
74
|
-
fi
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
58
|
# You can add new packages here
|
|
79
59
|
install_dev_tools(){
|
|
80
60
|
apt update -qq
|
|
@@ -306,6 +306,7 @@ class Travis2Docker(object):
|
|
|
306
306
|
copies = []
|
|
307
307
|
for copy_path, dest in self.copy_paths:
|
|
308
308
|
copies.append((self.copy_path(copy_path), dest))
|
|
309
|
+
self.set_authorized_key()
|
|
309
310
|
kwargs = {
|
|
310
311
|
'runs': [],
|
|
311
312
|
'copies': copies,
|
|
@@ -381,3 +382,25 @@ class Travis2Docker(object):
|
|
|
381
382
|
else:
|
|
382
383
|
raise UserWarning("Just directory or file is supported to copy [%s]" % src)
|
|
383
384
|
return os.path.relpath(dest_path, self.curr_work_path)
|
|
385
|
+
|
|
386
|
+
def set_authorized_key(self):
|
|
387
|
+
ssh_dir = os.path.expanduser("~/.ssh")
|
|
388
|
+
ed_key = os.path.join(ssh_dir, "id_ed25519.pub")
|
|
389
|
+
rsa_key = os.path.join(ssh_dir, "id_rsa.pub")
|
|
390
|
+
|
|
391
|
+
to_copy = False
|
|
392
|
+
if os.path.isfile(ed_key):
|
|
393
|
+
to_copy = ed_key
|
|
394
|
+
elif os.path.isfile(rsa_key):
|
|
395
|
+
print("RSA keys are deprecated, consider changing to ed25519")
|
|
396
|
+
to_copy = rsa_key
|
|
397
|
+
|
|
398
|
+
if not to_copy:
|
|
399
|
+
print("No public key found. No key added to ~/.ssh/authorized_keys. SSH login won't work.")
|
|
400
|
+
return
|
|
401
|
+
|
|
402
|
+
with open(to_copy, "r", encoding="utf-8") as key_fd:
|
|
403
|
+
pub_key = key_fd.read()
|
|
404
|
+
|
|
405
|
+
with open(os.path.join(self.curr_work_path, ".ssh", "authorized_keys"), "w", encoding="utf-8") as auth_fd:
|
|
406
|
+
auth_fd.write(pub_key)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "6.4.15"
|
|
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
|
|
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
|
{travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker/templates/.vscode/extensions.json
RENAMED
|
File without changes
|
{travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker/templates/.vscode/launch.json
RENAMED
|
File without changes
|
{travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker/templates/.vscode/settings.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker/templates/entrypoint_deployv.sh
RENAMED
|
File without changes
|
|
File without changes
|
{travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker/travis-ci-apt-source-whitelist/.git
RENAMED
|
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
|
{travis2docker-6.4.15 → travis2docker-6.4.16}/src/travis2docker.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|