Skip to content
Snippets Groups Projects
Commit 05595854 authored by Suru Dissanaike's avatar Suru Dissanaike
Browse files

combined docker file

parent 749c69b6
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,15 @@ RUN \ ...@@ -26,7 +26,15 @@ RUN \
strace \ strace \
supervisor \ supervisor \
net-tools \ net-tools \
iputils-ping iputils-ping \
# static code analysis
unzip \
python3 \
python3-setuptools \
default-jre \
cppcheck \
flawfinder
# Install dependent libraries # Install dependent libraries
...@@ -40,12 +48,12 @@ RUN \ ...@@ -40,12 +48,12 @@ RUN \
libcmocka-dev \ libcmocka-dev \
libcmocka0 libcmocka0
# Remove cached packages. # Remove cached packages.
RUN rm -rf /var/lib/apt/lists/* RUN rm -rf /var/lib/apt/lists/*
RUN mkdir /opt/dev RUN mkdir /opt/dev
RUN mkdir /etc/config
# Install JSON-C # Install JSON-C
RUN \ RUN \
...@@ -111,8 +119,12 @@ RUN \ ...@@ -111,8 +119,12 @@ RUN \
make && \ make && \
make install make install
#install cpd
WORKDIR /home/user
RUN \
wget https://github.com/pmd/pmd/releases/download/pmd_releases%2F6.19.0/pmd-bin-6.19.0.zip && \
unzip pmd-bin-6.19.0.zip
RUN mkdir /etc/config
WORKDIR /opt/work WORKDIR /opt/work
......
FROM ubuntu:18.04
LABEL maintainer="suru.dissanaike@iopsys.eu"
LABEL build="docker build -t iopsys-staticcodeanalysis ."
LABEL run="docker run -it --entrypoint /bin/bash --rm -v ${PWD}:/opt/work iopsys-staticcodeanalysis"
# docker build -t iopsys-staticcodeanalysis .
# docker images
# docker tag <image id> surudissanaikeiopsys/iopsys-staticcodeanalysis:0.5
# docker push surudissanaikeiopsys/iopsys-staticcodeanalysis:0.5
RUN \
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
# general tools
wget \
build-essential \
lcov \
apt-utils \
autoconf \
automake \
pkg-config \
libtool \
sudo \
# static code analysis
unzip \
python3 \
python3-setuptools \
default-jre \
cppcheck \
flawfinder
#install cpd
WORKDIR /home/user
RUN \
wget https://github.com/pmd/pmd/releases/download/pmd_releases%2F6.19.0/pmd-bin-6.19.0.zip && \
unzip pmd-bin-6.19.0.zip
WORKDIR /opt/work
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment