diff options
author | Gergely Csatari <gergely.csatari@nokia.com> | 2021-09-08 11:53:02 +0300 |
---|---|---|
committer | Eric Debeau <eric.debeau@orange.com> | 2021-09-24 20:04:24 +0000 |
commit | 9205c55c1acbb4fb180594b14e50ef20dca9b0db (patch) | |
tree | 4f703ad866dd33017ac14d98fdfd6e57f02c2b79 /tools/Dockerfile | |
parent | 12d98eaf24a1c673c867a796520204e7bbb27142 (diff) |
Docker build and run environemnt for c2m
- Dockerfile to build a container for c2m
- A script to build the container
- A script to run the container
- A wrapper script to run c2m in the container
Issue-ID: DOC-762
Signed-off-by: Gergely Csatari <gergely.csatari@nokia.com>
Change-Id: Icea55512658bbb8a78934f2a5b4313345927e7b7
Diffstat (limited to 'tools/Dockerfile')
-rw-r--r-- | tools/Dockerfile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/Dockerfile b/tools/Dockerfile new file mode 100644 index 000000000..e364a74d1 --- /dev/null +++ b/tools/Dockerfile @@ -0,0 +1,24 @@ +# Copyright 2021 Nokia +# Licensed under the Apache License 2.0 +# SPDX-License-Identifier: Apache-2.0 + +ARG build_env="no_proxy" + +#FROM openjdk:17-slim-bullseye as build_no_proxy +FROM openjdk:8-jdk-slim as build_no_proxy +ONBUILD RUN echo "I don't copy proxy settings" + +FROM openjdk:8-jdk-slim as build_proxy +ONBUILD COPY proxy.conf /etc/apt/apt.conf.d/proxy.conf + +################ Add all non proxy dependent stuff here +FROM build_${build_env} +ARG DEBIAN_FRONTEND=noninteractive +COPY c2m.sh ./c2m.sh +COPY c2m-wrapper.sh ./c2m-wrapper.sh + +# Install wget +RUN apt-get update && apt-get -y install apt-utils +RUN apt-get -y install wget pandoc + +RUN wget -q https://repo1.maven.org/maven2/de/viaboxx/markdown/confluence2md/2.1/confluence2md-2.1-fat.jar |