Skip to content
This repository was archived by the owner on Mar 11, 2019. It is now read-only.

Commit 9be1f24

Browse files
committed
refactor(Docker): Rework of cli and cpu-sampling Docker images
Using Ubuntu Xenial (LTS) as base to benefit from stable packages instead of compiling dependencies.
1 parent e900d9f commit 9be1f24

File tree

6 files changed

+29
-68
lines changed

6 files changed

+29
-68
lines changed

docker/Dockerfile-cli

Lines changed: 0 additions & 23 deletions
This file was deleted.

docker/cli/Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM ubuntu:xenial
2+
3+
ENV REQUIRED_PACKAGES openjdk-8-jre-headless libpfm4 libbluetooth3 libbluetooth-dev
4+
5+
RUN apt-get update && \
6+
apt-get install -y ${REQUIRED_PACKAGES} && \
7+
apt-get clean && \
8+
rm -rf /var/lib/apt/lists/*
9+
10+
COPY powerapi-cli/target/universal/stage /powerapi-cli
11+
12+
WORKDIR /powerapi-cli
13+
14+
ENTRYPOINT ["/powerapi-cli/bin/powerapi"]

docker/libpfm/config.mk.patch

Lines changed: 0 additions & 11 deletions
This file was deleted.

docker/sampling/Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM ubuntu:xenial
2+
3+
ENV REQUIRED_PACKAGES openjdk-8-jre-headless libpfm4 libbluetooth3 libbluetooth-dev psmisc cpulimit stress
4+
5+
RUN apt-get update && \
6+
apt-get install -y ${REQUIRED_PACKAGES} && \
7+
apt-get clean && \
8+
rm -rf /var/lib/apt/lists/*
9+
10+
COPY powerapi-sampling-cpu/target/universal/stage /powerapi-sampling-cpu
11+
12+
WORKDIR /powerapi-sampling-cpu
13+
14+
ENTRYPOINT ["/powerapi-sampling-cpu/bin/sampling-cpu"]
15+
CMD ["--all", "results/sampling", "results/processing", "results/computing"]

docker/sampling/Dockerfile-sampling

Lines changed: 0 additions & 25 deletions
This file was deleted.

docker/sampling/run.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)