-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
90 lines (71 loc) · 2.44 KB
/
Dockerfile
File metadata and controls
90 lines (71 loc) · 2.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# WhyFlow Docker Image
# This Dockerfile creates an environment for running WhyFlow
# for ICSE 2026 Artifact Evaluation
#
# Build from repository root:
# docker build -t whyflow .
# docker run -p 3000:3000 whyflow
FROM ubuntu:22.04
LABEL maintainer="[email protected]"
LABEL description="WhyFlow: Interrogative Debugger for Sensemaking Taint Analysis"
LABEL version="1.0"
# Prevent interactive prompts during installation
ENV DEBIAN_FRONTEND=noninteractive
# Install system dependencies and Soufflé build dependencies
RUN apt-get update && apt-get install -y \
curl \
git \
python3 \
python3-pip \
build-essential \
wget \
cmake \
bison \
flex \
libffi-dev \
libncurses5-dev \
libtinfo-dev \
libsqlite3-dev \
sqlite3 \
mcpp \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/*
# Build and install Soufflé from source (works on all architectures)
RUN git clone --depth 1 --branch 2.4.1 https://github.com/souffle-lang/souffle.git /tmp/souffle && \
cd /tmp/souffle && \
cmake -S . -B build -DCMAKE_INSTALL_PREFIX=/usr/local && \
cmake --build build -j$(nproc) && \
cmake --install build && \
rm -rf /tmp/souffle && \
souffle --version
# Install Node.js 18.x
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
&& apt-get install -y nodejs
# Install Meteor
RUN curl https://install.meteor.com/ | sh
# Install Python dependencies for statistical analysis
RUN pip3 install pandas numpy scipy matplotlib jupyter
# Set working directory
WORKDIR /app
# Allow Meteor to run as root (safe in Docker containers, common for CI/builds)
ENV METEOR_ALLOW_SUPERUSER=true
# Copy the WhyFlow application
COPY . /app/
# Install npm dependencies at root level
RUN npm install 2>/dev/null || true
# Install Meteor app dependencies
WORKDIR /app/taint_debug_app/taint_debug
# Update Meteor to a version compatible with Linux (Docker platform)
# Meteor 2.x is not available for Linux; using 3.3.2 as recommended
RUN meteor update --release [email protected]
# Install npm dependencies
RUN meteor npm install
# Set environment variables
ENV ROOT_URL=http://localhost:3000
ENV PORT=3000
# Expose the Meteor port
EXPOSE 3000
# Set working directory back to app root for the entrypoint
WORKDIR /app/taint_debug_app/taint_debug
# Default command: run the Meteor application
CMD ["meteor", "run", "--allow-superuser"]