Skip to content

Commit ff9ff79

Browse files
committed
docker: default to centos6+dts8
note: centos7-dts8 doesn't work yet closes NatronGitHub#474
1 parent cffc07b commit ff9ff79

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

tools/docker/README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ These docker images are based on CentOS6 for a maximum compatibility accross all
66

77
## Downloading the pre-built Natron SDK images
88

9-
The `natrongithub/natron-sdk:latest` and `natrongithub/natron-sdk-i386:latest` docker images are available from [Docker Hub].
9+
The `natrongithub/natron-sdk-centos6-dts8:latest` and `natrongithub/natron-sdk-centos6:latest` docker images are available from [Docker Hub].
1010

1111
To download these images, for the [64-bit SDK] execute:
1212
```
13-
docker pull natrongithub/natron-sdk
13+
docker pull natrongithub/natron-sdk-centos6-dts8
1414
```
1515
and for the [32-bit SDK]:
1616
```
17-
docker pull natrongithub/natron-sdk-i386
17+
docker pull natrongithub/natron-sdk-i386-centos6
1818
```
1919

2020
## Launching a build
@@ -24,15 +24,15 @@ To launch a build:
2424
- create a directory for the builds (`$(pwd)/builds` in the following), and launch a build that binds this directory to `/home/builds_archive`:
2525
```
2626
mkdir builds
27-
docker run -it --rm --mount src="$(pwd)/builds",target=/home/builds_archive,type=bind natrongithub/natron-sdk:latest
27+
docker run -it --rm --mount src="$(pwd)/builds",target=/home/builds_archive,type=bind natrongithub/natron-sdk-centos6-dts8:latest
2828
```
29-
(for the 32-bit version, use `natrongithub/natron-sdk-i386:latest` instead of `natrongithub/natron-sdk:latest`)
29+
(for the 32-bit version, use `natrongithub/natron-sdk-i386-centos6:latest` instead of `natrongithub/natron-sdk-centos6-dts8:latest`)
3030

3131
By default, this launches a snapshot build, but you may want to customize build variables, which appear when the build starts and are described at the top of `tools/jenkins/launchBuildMain.sh`. This can be done by adding the following options to the `docker run`command: `--env VAR1=value1 --env VAR2=value2 ...`.
3232

3333
For example, to limit the number of parallel build jobs to 2:
3434
```
35-
docker run -it --rm --mount src="$(pwd)/builds",target=/home/builds_archive,type=bind --env MKJOBS=2 natrongithub/natron-sdk:latest
35+
docker run -it --rm --mount src="$(pwd)/builds",target=/home/builds_archive,type=bind --env MKJOBS=2 natrongithub/natron-sdk-centos6-dts8:latest
3636
```
3737

3838

@@ -43,7 +43,7 @@ docker run -it --rm --mount src="$(pwd)/builds",target=/home/builds_archive,type
4343
If `GIT_URL` is not an official Natron repository (as listed in [gitRepositories.sh](https://github.com/NatronGitHub/Natron/blob/master/tools/jenkins/gitRepositories.sh)), `GIT_URL_IS_NATRON=1` can be used to force a Natron build, as in the following example, which launches a build from branch `SetDefaultProjectFormat` of repository `https://github.com/rodlie/Natron.git`.
4444

4545
```
46-
docker run -it --rm --mount src="$(pwd)/builds",target=/home/builds_archive,type=bind --env GIT_URL_IS_NATRON=1 --env GIT_URL=https://github.com/rodlie/Natron.git --env GIT_BRANCH=SetDefaultProjectFormat natrongithub/natron-sdk:latest
46+
docker run -it --rm --mount src="$(pwd)/builds",target=/home/builds_archive,type=bind --env GIT_URL_IS_NATRON=1 --env GIT_URL=https://github.com/rodlie/Natron.git --env GIT_BRANCH=SetDefaultProjectFormat natrongithub/natron-sdk-centos6-dts8:latest
4747
```
4848

4949

@@ -54,7 +54,7 @@ To launch a release, the Natron and plugins repositories must have the appropria
5454
When launching the build, `RELEASE_TAG` must be set to the version number (eg "2.3.15") and `NATRON_BUILD_NUMBER` must be set to an integer value (typically 1 for the first build, and increment for each new build after fixing issues). See [launchBuildMain.sh](https://github.com/NatronGitHub/Natron/blob/master/tools/jenkins/launchBuildMain.sh#L340) for more details.
5555

5656
```
57-
docker run -it --rm --env RELEASE_TAG=2.3.15 --env NATRON_BUILD_NUMBER=1 --mount src="$(pwd)/builds",target=/home/builds_archive,type=bind natrongithub/natron-sdk:latest
57+
docker run -it --rm --env RELEASE_TAG=2.3.15 --env NATRON_BUILD_NUMBER=1 --mount src="$(pwd)/builds",target=/home/builds_archive,type=bind natrongithub/natron-sdk-centos6-dts8:latest
5858
```
5959

6060

@@ -67,7 +67,7 @@ Other build options are documented at the beginning of the [launchBuildMain.sh](
6767

6868
If something goes bad during a build, you may want to launch it from an interactive shell instead.
6969
```
70-
docker run -it --rm --mount src="$(pwd)/artifacts",target=/home/jenkins_artifacts,type=bind --mount src="$(pwd)/builds",target=/home/builds_archive,type=bind natrongithub/natron-sdk:latest bash
70+
docker run -it --rm --mount src="$(pwd)/artifacts",target=/home/jenkins_artifacts,type=bind --mount src="$(pwd)/builds",target=/home/builds_archive,type=bind natrongithub/natron-sdk-centos6-dts8:latest bash
7171
```
7272
Then you can execute manually `launchBuildMain.sh` from the shell.
7373

tools/docker/natron-sdk/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22
cd `dirname "$0"`
33
export CENTOS=6
4-
#export DTS=8
4+
export DTS=8
55
LABEL="natrongithub/natron-sdk${CENTOS+-centos}${CENTOS:-}${DTS+-dts}${DTS:-}"
66
env GEN_DOCKERFILE=1 ../../jenkins/include/scripts/build-Linux-sdk.sh > Dockerfile
77
cp ../../jenkins/*.sh .

0 commit comments

Comments
 (0)