-
Notifications
You must be signed in to change notification settings - Fork 588
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/google/timesketch into mans
- Loading branch information
Showing
14 changed files
with
70 additions
and
90 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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 @@ | ||
# Use the official Docker Hub Ubuntu 18.04 base image | ||
FROM ubuntu:18.04 | ||
|
||
# Setup install environment and Timesketch dependencies | ||
RUN apt-get update && apt-get -y install \ | ||
apt-transport-https \ | ||
apt-utils \ | ||
ca-certificates \ | ||
git \ | ||
libffi-dev \ | ||
lsb-release \ | ||
software-properties-common \ | ||
python3-dev \ | ||
python3-pip \ | ||
python3-psycopg2 \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Install Plaso | ||
RUN add-apt-repository ppa:gift/stable | ||
RUN apt-get update && apt-get -y install \ | ||
plaso-tools \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Use Python 3 pip (pip3) to install Timesketch | ||
RUN pip3 install https://github.com/google/timesketch/archive/master.zip |
File renamed without changes.
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,5 @@ | ||
steps: | ||
- name: 'gcr.io/cloud-builders/docker' | ||
args: [ 'build', '-t', 'gcr.io/$PROJECT_ID/release/timesketch:latest', '-t', 'gcr.io/$PROJECT_ID/release/timesketch:$TAG_NAME', '-f', 'Dockerfile-prod', '.' ] | ||
dir: 'docker/build/' | ||
images: ['gcr.io/$PROJECT_ID/release/timesketch:latest', 'gcr.io/$PROJECT_ID/release/timesketch:$TAG_NAME'] |
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,4 +1,4 @@ | ||
## Development | ||
## Docker for development | ||
|
||
You can run Timesketch on Docker in development mode. | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM gcr.io/timesketch-build/release/timesketch:latest | ||
|
||
# Copy Timesketch config files into /etc/timesketch | ||
ADD . /tmp/timesketch | ||
RUN mkdir /etc/timesketch | ||
RUN cp /tmp/timesketch/data/timesketch.conf /etc/timesketch/ | ||
RUN cp /tmp/timesketch/data/features.yaml /etc/timesketch/ | ||
RUN cp /tmp/timesketch/data/sigma_config.yaml /etc/timesketch/ | ||
|
||
# Copy the entrypoint script into the container | ||
COPY docker/e2e/docker-entrypoint.sh / | ||
RUN chmod a+x /docker-entrypoint.sh | ||
|
||
# Expose the port used by Timesketch | ||
EXPOSE 5000 | ||
|
||
# Load the entrypoint script to be run later | ||
ENTRYPOINT ["/docker-entrypoint.sh"] | ||
|
||
# Invoke the entrypoint script | ||
CMD ["timesketch"] |
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
File renamed without changes.
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,3 @@ | ||
# Docker for production | ||
|
||
Production ready setup is not yet implemented. |