forked from google/grr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fix google#353 with a temporary fix. - Update Dockerfile to use pip. - Fix problem with 3.1.0rc2 deb package config context.
- Loading branch information
Showing
10 changed files
with
64 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,27 +2,33 @@ | |
FROM ubuntu:latest | ||
MAINTAINER Greg Castle [email protected] | ||
|
||
RUN mkdir -p /usr/share/grr/scripts | ||
COPY scripts/install_script_ubuntu.sh /usr/share/grr/scripts/install_script_ubuntu.sh | ||
COPY requirements.txt /usr/share/grr/requirements.txt | ||
ENV UPGRADE=false | ||
# Install our dependencies, use latest requirements.txt | ||
RUN bash /usr/share/grr/scripts/install_script_ubuntu.sh -dy -r /usr/share/grr/requirements.txt | ||
|
||
# Download the client templates now to get better caching from Docker. | ||
WORKDIR /usr/share/grr | ||
COPY scripts/download_client_templates.sh /usr/share/grr/scripts/download_client_templates.sh | ||
RUN bash /usr/share/grr/scripts/download_client_templates.sh | ||
|
||
# Copy the GRR code over | ||
ADD . /usr/share/grr/ | ||
|
||
# Compile protos | ||
RUN python makefile.py | ||
|
||
# Install GRR | ||
WORKDIR /usr/share/grr | ||
RUN bash scripts/install_server_from_src.sh -d | ||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
debhelper \ | ||
dpkg-dev \ | ||
libssl-dev \ | ||
python-dev \ | ||
python-pip \ | ||
rpm \ | ||
wget \ | ||
zip && \ | ||
pip install --upgrade pip && \ | ||
pip install virtualenv && \ | ||
pip install setuptools --upgrade && \ | ||
virtualenv /usr/share/grr-server | ||
|
||
# Pull dependencies and templates from pypi so docker can cache them. | ||
RUN . /usr/share/grr-server/bin/activate && \ | ||
pip install --pre grr-response-server && \ | ||
pip install -f https://storage.googleapis.com/releases.grr-response.com/index.html grr-response-templates | ||
|
||
# Copy the GRR code over. | ||
ADD . /usr/src/grr/ | ||
|
||
# Now install the current version over the top. | ||
RUN . /usr/share/grr-server/bin/activate && \ | ||
pip install --force-reinstall -e /usr/src/grr/ && \ | ||
pip install --force-reinstall -e /usr/src/grr/grr/config/grr-response-server | ||
|
||
COPY scripts/docker-entrypoint.sh / | ||
|
||
|
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,3 +1,9 @@ | ||
grr-server (3.1.0-2) unstable; urgency=low | ||
|
||
* Update | ||
|
||
-- GRR development team <[email protected]> Thu, 14 Apr 2016 18:16:26 -0700 | ||
|
||
grr-server (3.1.0-1) unstable; urgency=low | ||
|
||
* Update | ||
|
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
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
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