-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
44 lines (34 loc) · 1.52 KB
/
Dockerfile
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
FROM ubuntu:18.04
MAINTAINER Tremolo Security, Inc. - Docker <[email protected]>
ENV BUILDER_VERSION=1.0 \
JDK_VERSION=1.11.0 \
MAVEN_VERSION=3.3.9 \
OPENUNISON_VERSION="1.0.16"
LABEL io.k8s.description="Platform for building Tremolo Security OpenUnison" \
io.k8s.display-name="OpenUnison Builder 1.0.16" \
io.openshift.expose-services="8080:8443" \
io.openshift.tags="builder,1.0.16,sso,identity management" \
io.openshift.s2i.scripts-url="image:///usr/local/bin/s2i"
RUN apt-get update;apt-get -y install curl openjdk-11-jdk-headless wget unzip python;apt-get -y upgrade;apt-get clean;rm -rf /var/lib/apt/lists/*; \
mkdir -p /etc/openunison && \
mkdir -p /etc/openunison-local && \
mkdir -p /usr/local/openunison && \
groupadd -r openunison -g 433 && \
useradd -u 431 -r -g openunison -d /usr/local/openunison -s /sbin/nologin -c "OpenUnison Docker image user" openunison && \
mkdir -p /usr/local/openunison/work && \
mkdir -p /usr/local/openunison/war && \
mkdir -p /usr/local/openunison/config && \
mkdir -p /usr/local/openunison/quartz && \
mkdir -p /usr/local/openunison/amq && \
mkdir -p /usr/local/openunison/bin
ADD run_openunison.sh /usr/local/openunison/bin/run_openunison.sh
ADD check_alive.py /usr/local/openunison/bin/check_alive.py
RUN chown -R openunison:openunison \
/etc/openunison \
/etc/openunison-local \
/usr/local/openunison \
&& chmod +x /usr/local/openunison/bin/*
USER 431
EXPOSE 8080
EXPOSE 8443
CMD ["usage"]