From 5d07aec8270ab69cf7527323ec3b6726ffa2459d Mon Sep 17 00:00:00 2001 From: Ventz Petkov Date: Sat, 7 Jul 2018 21:28:29 -0400 Subject: [PATCH] Created auto-build image from github now that dockerhub has better auto build resources. Sadly, this means we have to delete the manual image which has over 50,000 downloads. Also, upstream update to install process: 29dc4adbdfc1412989efbaf5463e5d7d897a153b - Init Submodules --- README.md | 11 ++++------- container/Dockerfile | 3 +++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 5f84a1c..0ae77b3 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,15 @@ Docker MISP Container ===================== -### Latest Update: 6-12-2018 +### Latest Update: 7-7-2018 Following the Official MISP Ubuntu 18.04 LTS build instructions. -Latest Upstream Change Included: 1b72988e56b0118862fe61c1e60acab134c5073d +Latest Upstream Change Included: 29dc4adbdfc1412989efbaf5463e5d7d897a153b Github repo + build script here: https://github.com/harvard-itsecurity/docker-misp (note: after a git pull, update ```build.sh``` with your own passwords/FQDN, and then build the image) -NOTE: Cannot autobuild on DockerHub due to size+time limit, and we -refuse to break this up into multiple images and chain them just to -get around the tiny resources that DockerHub provides! - - # What is this? This is an easy and highly customizable Docker container with MISP - Malware Information Sharing Platform & Threat Sharing (http://www.misp-project.org) @@ -66,6 +61,8 @@ About ```$docker-root``` - If you are running Docker on a Mac, there are some mo We would suggest using ```/docker``` for your ```$docker-root```, and if using a Mac, adding that to the File Sharing list. +Once you have your DB directory created (```mkdir -p /docker/misp-db```), follow the 3 steps: + ## 1. Initialize Database ``` diff --git a/container/Dockerfile b/container/Dockerfile index 8f1dcfc..309cfaa 100644 --- a/container/Dockerfile +++ b/container/Dockerfile @@ -41,6 +41,9 @@ WORKDIR /var/www/MISP RUN chown -R www-data:www-data /var/www/MISP /root/.config /root/.git; \ sudo -u www-data -H git clone https://github.com/MISP/MISP.git /var/www/MISP ; \ sudo -u www-data -H git checkout tags/$(git describe --tags `git rev-list --tags --max-count=1`) ; \ + sudo -u www-data -H git submodule init ; \ + sudo -u www-data -H git submodule update ; \ + sudo -u www-data -H git submodule foreach git config core.filemode false ; \ sudo -u www-data -H git config core.filemode false ; \ echo