-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
23 lines (21 loc) · 996 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM openjdk:8-jre-alpine
MAINTAINER John Stucklen <[email protected]>
ENV CONNECTOR_JAR_PREFIX=repo-connector-1.5.5
# gettext is used for the envsubst command to make environment variable
# substitution into the repo-connector config file easy. The remainder
# of the packages are needed for https access for wget.
RUN apk --no-cache add gettext openssl unzip ca-certificates tzdata \
&& update-ca-certificates
WORKDIR /opt
RUN wget https://smartling-connector-public.s3.amazonaws.com/repo_connector/${CONNECTOR_JAR_PREFIX}-bin.zip \
&& unzip ${CONNECTOR_JAR_PREFIX}-bin.zip \
&& ln -s ${CONNECTOR_JAR_PREFIX} repo-connector \
&& rm ${CONNECTOR_JAR_PREFIX}-bin.zip \
&& rm repo-connector/cfg/repo-connector.conf
WORKDIR /opt/repo-connector
RUN adduser -D smartling
USER smartling
COPY start-connector.sh start-connector.sh
COPY stop-connector.sh stop-connector.sh
COPY repo-connector-template.conf repo-connector-template.conf
ENTRYPOINT ["./start-connector.sh"]