-
Notifications
You must be signed in to change notification settings - Fork 770
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a3580a
commit 2b87263
Showing
8 changed files
with
135 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
# "-component" "admin_ui" | ||
# "-config" "/configs/server/grr.server.yaml" | ||
|
||
FROM ubuntu:22.04 AS builder | ||
FROM ubuntu:22.04 | ||
|
||
LABEL maintainer="[email protected]" | ||
|
||
|
@@ -66,4 +66,4 @@ RUN ${VIRTUAL_ENV}/bin/python grr/proto/makefile.py && \ | |
|
||
WORKDIR / | ||
|
||
ENTRYPOINT [ "grr_server" ] | ||
ENTRYPOINT [ "grr_server" ] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
services: | ||
grr-admin-ui: | ||
image: ghcr.io/google/grr:testing | ||
|
||
grr-fleetspeak-frontend: | ||
build: ghcr.io/google/grr:testing | ||
|
||
grr-worker: | ||
build: ghcr.io/google/grr:testing | ||
|
||
linux-client: | ||
build: ghcr.io/google/grr:testing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
# End-to-end test require a user on a client, which e.g. sets the | ||
# home directory for file collection. | ||
|
||
useradd -m testuser && | ||
echo "[7] [01234] [ts/3] [testuser] [pts/3 ] [100.100.10.10 ] [100.100.10.10 ] [Thu Jan 01 00:00:00 1970 UTC]" > wtmp.txt && \ | ||
utmpdump /var/log/wtmp >> wtmp.txt && \ | ||
utmpdump --reverse < wtmp.txt > /var/log/wtmp && \ | ||
utmpdump /var/log/wtmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#! /bin/bash | ||
|
||
# GRR client docker compose initialization script. | ||
# This script runs when starting the client in the | ||
# docker-compose stack. It repacks the client using the | ||
# provided configuration files and installs the resulting | ||
# debian package if no installers or fleetspeak-client | ||
# binary are found. | ||
# | ||
# This script assumes the client-config files | ||
# (docker_config_files/client) to be mounted at /configs. | ||
|
||
TEMPLATE_DIR="/client_templates" | ||
INSTALLERS_DIR="/client_installers" | ||
|
||
|
||
if [ -z "$(ls -A ${INSTALLERS_DIR})" ]; then | ||
echo "Repack clients" | ||
grr_client_build repack_multiple \ | ||
--templates ${TEMPLATE_DIR}/*/*.zip \ | ||
--repack_configs /configs/grr.client.yaml \ | ||
--output_dir ${INSTALLERS_DIR} | ||
fi | ||
|
||
if ! command -v fleetspeak-client &> /dev/null; then | ||
echo "Install Client from debian package" | ||
dpkg -i ${INSTALLERS_DIR}/grr.client/*.deb | ||
fi | ||
|
||
fleetspeak-client -config /configs/client.config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters