========
Overview
========
Script to generate Dockerfile from .travis.yml file
* Free software: BSD license
Installation
============
::
pip install travis2docker
Usage
=====
`travisfile2dockerfile REPO_URL BRANCH`
Or with pull request
`travisfile2dockerfile REPO_URL pull/##`
In REPO_URL use the ssh url of github.
For more information execute:
`travisfile2dockerfile --help`
Example:
`travisfile2dockerfile --root-path=$HOME/t2d git@github.com:Vauxoo/forecast.git 8.0`
The output is:
`${HOME}/t2d/script/git_github.com_Vauxoo_forecast.git/8.0/1`
`${HOME}/t2d/script/git_github.com_Vauxoo_forecast.git/8.0/2`
The first one is the build for env `TESTS=1`, the second one is for env with `LINT_CHECK=1`
To build image:
`${HOME}/t2d/script/git_github.com_Vauxoo_forecast.git/8.0/1/10-build.sh`
To create container:
`${HOME}/t2d/script/git_github.com_Vauxoo_forecast.git/8.0/1/20-run.sh --entrypoint=bash`
To run the test (into of container):
`/entrypoint.sh`
Depends
=======
SSH key without password
************************
Dockerfile doesn't support a prompt to enter your password, so you need to remove it from your ssh keys.
::
export fname=~/.ssh/id_rsa
cp ${fname} ${fname}_with_pwd
openssl rsa -in ${fname} -out ${fname}_without_pwd
cp ${fname}_without_pwd ${fname}
Download the big image
**********************
Travis2docker uses a default image with many packages pre-installed.
`docker pull vauxoo/odoo-80-image-shippable-auto`
Note: You can define a custom image to use with `--docker-image` parameter.
For example if you want use the original image of travis you can add the following parameters:
`--docker-image=quay.io/travisci/travis-python --docker-user=travis`
Install docker
**************
https://docs.docker.com/engine/installation/
Documentation
=============
https://travis2docker.readthedocs.io/
Development
===========
To run the all tests run::
tox
Note, to combine the coverage data from all the tox environments run:
.. list-table::
:widths: 10 90
:stub-columns: 1
- - Windows
- ::
set PYTEST_ADDOPTS=--cov-append
tox
- - Other
- ::
PYTEST_ADDOPTS=--cov-append tox
Changelog
=========
3.0.0 (2016-07-26)
******************
* First release on PyPI.
Raw data
{
"_id": null,
"home_page": "https://github.com/vauxoo/travis2docker",
"name": "travis2docker",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Vauxoo",
"author_email": "info@vauxoo.com",
"download_url": "https://files.pythonhosted.org/packages/0a/d7/f190f16c47398400f95f32de1e6cea438fb4d3c5244c493d7dc7b71ee523/travis2docker-6.4.15.tar.gz",
"platform": null,
"description": "========\nOverview\n========\n\n\n\nScript to generate Dockerfile from .travis.yml file\n\n* Free software: BSD license\n\nInstallation\n============\n\n::\n\n pip install travis2docker\n\nUsage\n=====\n\n`travisfile2dockerfile REPO_URL BRANCH`\n \nOr with pull request\n `travisfile2dockerfile REPO_URL pull/##`\n \nIn REPO_URL use the ssh url of github.\n\nFor more information execute:\n `travisfile2dockerfile --help`\n \nExample:\n `travisfile2dockerfile --root-path=$HOME/t2d git@github.com:Vauxoo/forecast.git 8.0`\n\nThe output is:\n `${HOME}/t2d/script/git_github.com_Vauxoo_forecast.git/8.0/1`\n `${HOME}/t2d/script/git_github.com_Vauxoo_forecast.git/8.0/2`\n\nThe first one is the build for env `TESTS=1`, the second one is for env with `LINT_CHECK=1`\n\nTo build image:\n `${HOME}/t2d/script/git_github.com_Vauxoo_forecast.git/8.0/1/10-build.sh`\n\nTo create container:\n `${HOME}/t2d/script/git_github.com_Vauxoo_forecast.git/8.0/1/20-run.sh --entrypoint=bash`\n\nTo run the test (into of container):\n `/entrypoint.sh`\n\nDepends\n=======\n\nSSH key without password\n************************\n\nDockerfile doesn't support a prompt to enter your password, so you need to remove it from your ssh keys.\n\n::\n\n export fname=~/.ssh/id_rsa\n cp ${fname} ${fname}_with_pwd\n openssl rsa -in ${fname} -out ${fname}_without_pwd\n cp ${fname}_without_pwd ${fname}\n\nDownload the big image\n**********************\n\nTravis2docker uses a default image with many packages pre-installed.\n\n`docker pull vauxoo/odoo-80-image-shippable-auto`\n\nNote: You can define a custom image to use with `--docker-image` parameter.\n\nFor example if you want use the original image of travis you can add the following parameters:\n\n`--docker-image=quay.io/travisci/travis-python --docker-user=travis`\n\nInstall docker\n**************\n\nhttps://docs.docker.com/engine/installation/\n\nDocumentation\n=============\n\nhttps://travis2docker.readthedocs.io/\n\nDevelopment\n===========\n\nTo run the all tests run::\n\n tox\n\nNote, to combine the coverage data from all the tox environments run:\n\n.. list-table::\n :widths: 10 90\n :stub-columns: 1\n\n - - Windows\n - ::\n\n set PYTEST_ADDOPTS=--cov-append\n tox\n\n - - Other\n - ::\n\n PYTEST_ADDOPTS=--cov-append tox\n\n\nChangelog\n=========\n\n3.0.0 (2016-07-26)\n******************\n\n* First release on PyPI.\n",
"bugtrack_url": null,
"license": "BSD",
"summary": "Script to generate Dockerfile from .travis.yml file",
"version": "6.4.15",
"project_urls": {
"Homepage": "https://github.com/vauxoo/travis2docker"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "f06886458c35bf578a6e5b128fde57c8c750cf39c7557180cc77a0474369dbbc",
"md5": "b8b026e92232281dafe32596115daa6d",
"sha256": "56ba6a969e15cd940622e21421d97020ca143f0d0ae9d3a717dc652b572654cc"
},
"downloads": -1,
"filename": "travis2docker-6.4.15-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "b8b026e92232281dafe32596115daa6d",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 33202,
"upload_time": "2023-11-27T18:58:47",
"upload_time_iso_8601": "2023-11-27T18:58:47.547212Z",
"url": "https://files.pythonhosted.org/packages/f0/68/86458c35bf578a6e5b128fde57c8c750cf39c7557180cc77a0474369dbbc/travis2docker-6.4.15-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0ad7f190f16c47398400f95f32de1e6cea438fb4d3c5244c493d7dc7b71ee523",
"md5": "de05fbb421f055867b38ceb1081dcc9c",
"sha256": "47dacf8b2c4e60bb63860f83b2d8020e9ec4fba7f73fe1010c85fd4575cc2d84"
},
"downloads": -1,
"filename": "travis2docker-6.4.15.tar.gz",
"has_sig": false,
"md5_digest": "de05fbb421f055867b38ceb1081dcc9c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 35610,
"upload_time": "2023-11-27T18:58:49",
"upload_time_iso_8601": "2023-11-27T18:58:49.793697Z",
"url": "https://files.pythonhosted.org/packages/0a/d7/f190f16c47398400f95f32de1e6cea438fb4d3c5244c493d7dc7b71ee523/travis2docker-6.4.15.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-27 18:58:49",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "vauxoo",
"github_project": "travis2docker",
"travis_ci": true,
"coveralls": true,
"github_actions": true,
"requirements": [
{
"name": "PyYAML",
"specs": [
[
"==",
"3.12"
]
]
},
{
"name": "PyYAML",
"specs": [
[
"==",
"6.0.*"
]
]
},
{
"name": "Jinja2",
"specs": [
[
"==",
"2.11.3"
]
]
},
{
"name": "Jinja2",
"specs": [
[
"==",
"3.1.*"
]
]
}
],
"tox": true,
"lcname": "travis2docker"
}