Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kustomize dirs #8

Closed
wants to merge 28 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
c2bdffb
Remove the microshift-containerized subpackage (#595)
mangelajo Feb 2, 2022
0481d4e
force packaging versions (#594)
cooktheryan Feb 2, 2022
a7deed1
OpenShift CRD Manager service must signal stop when completed (#581)
mangelajo Feb 2, 2022
497cb6b
Make kube-scheduler Service return errors for healthcheck (#584)
mangelajo Feb 3, 2022
310d41a
Make kube-api-server to return errors from healthcheck (#585)
mangelajo Feb 3, 2022
c5c2c9d
Bot token (#597)
cooktheryan Feb 3, 2022
05e616f
Make kube-controller-manager service return errors (#583)
mangelajo Feb 7, 2022
077be17
Fix of selinux directories (#600)
cooktheryan Feb 9, 2022
98f6302
Install /etc/crio/crio.conf.d for containerized MicroShift (#608)
mangelajo Mar 1, 2022
975561d
Pre-loading container images into CRI-O (#568)
husky-parul Mar 4, 2022
2c2dd65
Specify the right pause image used by cri-o (#611)
mangelajo Mar 4, 2022
27241be
Set Default Audit Log Retention (#616)
adambkaplan Mar 7, 2022
58acf59
Pack containers into GitHub CI (#615)
mangelajo Mar 7, 2022
05a57a5
Use default GOMAXPROCS behavior (#621)
derekwaynecarr Mar 7, 2022
e7cd34f
fix typo in reference (#623)
mangelajo Mar 8, 2022
06ca50d
Fix AIO image to properly configure crio for MicroShift networking (#…
mangelajo Mar 11, 2022
c7afae3
update LICENSE (#625)
husky-parul Mar 15, 2022
9b7e3f8
Reorganize assets (#619)
fzdarsky Mar 15, 2022
bdef3a7
build(deps): bump actions/upload-artifact from 2.3.1 to 3 (#612)
dependabot[bot] Mar 25, 2022
9f890a4
build(deps): bump actions/checkout from 2 to 3 (#609)
dependabot[bot] Mar 25, 2022
38a486c
build(deps): bump technote-space/broken-link-checker-action (#572)
dependabot[bot] Mar 25, 2022
27767d9
Equalise service stop or failures (#637)
mangelajo Mar 31, 2022
3e28ab4
Format value of error for stopped services (#644)
oglok Mar 31, 2022
9d6ea58
Add conntrack-tools dependency to rpms (#624)
mangelajo Apr 1, 2022
8c79363
add default annotation to kubevirt-hostprovisioner storageclass (#647)
copejon Apr 6, 2022
78be449
Expose service node port range as MicroShift config (#649)
oglok Apr 8, 2022
74623de
build(deps): bump actions/setup-go from 2 to 3 (#651)
dependabot[bot] Apr 11, 2022
758fab4
Allow multiple kustomization paths
mangelajo Apr 12, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Pack containers into GitHub CI (openshift#615)
* Pack containers during GitHub CI release.sh

These .tar.gzs can be later used by common non-podman capable builders
(copr) to create rpms with the container images.

Signed-off-by: Miguel Angel Ajo <majopela@redhat.com>

* Address comments for Makefile
  • Loading branch information
mangelajo authored Mar 7, 2022

Verified

This commit was signed with the committer’s verified signature.
RobinMalfait Robin Malfait
commit 58acf59a6e027f62bf033b75d5619dc5db369af3
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ jobs:
password: ${{ secrets.REGISTRY_PASSWORD }}

- name: Install required packages
run: sudo apt-get update && sudo apt install build-essential qemu-user qemu-user-static
run: sudo apt-get update && sudo apt install build-essential qemu-user qemu-user-static podman

- name: Checkout source
uses: actions/checkout@v2
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -218,6 +218,14 @@ build-containerized-all-in-one-iptables-arm64:
+$(MAKE) _build_containerized_aio ARCH=arm64 IPTABLES=iptables
.PHONY: build-containerized-all-in-one-iptables-arm64

###############################
# container image packaging #
###############################

tar-ocp-containers:
sudo ./packaging/images/components/archive.sh
.PHONY: image-tars

###############################
# dev targets #
###############################
43 changes: 43 additions & 0 deletions packaging/images/components/archive.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/bin/bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
get="${SCRIPT_DIR}/../../../pkg/release/get.sh"

ARCHITECTURES=${ARCHITECTURES:-"arm64 amd64"}
BASE_VERSION=${BASE_VERSION:-$("${get}" base)}
OUTPUT_DIR=${OUTPUT_DIR:-$(pwd)/archive}

TMP_DIR=$(mktemp -d)

mkdir -p "${OUTPUT_DIR}"
chmod a+rwx "${OUTPUT_DIR}"

for arch in $ARCHITECTURES; do
images=$("${get}" images $arch)
storage="${TMP_DIR}/${arch}/containers"
mkdir -p "${storage}"
echo "Pulling images for architecture ${arch} ==================="
for image in $images; do
echo pulling $image @$arch
# some imported images are armhfp instead of arm
podman pull --arch $arch --root "${storage}" "${image}"
if [ $? -ne 0 ]; then
if [ "${arch}" == "arm" ]; then
echo "Fallback arm -> armhfp"
podman pull --arch armhfp --root "${TMP_DIR}/${arch}" "${image}" || exit 1
else
echo "Couldn't pull image ${image} for ${arch}"
exit 1
fi
fi
done

echo ""
echo "Packing tarball for architecture ${arch} =================="
pushd ${storage}
output_file="${OUTPUT_DIR}/microshift-containers-${BASE_VERSION}-${arch}.tar.bz2"
echo " > ${output_file}"
tar cfj "${OUTPUT_DIR}/microshift-containers-${BASE_VERSION}-${arch}.tar.bz2" .
chmod a+rw "${OUTPUT_DIR}/microshift-containers-${BASE_VERSION}-${arch}.tar.bz2"
popd
rm -rf ${storage}
done
3 changes: 3 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
@@ -304,6 +304,9 @@ if [ $NIGHTLY -eq 1 ]; then
exit 0
fi

# create container tar.gzs for the consumed container images for non-nightly releases
ARCHITECTURES="amd64 arm64" OUTPUT_DIR="${STAGE_DIR}" sudo -E "${ROOT}/packaging/image/components/archive.sh" || exit 1

# publish binaries
UPLOAD_URL="$(git_create_release "$API_DATA" "$TOKEN")" || exit 1
git_post_artifacts "$STAGE_DIR" "$UPLOAD_URL" "$TOKEN" || exit 1