-
Notifications
You must be signed in to change notification settings - Fork 768
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 ba8f562
Showing
7 changed files
with
118 additions
and
65 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
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 |
---|---|---|
@@ -1,25 +1,7 @@ | ||
FROM ghcr.io/google/grr:grr-github-actions-docker | ||
|
||
LABEL maintainer="grr-dev@googlegroups.com" | ||
|
||
ENV TEMPLATE_DIR /client_templates | ||
ENV INSTALLERS_DIR /client_installers | ||
|
||
RUN apt-get update | ||
|
||
RUN useradd -m appveyor2 | ||
RUN echo "[7] [01234] [ts/3] [appveyor2] [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 | ||
|
||
ADD ./docker_config_files/client/ /configs | ||
|
||
RUN grr_client_build repack_multiple \ | ||
--templates ${TEMPLATE_DIR}/*/*.zip \ | ||
--repack_configs /configs/grr.client.yaml \ | ||
--output_dir ${INSTALLERS_DIR} | ||
|
||
RUN dpkg -i ${INSTALLERS_DIR}/grr.client/*.deb | ||
|
||
ENTRYPOINT [ "fleetspeak-client" ] |
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,7 @@ | ||
#!/bin/bash | ||
|
||
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,25 @@ | ||
#! /bin/bash | ||
|
||
# GRR client docker compose initialization script. | ||
# This script runs once when starting the client in the | ||
# docker-compose stack for the first time. It repacks | ||
# the client using the provided configuration files | ||
# and installs the resulting debian package. | ||
# | ||
# 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 | ||
grr_client_build repack_multiple \ | ||
--templates ${TEMPLATE_DIR}/*/*.zip \ | ||
--repack_configs /configs/grr.client.yaml \ | ||
--output_dir ${INSTALLERS_DIR} | ||
|
||
dpkg -i ${INSTALLERS_DIR}/grr.client/*.deb | ||
fi | ||
|
||
fleetspeak-client -config /configs/client.config |