Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

[![Coverage Status](https://coveralls.io/repos/Vauxoo/travis2docker/badge.svg?branch=master&service=github)](https://coveralls.io/github/Vauxoo/travis2docker?branch=master)
[![Build Status](https://travis-ci.org/Vauxoo/travis2docker.svg?branch=master)](https://travis-ci.org/Vauxoo/travis2docker)


# travis2docker

Script to generate Dockerfile from .travis.yml file

## Install

### From pipy
`# pip install travis2docker`

### local source
```bash
$ git clone https://github.com/Vauxoo/travis2docker.git
$ cd travis2docker
# pip install .
```

### From remote source
`# pip install git+https://github.com/Vauxoo/travis2docker.git`

## 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:
```bash
travisfile2dockerfile --root-path=$HOME/t2d git@github.com:Vauxoo/forecast.git 8.0
```
The output is:
```bash
Script generated:
${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 with tests server, the second one is for env with lint tests.

To build the image is with
`${HOME}/t2d/script/git_github.com_Vauxoo_forecast.git/8.0/1/10-build.sh`

To create a container is with
`${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 don't support a prompt to entry your password, then you need remove it.

```bash
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

Docker use a 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.


### Install docker

https://docs.docker.com/installation/ubuntulinux/

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

travis2docker-1.5.1.dev15.tar.gz (10.8 kB view details)

Uploaded Source

File details

Details for the file travis2docker-1.5.1.dev15.tar.gz.

File metadata

File hashes

Hashes for travis2docker-1.5.1.dev15.tar.gz
Algorithm Hash digest
SHA256 aa4eb49f311530a75dea2ba7b0cb9217283b67ccbb28cbb70cb3c38bd2ad21e3
MD5 63000be8a08035e7bcbf5877d9582e06
BLAKE2b-256 6ba078c94538112ad0338b060836e50ac70d795e4c8fcb7f20963e11368a6b43

See more details on using hashes here.

Release history Release notifications | RSS feed

7.0.3

2 files

7.0.2

2 files

7.0.1

2 files

7.0.0

2 files

6.4.28

2 files

6.4.27

2 files

6.4.26

2 files

6.4.25

2 files

6.4.24

2 files

6.4.23

2 files

6.4.22

2 files

6.4.21

2 files

6.4.20

2 files

6.4.19

2 files

6.4.18

2 files

6.4.17

2 files

6.4.16

2 files

6.4.15

2 files

6.4.14

2 files

6.4.13

2 files

6.4.12

2 files

6.4.11

2 files

6.4.10

2 files

6.4.9

2 files

6.4.8

2 files

6.4.7

2 files

6.4.6

2 files

6.4.5

2 files

6.4.4

2 files

6.4.3

2 files

6.4.1

2 files

6.4.0

2 files

6.3.8

2 files

6.3.7

2 files

6.3.6

2 files

6.3.5

2 files

6.3.4

2 files

6.3.3

2 files

6.3.2

2 files

6.3.1

2 files

6.3.0

2 files

6.2.1

2 files

6.2.0

2 files

6.1.3

2 files

6.1.2

2 files

6.1.0

2 files

6.0.0

2 files

5.4.0

2 files

5.3.0

1 file

5.2.0

1 file

5.1.1

1 file

5.1.0

1 file

5.0.0

1 file

4.3.0

1 file

4.2.0

1 file

4.1.2

1 file

4.1.1

1 file

4.1.0

1 file

4.0.7

1 file

4.0.6

1 file

4.0.5

1 file

4.0.4

1 file

4.0.3

1 file

4.0.2

1 file

4.0.1

1 file

4.0.0

1 file

3.3.3

1 file

3.3.2

1 file

3.3.1

1 file

3.3.0

1 file

3.2.1

1 file

3.2.0

1 file

3.1.0

1 file

3.0.14

1 file

3.0.13

1 file

3.0.12

1 file

3.0.11

1 file

3.0.10

1 file

3.0.9

1 file

3.0.8

1 file

3.0.7

1 file

3.0.6

1 file

3.0.5

1 file

3.0.4

1 file

3.0.3

1 file

3.0.2

1 file

3.0.1

1 file

3.0.0

1 file

2.1.0

1 file

2.0.3

1 file

2.0.2

1 file

2.0.1

1 file

1.6.0

1 file

This release

1.5.1.dev15 This release

1 file

1.5.0

1 file

1.4.0

1 file

1.3.0

1 file

1.2.0

1 file

1.1.1

1 file

0.1

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page