aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorTaka Cho <takamune.cho@att.com>2020-08-17 18:23:00 -0400
committerTaka Cho <takamune.cho@att.com>2020-08-21 14:27:59 -0400
commit5640fd1856784bc069c348d47498e57da6c7c433 (patch)
treef3c5e4bb04a4f4238a5a45d4607506805ce6664a /packages
parenta7d8e6416439ad5129059a5612896a49bdee0fa8 (diff)
move to alpine from debian
moving to alpine-jdk base for drool-pdp apps csit drools/apps tested in windriver labs: http://10.12.6.96:8080/tmp/tmp.yxBE30uD1m-robot-workdir/report.html 1, httpie has to install via apk 2, http-prompt has to install via pip Issue-ID: POLICY-2787 Change-Id: I3d1bd86c7c2c3c48e9ac2a823b988bb9b1bdf98f Signed-off-by: Taka Cho <takamune.cho@att.com>
Diffstat (limited to 'packages')
-rw-r--r--packages/docker/src/main/docker/Dockerfile18
1 files changed, 9 insertions, 9 deletions
diff --git a/packages/docker/src/main/docker/Dockerfile b/packages/docker/src/main/docker/Dockerfile
index 20081f71..20db684f 100644
--- a/packages/docker/src/main/docker/Dockerfile
+++ b/packages/docker/src/main/docker/Dockerfile
@@ -1,4 +1,4 @@
-FROM onap/policy-jdk-debian:2.0.1
+FROM onap/policy-jdk-alpine:2.0.2
LABEL maintainer="Policy Team"
@@ -10,6 +10,7 @@ ARG MVN_RELEASE_REPO_URL
ARG http_proxy
ENV BUILD_VERSION_DROOLS $BUILD_VERSION_DROOLS
+ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk
ENV POLICY_INSTALL $POLICY_INSTALL
ENV POLICY_INSTALL_INIT $POLICY_INSTALL/config
ENV POLICY_LOGS $POLICY_LOGS
@@ -20,16 +21,15 @@ ENV MVN_SNAPSHOT_REPO_URL $MVN_SNAPSHOT_REPO_URL
ENV MVN_RELEASE_REPO_URL $MVN_RELEASE_REPO_URL
ENV http_proxy $http_proxy
-RUN apt-get update \
- && apt-get install -y \
- httpie \
- python3 python3-pip \
- mariadb-client \
- file bash-completion \
- net-tools netcat sudo \
+RUN apk update && \
+ apk add --no-cache python3 \
+ mariadb-client py3-pip \
+ file bash-completion dpkg httpie \
+ net-tools netcat-openbsd sudo less vim openssl \
&& update-alternatives --install /usr/bin/python python /usr/bin/python3 0 \
&& update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1 \
- && pip install http-prompt
+ && pip install --upgrade setuptools http-prompt \
+ && rm -r /root/.cache
RUN mkdir -p $POLICY_CONFIG $POLICY_LOGS $POLICY_INSTALL_INIT && \
chown -R policy:policy $POLICY_HOME $POLICY_LOGS $POLICY_INSTALL