-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
executable file
·29 lines (19 loc) · 1.33 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
FROM ubuntu:20.04
MAINTAINER Tremolo Security, Inc. - Docker <[email protected]>
ENV JDK_VERSION=11 \
OPENUNISON_OPERATOR_VERSION=1.6.0
LABEL io.k8s.description="OpenUnison operator" \
io.k8s.display-name="OpenUnison Operator"
RUN apt-get update;apt-get -y install openjdk-11-jdk-headless curl apt-transport-https gnupg krb5-user && \
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - && \
echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" > /etc/apt/sources.list.d/kubernetes.list && \
apt-get update; apt-get install -y kubectl ; apt-get -y upgrade;apt-get clean;rm -rf /var/lib/apt/lists/*; \
groupadd -r openunison -g 433 && \
mkdir /usr/local/openunison && \
useradd -u 431 -r -g openunison -d /usr/local/openunison -s /sbin/nologin -c "OpenUnison Operator image user" openunison && \
curl https://nexus.tremolo.io/repository/betas/com/tremolosecurity/kubernetes/javascript-operator/$OPENUNISON_OPERATOR_VERSION/javascript-operator-$OPENUNISON_OPERATOR_VERSION.jar -o /usr/local/openunison/javascript-operator.jar
ADD src/main/js /usr/local/openunison/js
ADD src/main/js-external /usr/local/openunison/js-external
RUN chown -R openunison:openunison /usr/local/openunison
USER 431
CMD ["/usr/bin/java", "-jar", "/usr/local/openunison/javascript-operator.jar"]