mirror of
https://github.com/fleetdm/fleet
synced 2026-05-11 11:11:10 +00:00
This reverts commit a5bd50716d which was
this PR: https://github.com/fleetdm/fleet/pull/28742
It was determined that the behavior changes here conflict with other
changes being asked for by `customer-starchik`. Design to review and
come up with a different strategy for improving the behavior this change
originally was intended to fix
- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files)
for more information.
- [x] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- For Orbit and Fleet Desktop changes:
- [x] Make sure fleetd is compatible with the latest released version of
Fleet (see [Must
rule](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/workflows/fleetd-development-and-release-strategy.md)).
- [x] Orbit runs on macOS, Linux and Windows. Check if the orbit
feature/bugfix should only apply to one platform (`runtime.GOOS`).
- [x] Manual QA must be performed in the three main OSs, macOS, Windows
and Linux.
- [x] Auto-update manual QA, from released version of component to new
version (see [tools/tuf/test](../tools/tuf/test/README.md)).
- [x] For unreleased bug fixes in a release candidate, confirmed that
the fix is not expected to adversely impact load test results or alerted
the release DRI if additional load testing is needed.
42 lines
1,016 B
Bash
Executable file
42 lines
1,016 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# This script is to build the tuf repo and package it and the file-server into a docker container to deploy.
|
|
|
|
if [ $# -lt 2 ]; then
|
|
echo 1>&2 "$0: not enough arguments"
|
|
exit 2
|
|
elif [ $# -gt 2 ]; then
|
|
echo 1>&2 "$0: too many arguments"
|
|
exit 2
|
|
fi
|
|
|
|
BASE_TUF_URL=$1
|
|
BASE_FLEET_URL=$2
|
|
|
|
rm -rf test_tuf desktop.tar.gz
|
|
|
|
SYSTEMS="macos windows linux linux-arm64" \
|
|
PKG_FLEET_URL=$BASE_FLEET_URL \
|
|
PKG_TUF_URL=$BASE_TUF_URL \
|
|
DEB_FLEET_URL=$BASE_FLEET_URL \
|
|
DEB_TUF_URL=$BASE_TUF_URL \
|
|
RPM_FLEET_URL=$BASE_FLEET_URL \
|
|
RPM_TUF_URL=$BASE_TUF_URL \
|
|
MSI_FLEET_URL=$BASE_FLEET_URL \
|
|
MSI_TUF_URL=$BASE_TUF_URL \
|
|
GENERATE_PKG=1 \
|
|
GENERATE_DEB=1 \
|
|
GENERATE_RPM=1 \
|
|
GENERATE_MSI=1 \
|
|
ENROLL_SECRET=6/EzU/+jPkxfTamWnRv1+IJsO4T9Etju \
|
|
FLEET_DESKTOP=1 \
|
|
USE_FLEET_SERVER_CERTIFICATE=1 \
|
|
SKIP_SERVER=1 \
|
|
./tools/tuf/test/main.sh
|
|
|
|
rm -f file-server
|
|
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o file-server ./tools/file-server
|
|
chmod +x ./file-server
|
|
|
|
TAG=testing
|
|
docker build -t $TAG -f tools/tuf/test/Dockerfile .
|