Code Monkey home page Code Monkey logo

image-build-base's Introduction

rancher/hardened-build-base

This repository holds the Dockerfiles and builds scripts for rancher/hardened-build-base Docker images. The x86_64 image contains a Go compiler with FIPS 140-2 compliant crypto module, GoBoring, used for compiling rke2 components.

Supported architectures

Build

TAG=v1.20.3b1 make

Versioning

Starting from v1.19.0 dev.boringcrypto branch has been moved to the main branch behind GOEXPERIMENT variable, so the image-build-base will be adding GOEXPERIMENT=boringcrypto to scripts/go-build-static.sh script, however the build will still retain the same versionining using the <Go version>b<BoringCrypto version> pattern.

image-build-base's People

Contributors

brandond avatar briandowns avatar brooksn avatar dependabot[bot] avatar dirkmueller avatar dweomer avatar erikwilson avatar galal-hussein avatar github-actions[bot] avatar jossemargt-3pillar avatar macedogm avatar matttrach avatar nikolaishields avatar raulcabello avatar tashima42 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

image-build-base's Issues

Tar command failing on ARM64 nodes.

When building the image on ARM64 nodes. You'll get the following error message. It looks like the option --include is not part of the tar command in this version.

Step 13/19 : RUN set -ex;     if [ "$(go env GOARCH)" = "arm64" ]; then         wget -q "https://github.com/aquasecurity/trivy/releases/download/v${TRIVY_VERSION}/trivy_${TRIVY_VERSION}_Linux-ARM64.tar.gz";         tar -xzf trivy_${TRIVY_VERSION}_Linux-ARM64.tar.gz --include trivy -C /usr/local/bin;         mv trivy /usr/local/bin;                                 else                                                             wget -q "https://github.com/aquasecurity/trivy/releases/download/v${TRIVY_VERSION}/trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz";         tar -xzf trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz;          mv trivy /usr/local/bin;                                 fi
 ---> Running in c1dbe26642a4
+ go env GOARCH
+ '[' arm64 '=' arm64 ]
+ wget -q https://github.com/aquasecurity/trivy/releases/download/v0.18.3/trivy_0.18.3_Linux-ARM64.tar.gz
+ tar -xzf trivy_0.18.3_Linux-ARM64.tar.gz --include trivy -C /usr/local/bin
tar: unrecognized option: include
BusyBox v1.34.1 (2022-04-04 10:19:27 UTC) multi-call binary.

Usage: tar c|x|t [-ZzJjahmvokO] [-f TARFILE] [-C DIR] [-T FILE] [-X FILE] [LONGOPT]... [FILE]...

Create, extract, or list files from a tar file

	c	Create
	x	Extract
	t	List
	-f FILE	Name of TARFILE ('-' for stdin/out)
	-C DIR	Change to DIR before operation
	-v	Verbose
	-O	Extract to stdout
	-m	Don't restore mtime
	-o	Don't restore user:group
	-k	Don't replace existing files
	-Z	(De)compress using compress
	-z	(De)compress using gzip
	-J	(De)compress using xz
	-j	(De)compress using bzip2
	--lzma	(De)compress using lzma
	-a	(De)compress based on extension
	-h	Follow symlinks
	-T FILE	File with names to include
	-X FILE	File with glob patterns to exclude
	--exclude PATTERN	Glob pattern to exclude
	--overwrite		Replace existing files
	--strip-components NUM	NUM of leading components to strip
	--no-recursion		Don't descend in directories
	--numeric-owner		Use numeric user:group
	--no-same-permissions	Don't restore access permissions
The command '/bin/sh -c set -ex;     if [ "$(go env GOARCH)" = "arm64" ]; then         wget -q "https://github.com/aquasecurity/trivy/releases/download/v${TRIVY_VERSION}/trivy_${TRIVY_VERSION}_Linux-ARM64.tar.gz";         tar -xzf trivy_${TRIVY_VERSION}_Linux-ARM64.tar.gz --include trivy -C /usr/local/bin;         mv trivy /usr/local/bin;                                 else                                                             wget -q "https://github.com/aquasecurity/trivy/releases/download/v${TRIVY_VERSION}/trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz";         tar -xzf trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz;          mv trivy /usr/local/bin;                                 fi' returned a non-zero code: 1
make: *** [Makefile:16: image-build] Error 1

Update Trivy

Current version is 0.35, please update (the current trivy database no longer works with 0.18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.