Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

ci: Modify Firecracker to install from repository #1092

Merged
merged 1 commit into from
Jan 25, 2019

Conversation

GabyCT
Copy link
Contributor

@GabyCT GabyCT commented Jan 24, 2019

Instead of installing firecracker, runtime, and all the other Kata
components from the tar, this will change to install from the sources.

Fixes #1091

Signed-off-by: Gabriela Cervantes gabriela.cervantes.tellez@intel.com

Instead of installing firecracker, runtime, and all the other Kata
components from the tar, this will change to install from the sources.

Fixes kata-containers#1091

Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
.ci/install_firecracker.sh Outdated Show resolved Hide resolved
.ci/setup.sh Outdated Show resolved Hide resolved
.ci/setup.sh Outdated Show resolved Hide resolved
@GabyCT
Copy link
Contributor Author

GabyCT commented Jan 25, 2019

@chavafg changes applied

@GabyCT
Copy link
Contributor Author

GabyCT commented Jan 25, 2019

/test

@GabyCT
Copy link
Contributor Author

GabyCT commented Jan 25, 2019

/test

# Checkout to specific version
pushd "${GOPATH}/src/${firecracker_repo}"
git checkout tags/${firecracker_version}
./tools/devtool --unattended build --release -- --features vsock
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good, I had the idea you'd reuse the script on https://github.com/kata-containers/packaging/blob/master/static-build/firecracker/build-static-firecracker.sh to not duplicated code, but if this wont change a lot lets keep in this way.
@mcastelino @jodh-intel any precerence here?

# Checkout to specific version
pushd "${GOPATH}/src/${firecracker_repo}"
git checkout tags/${firecracker_version}
./tools/devtool --unattended build --release -- --features vsock
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good, I had the idea you'd reuse the script on https://github.com/kata-containers/packaging/blob/master/static-build/firecracker/build-static-firecracker.sh to not duplicated code, but if this wont change a lot lets keep in this way.
@mcastelino @jodh-intel any precerence here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jcvenegas I am ok with a little duplication as long the right version gets picked up. I am planning to update to the latest version today or next week (to 0.14)

@GabyCT
Copy link
Contributor Author

GabyCT commented Jan 25, 2019

@grahamwhaley , metrics-ci is failing with memory-footprint as it says that is exceeding memory, any objection with this change?

@grahamwhaley
Copy link
Contributor

haha - I just opened kata-containers/ci#102
the fail is v.likely not to do with this PR

docker_options="-D --add-runtime kata-runtime=/usr/local/bin/kata-runtime"
echo "Add kata-runtime as a new/default Docker runtime."
"${cidir}/../cmd/container-manager/manage_ctr_mgr.sh" docker configure -r kata-runtime -f
if [ "$KATA_HYPERVISOR" == "qemu" ]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GabyCT looks like we made it either or. Can we support both at the same time, potentially one of them via a shell script. I will work on eliminating the shell script based on
kata-containers/runtime#1082

Till then can we route fc through a shell script

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mcastelino , this script is mainly to enable a Jenkins job for Firecracker. I can not install qemu and firecracker at the same time in the jenkins job mainly because not all the tests are passing in firecracker and also we want to keep them separate so the job does not take a lot of time to run.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GabyCT then I am fine. I assumed this was the actual install script

# Checkout to specific version
pushd "${GOPATH}/src/${firecracker_repo}"
git checkout tags/${firecracker_version}
./tools/devtool --unattended build --release -- --features vsock
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jcvenegas I am ok with a little duplication as long the right version gets picked up. I am planning to update to the latest version today or next week (to 0.14)

@devimc devimc merged commit 1cccfe4 into kata-containers:master Jan 25, 2019
@GabyCT GabyCT deleted the topic/firec branch July 29, 2021 21:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants