mirror of https://github.com/MISP/misp-docker
Split Core and Modules version args - fixes #36
parent
c57f2669ec
commit
458ddd125d
|
@ -49,7 +49,7 @@ services:
|
|||
build:
|
||||
context: modules/.
|
||||
args:
|
||||
- MISP_TAG=${MISP_TAG}
|
||||
- MODULES_TAG=${MODULES_TAG}
|
||||
environment:
|
||||
- "REDIS_BACKEND=redis"
|
||||
depends_on:
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
FROM python:3.7-slim-buster as builder
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
ARG MISP_TAG
|
||||
ARG MODULES_TAG
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
cmake \
|
||||
|
@ -18,7 +18,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||
RUN mkdir /wheel
|
||||
WORKDIR /srv
|
||||
|
||||
RUN git clone --branch ${MISP_TAG} --depth 1 https://github.com/MISP/misp-modules.git /srv/misp-modules; \
|
||||
RUN git clone --branch ${MODULES_TAG} --depth 1 https://github.com/MISP/misp-modules.git /srv/misp-modules; \
|
||||
cd /srv/misp-modules || exit; sed -i 's/-e //g' REQUIREMENTS; pip3 wheel -r REQUIREMENTS --no-cache-dir -w /wheel/
|
||||
|
||||
RUN git clone --depth 1 https://github.com/stricaud/faup.git /srv/faup; \
|
||||
|
|
|
@ -9,7 +9,7 @@ export $(grep -v '^#' ../.env | xargs)
|
|||
docker pull $DOCKER_REPO:modules-latest
|
||||
|
||||
docker build \
|
||||
--build-arg MISP_TAG=$MISP_TAG \
|
||||
--build-arg MODULES_TAG=$MODULES_TAG \
|
||||
--build-arg PHP_VER=$PHP_VER \
|
||||
--build-arg BUILD_RFC3339=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
|
||||
--build-arg COMMIT=$(git rev-parse --short HEAD) \
|
||||
|
|
Loading…
Reference in New Issue