-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/62616/#review186958
-----------------------------------------------------------



Here are some requirements that I would love to achieve as part of this effort:

1. Build rpm on my dev machine
```# support/packaging/centos/7/build_package.sh --output <dest_dir>```

(this is one for each distribution, the output can be either RPM or Deb 
packages.

2. Build Docker image (for running Mesos) on my dev machine
```
# support/build_docker_image.sh --name <docker_image_name>
# docker run <docker_image_name> mesos-slave [args]
# docker run <docker_image_name> mesos-master [args]
```

If no args, the default

This image should be a minimal docker image (just a yum install). By default, 
it’ll build from the current head of the repo.

The flow should probably be:
1) Generate RPM in step 1
2) Setup a local yum repo.
3) Run docker build with a minimal Dockerfile (just a yum install).

Publish to docker hub if needed.

3. I want a Docker image for developing Mesos and Mesos plugins
```# support/packaging/centos/7/build_dev_docker_image.sh --name 
<docker_image_name>```

```
Dev Dockerfile:
FROM <docker_image_name>
RUN make check
```

Reusing the Dockerfile in Step 1. The goal is that developers can use this 
docker image to build Mesos plugins (e.g., their dockerfile will be based on 
this docker image).

Publish to docker hub if needed

- Jie Yu


On Sept. 27, 2017, 9:50 p.m., Kapil Arya wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62616/
> -----------------------------------------------------------
> 
> (Updated Sept. 27, 2017, 9:50 p.m.)
> 
> 
> Review request for mesos, Benno Evers, Till Toenshoff, and Vinod Kone.
> 
> 
> Bugs: MESOS-7982
>     https://issues.apache.org/jira/browse/MESOS-7982
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Binary packaging for Centos 7.
> 
> 
> Diffs
> -----
> 
>   support/packaging/Jenkinsfile PRE-CREATION 
>   support/packaging/centos/6/Dockerfile PRE-CREATION 
>   support/packaging/centos/6/mesos.spec PRE-CREATION 
>   support/packaging/centos/7/Dockerfile PRE-CREATION 
>   support/packaging/centos/7/mesos.spec PRE-CREATION 
>   support/packaging/common/mesos PRE-CREATION 
>   support/packaging/common/mesos-init-wrapper PRE-CREATION 
>   support/packaging/common/mesos-master PRE-CREATION 
>   support/packaging/common/mesos-master.service PRE-CREATION 
>   support/packaging/common/mesos-master.upstart PRE-CREATION 
>   support/packaging/common/mesos-slave PRE-CREATION 
>   support/packaging/common/mesos-slave.service PRE-CREATION 
>   support/packaging/common/mesos-slave.upstart PRE-CREATION 
> 
> 
> Diff: https://reviews.apache.org/r/62616/diff/2/
> 
> 
> Testing
> -------
> 
> The scripts have been tested on an internal Jenkins CI. A buildjob on ASF 
> Jenkins CI is available at 
> https://builds.apache.org/job/Mesos/job/Packaging/job/CentosRPMs/.
> 
> 
> Thanks,
> 
> Kapil Arya
> 
>

Reply via email to