Commit Graph
35 Commits
Author SHA1 Message Date
Sébastien Han 619f5eee6e build: revert "build: images/cross/Dockerfile to reduce vulnerabilities"
This reverts commit ceec0bc48c. The build
is failing to push images to master. This is not a critical update so
let's remove.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-11-25 14:53:21 +01:00
snyk-bot ceec0bc48c build: images/cross/Dockerfile to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-UBUNTU1604-LIBGCRYPT20-1585790
- https://snyk.io/vuln/SNYK-UBUNTU1604-SYSTEMD-1320131
- https://snyk.io/vuln/SNYK-UBUNTU1604-SYSTEMD-1320131
- https://snyk.io/vuln/SNYK-UBUNTU1604-SYSTEMD-1320131
- https://snyk.io/vuln/SNYK-UBUNTU1604-SYSTEMD-1320131

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-11-25 11:59:22 +01:00
snyk-bot 38b2af711a build: images/cross/Dockerfile to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-UBUNTU1604-LIBGCRYPT20-1585790
- https://snyk.io/vuln/SNYK-UBUNTU1604-SYSTEMD-1320131
- https://snyk.io/vuln/SNYK-UBUNTU1604-SYSTEMD-1320131
- https://snyk.io/vuln/SNYK-UBUNTU1604-SYSTEMD-1320131
- https://snyk.io/vuln/SNYK-UBUNTU1604-SYSTEMD-1320131

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-11-24 15:38:15 +01:00
Sébastien Han 889856b78f core: add s5cmd binary to operator image
The toolbox can now interact with S3 gateways using the `s5cmd` tool.
The binary is only 12M so this does not add up too much to the operator
image size.

Closes: https://github.com/rook/rook/issues/4968
Signed-off-by: Sébastien Han <seb@redhat.com>
2021-11-09 16:56:30 +01:00
Blaine Gardner 97075a2422 build: fix cross build run script
Fixes issues with the `build/run` tooling, notably for publishing images
where `build/run make <args>` would only result in `make` being called
without args.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2021-09-01 14:11:03 -06:00
Blaine Gardner 7febd4e303 ci: add debugging to release build script
Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2021-09-01 13:58:21 -06:00
subhamkrai ebe21c8f68 ci: add action for shellcheck linter
we are adding new linter for shellcheck.
As we are writing more shell scripts this
will help maintain quality.

Also, doing all the changes required in
bash files to pass this shellcheck.

Closes: https://github.com/rook/rook/issues/8431
Signed-off-by: subhamkrai <srai@redhat.com>
2021-08-26 10:03:32 +05:30
Blaine Gardner 1592c9b9da build: use latest golang v1.16.7 (Go CVE-2021-34558)
Rook CephObjectStore S3 connections may be affected by CVE-2021-34558.
This is fixed in Go v1.16.6, so we update to the latest Go version
available to ensure this is fixed in future builds.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2021-08-16 11:43:44 -06:00
Travis Nielsen 2398b1636b build: only build linux platform
No need to include darwin and windows in the list of platforms
since rook is only containerized and expected to run in a linux
environment.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-04-21 14:57:31 -06:00
Travis Nielsen 31c4ef622e build: update the build to use go 1.16
With the release of go 1.16, we update the tools. The -i flag is
now deprecated, no longer necessary for building in a private directory.
The go modules are cleaned up at the same time.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-04-12 15:01:14 -06:00
Ma Xinjian 3f2d047390 build: go download url has changed
$ curl https://golang.org/dl/go1.16.linux-amd64.tar.gz
  <a href="https://dl.google.com/go/go1.16.linux-amd64.tar.gz">Found</a>.

Signed-off-by: Ma Xinjian <maxj.fnst@fujitsu.com>
2021-03-29 09:18:56 +08:00
Travis Nielsen 31e2c4165c ci: build with golang 1.15.7
Update the cross build container to use golang 1.15.7 instead
of 1.13.8. The update to build with 1.15 had only been made in the
AMI, and is now updated in the container as well.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-01-20 10:31:35 -07: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
moricho 7d0215d820 ci: switch to use go.mod.check target
This switches to use `go.mod.check` target instead of `go.vendor.check` target.

Signed-off-by: moricho <ikeda.morito@gmail.com>
2020-03-17 16:48:43 +09:00
moricho 2beb731a7e go: move to gomodules
This switches Rook to use `go mod` instead of `dep` for
dependencies management.

Signed-off-by: moricho <ikeda.morito@gmail.com>
2020-03-17 16:47:53 +09: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
Michael Goff 3764ecf547 build: Update node to 10.x in cross container
Signed-off-by: Michael Goff <thephred@gmail.com>
2019-02-13 14:15:05 -08:00
Fan, Shang Xiang 3d7c650492 build: comply with docker best practice.
Signed-off-by: Fan, Shang Xiang <sxfan@alauda.io>
2018-10-16 13:10:02 +08:00
Ganesh Maharaj Mahalingam 92f91ab156 golang 1.11 support
Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
2018-09-12 10:53:53 -07:00
Bassam Tabbara 3741254612 fix perms on docker.sock
Signed-off-by: Bassam Tabbara <bassam@upbound.io>
2018-08-02 23:51:22 -07:00
Blaine Gardner 8b218dfbe7 make: Remove unused IMAGES from image Makefiles
Many of the `rook/images/<image>/` directory Makefiles defined a
variable called `IMAGES`, which was unused and causing some developer
confusion with the feature adding the ability to specify which backend
images to build. Remove these unused instances.

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
Bassam Tabbara d7bdec5635 build: upgrade to golang 1.10.1
Signed-off-by: Bassam Tabbara <bassam@upbound.io>
2018-03-31 23:44:25 -07:00
Jared Watts c35754ece8 Add golang 1.10 to supported list, minor updates to dev flow instructions
Signed-off-by: Jared Watts <jbw976@gmail.com>
2018-02-26 14:41:28 -08:00
Bassam Tabbara 07463fa0dd images: disable armhf image builds
While ceph can build fine on armhf it is not a tested configuration
today nor are debian packages for ceph published. Also ceph requires
more horsepower than is typically available on armhf machines.

We are dropping armhf support for now. arm64 is still supported.
2018-01-08 21:06:11 -08:00
Bassam Tabbara c36670452c build: upgrade to golang 1.9.2 2017-10-27 11:57:29 -07:00
Bassam Tabbara 535e227902 build: upgrade golang to 1.9.1 2017-10-23 15:25:26 -07:00
Bassam Tabbara e868693cb1 build: upgrade to golang 1.9 2017-08-24 22:16:09 -07:00
Ian Lovett b4cc7523b8 changes required for building and publishing docs through ci 2017-08-04 15:21:16 -07:00
Bassam Tabbara ab59789334 build: fix make release on mac 2017-06-20 20:57:46 -07:00
Bassam Tabbara d9261fbda3 build: add missing zip package 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 fa7460fc54 build: fix entrypoint for rookd and toolbox 2017-06-20 20:57:46 -07:00
Bassam Tabbara d52892bd12 add tini as PID 1 for all images 2017-06-20 20:57:46 -07:00
Bassam Tabbara 1e68e35c16 build: rename image dirs 2017-06-20 20:57:46 -07:00