Commit Graph
26 Commits
Author SHA1 Message Date
Sébastien Han 18b1477352 ci: remove jenkins from master branch
Thank you Jenkins for all those years, but it's to retire.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-06-10 15:34:15 +02:00
Yaniv Kaul 277f4d75b7 Images: allow building images using Podman.
Automatically detect Podman if Docker is not available.
This allows me to run make and complete it succesfully without Docker
and without the need to set the DOCKERCMD env. variable.

Closes: https://github.com/rook/rook/issues/5335
Signed-off-by: Yaniv Kaul <ykaul@redhat.com>
2020-04-28 09:39:39 +03:00
ShyamsundarR 7ce1c4fc71 build: Fix ability to build with podman
This commit corrects choosing DOCKERCMD in image.mk file to choose
the environment variable if present, else default to "docker".

Signed-off-by: ShyamsundarR <srangana@redhat.com>
2020-04-01 08:19:51 -04:00
Alexander Trost 976011e923 makefile: auto generate target help menu
This uses grep, sort and awk to auto generate the `make help` menu based
on comments after each target.
Removed `clean.all` and `prune.all` targets as they are not available
anymore.

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2020-03-27 16:07:56 +01:00
John Mulligan 0fd73d82d9 images: support specifying custom 'docker' command
In the image makefiles use the "DOCKERCMD" variable in place of
calls to docker command line tool. This allows custom paths
to docker or other docker-compatible tools to be used for builds.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2019-02-25 18:49:11 -05:00
Blaine Gardner 483163fc21 make: Allow building select images
Raise the scope of the `IMAGES` config variable in the
`build/release/Makefile` to the `build/makelib/common.mk` file, and use
the `IMAGES` variable in the `images/Makefile` to allow users to build
only select images.

Examples of new use:
  make IMAGES='ceph ceph-toolbox' build
  make -C build/release IMAGES='ceph ceph-toolbox' publish

The 'images/image.mk' clean.build target was changed to use
`CLEAN_IMAGES` instead of `IMAGES`, as it was conflicting with use of
the parameter in image builds.

Added IMAGES option to top-level make's help text. The text for this
option exceeded 80 lines in the `Makefile` itself, so the help text was
refactored to eliminate `    @echo '<text>'`. The `Makefile` text should
now match exactly what is output to the user including line length.

Added IMAGES option to `INSTALL.md` file's "Build" section and also
moved some text around and added a few extra points of clarification
there to hopefully improve readability, especially for first-time
readers.

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2018-07-20 15:49:46 -06:00
Blaine Gardner 2a872bf1cd images: Use ceph daemon-base as rook base
Instead of adding Ceph packages to Rook's base image, use
ceph-container's base image, which has Ceph packages preinstalled. Rook
now benefits from the testing the ceph-container project does, and the
scope of the Rook project no longer has to maintain builds of base
images containing Ceph packages.

The only ARM builds of ceph-container are CentOS, and as switching to
CentOS was already a thought, that is easily done at the same time as
this change.

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2018-05-23 15:37:31 -06:00
Dennis Chen 872717d879 Add native build support on AArch64
Remove the `amd64` hardcode and the 'amd64 only build support' block.

Signed-off-by: Dennis Chen <dennis.chen@arm.com>
2018-04-19 15:38:23 +08:00
Blaine Gardner 286ea82ee4 Update arm builds to more specific variants
There is a deprecation warning in the `armhf` org on DockerHub.

> The armhf organization is deprecated in favor of the more-specific
arm32v7 and arm32v6 organizations, as per
https://github.com/docker-library/official-images#architectures-other-than-amd64.
Please adjust your usages accordingly.

Required changes to Rook:
`armhf` -> `arm32v7`
`aarch64` -> `arm64v8`

Install documentation has been updated as well.

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2018-02-02 15:49:16 -07:00
Bassam Tabbara 3487cac3e1 images: switch to ubuntu xenial LTS
zesty is longer supported and now that we are not building ceph from source xenial is more appropriate given that its LTS.
2018-01-17 17:22:39 -08:00
Wil Reichert bf891be243 use BSD / GNU agnotic sed & date params 2017-11-17 17:24:02 -07:00
Bassam Tabbara 6db575bd00 build: make linux default os for building images 2017-08-28 11:50:20 -07:00
Bassam Tabbara 556d221c93 build: build helm charts and reorganize demo dir
moved the helm charts and demo files to a `cluster` directory

helm charts are now built by the makefiles, and version tag is updated automagically.
2017-08-09 12:57:39 -07:00
Bassam Tabbara a9d4f68a8d build: fix image platform support 2017-07-21 22:18:25 -07:00
Bassam Tabbara 768af4b5cb build: save images to a file on each build 2017-07-21 19:25:11 -07:00
Bassam Tabbara 6188a9bf41 switch quay.io/rook with rook 2017-06-28 22:21:05 -07:00
Bassam Tabbara 3bfd06a9f1 build: rework image makefile targets to avoid duplicate runs 2017-06-20 20:57:46 -07:00
Bassam Tabbara ab59789334 build: fix make release on mac 2017-06-20 20:57:46 -07:00
Bassam Tabbara 96252b9ef3 build: switch rook and rookd to static
removed PIE and simplified the cross build containers as a result.
2017-06-20 20:57:46 -07:00
Bassam Tabbara f3ae0a2fa8 build: support for building on mac 2017-06-20 20:57:46 -07:00
Bassam Tabbara 18e34ac3ce build: update README files for build and images 2017-06-20 20:57:46 -07:00
Bassam Tabbara 78c07696b4 build: revisit caching of images
image caching is now simplified and works based on a single timestamp as the image tag.
2017-06-20 20:57:46 -07:00
Bassam Tabbara 6f19798a32 build: use the same build registry when running in container 2017-06-20 20:57:46 -07:00
Bassam Tabbara bbdf90a9cc build: prune images should also clean 2017-06-20 20:57:46 -07:00
Bassam Tabbara bdf5887e13 build: fix ccache when running in build container + misc 2017-06-20 20:57:46 -07:00
Bassam Tabbara 57f5cbeaf8 build: add new container images
add new images that build rook and ceph and remove the need for us to statically compile in ceph.

added a new small ubuntu base image used as the root of all container images.

Refactored the cross-build container into smaller containers that can be reused more effectively and not get into ubuntu package conflicts.

extensive support for caching through docker at both the build and host level to reduce build time.
2017-06-20 20:57:45 -07:00