mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-03 05:10:55 +00:00
fix(build): remove unused environment variables
This commit is contained in:
parent
349664abf1
commit
aa7d3e369a
6
.github/workflows/nightly.yml
vendored
6
.github/workflows/nightly.yml
vendored
@ -27,16 +27,12 @@ jobs:
|
|||||||
targets: "${{ matrix.arch }}-unknown-linux-gnu,${{ matrix.arch }}-unknown-linux-musl"
|
targets: "${{ matrix.arch }}-unknown-linux-gnu,${{ matrix.arch }}-unknown-linux-musl"
|
||||||
- run: ./hack/ci/install-linux-deps.sh
|
- run: ./hack/ci/install-linux-deps.sh
|
||||||
- run: ./hack/dist/bundle.sh
|
- run: ./hack/dist/bundle.sh
|
||||||
env:
|
|
||||||
KRATA_KERNEL_BUILD_JOBS: "5"
|
|
||||||
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||||
with:
|
with:
|
||||||
name: krata-bundle-systemd-${{ matrix.arch }}
|
name: krata-bundle-systemd-${{ matrix.arch }}
|
||||||
path: "target/dist/bundle-systemd-${{ matrix.arch }}.tgz"
|
path: "target/dist/bundle-systemd-${{ matrix.arch }}.tgz"
|
||||||
compression-level: 0
|
compression-level: 0
|
||||||
- run: ./hack/dist/deb.sh
|
- run: ./hack/dist/deb.sh
|
||||||
env:
|
|
||||||
KRATA_KERNEL_BUILD_SKIP: "1"
|
|
||||||
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||||
with:
|
with:
|
||||||
name: krata-debian-${{ matrix.arch }}
|
name: krata-debian-${{ matrix.arch }}
|
||||||
@ -51,8 +47,6 @@ jobs:
|
|||||||
path: "target/dist/*_${{ matrix.arch }}.apk"
|
path: "target/dist/*_${{ matrix.arch }}.apk"
|
||||||
compression-level: 0
|
compression-level: 0
|
||||||
- run: ./hack/os/build.sh
|
- run: ./hack/os/build.sh
|
||||||
env:
|
|
||||||
KRATA_KERNEL_BUILD_SKIP: "1"
|
|
||||||
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||||
with:
|
with:
|
||||||
name: krata-os-${{ matrix.arch }}
|
name: krata-os-${{ matrix.arch }}
|
||||||
|
5
hack/dist/bundle.sh
vendored
5
hack/dist/bundle.sh
vendored
@ -4,11 +4,6 @@ set -e
|
|||||||
# shellcheck source-path=SCRIPTDIR source=common.sh
|
# shellcheck source-path=SCRIPTDIR source=common.sh
|
||||||
. "$(dirname "${0}")/common.sh"
|
. "$(dirname "${0}")/common.sh"
|
||||||
|
|
||||||
if [ -z "${KRATA_KERNEL_BUILD_JOBS}" ]
|
|
||||||
then
|
|
||||||
KRATA_KERNEL_BUILD_JOBS="2"
|
|
||||||
fi
|
|
||||||
|
|
||||||
TARGET_ARCH="$("${KRATA_DIR}/hack/build/arch.sh")"
|
TARGET_ARCH="$("${KRATA_DIR}/hack/build/arch.sh")"
|
||||||
BUNDLE_TAR="${OUTPUT_DIR}/bundle-systemd-${TARGET_ARCH}.tgz"
|
BUNDLE_TAR="${OUTPUT_DIR}/bundle-systemd-${TARGET_ARCH}.tgz"
|
||||||
rm -f "${BUNDLE_TAR}"
|
rm -f "${BUNDLE_TAR}"
|
||||||
|
@ -7,7 +7,7 @@ remove_service_if_exists() {
|
|||||||
UNIT_PATH="$(systemctl show -P FragmentPath "${1}")"
|
UNIT_PATH="$(systemctl show -P FragmentPath "${1}")"
|
||||||
if [ -f "${UNIT_PATH}" ]
|
if [ -f "${UNIT_PATH}" ]
|
||||||
then
|
then
|
||||||
echo "[WARN] disabling removing systemd unit ${UNIT_PATH}" > /dev/stderr
|
echo "[WARN] disabling and removing systemd unit ${UNIT_PATH}" > /dev/stderr
|
||||||
systemctl disable --now "${1}" || true
|
systemctl disable --now "${1}" || true
|
||||||
rm "${UNIT_PATH}"
|
rm "${UNIT_PATH}"
|
||||||
fi
|
fi
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/sbin/openrc-run
|
#!/sbin/openrc-run
|
||||||
description="Krata Control Daemon"
|
description="Krata Isolation Engine"
|
||||||
command="/usr/libexec/kratad"
|
command="/usr/libexec/kratad"
|
||||||
supervisor="supervise-daemon"
|
supervisor="supervise-daemon"
|
||||||
output_log="/var/log/kratad.log"
|
output_log="/var/log/kratad.log"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Krata Control Daemon
|
Description=Krata Isolation Engine
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Krata Networking Daemon
|
Description=Krata Networking Engine
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Wants=kratad.service
|
Wants=kratad.service
|
||||||
|
Loading…
Reference in New Issue
Block a user