Skip to content

Instantly share code, notes, and snippets.

@mapi
Created October 10, 2016 03:37
Show Gist options
  • Save mapi/93e4aff01749e9a6cc17b2055430dc9e to your computer and use it in GitHub Desktop.
Save mapi/93e4aff01749e9a6cc17b2055430dc9e to your computer and use it in GitHub Desktop.
rundeck
FROM openjdk:8-jre-alpine
ENV user rundeck
ENV group rundeck
RUN apk --update add ca-certificates curl && \
rm -rf /tmp/* /var/tmp/* /var/cache/apk/*
RUN mkdir -p /opt && \
addgroup -g 1000 ${group} && \
adduser -G ${group} -D -u 1000 -h /opt/rundeck ${user}
WORKDIR /opt/rundeck
USER ${user}
ENV RUNDECK_VERSION 2.6.9
RUN curl -Lo rundeck-launcher.jar http://dl.bintray.com/rundeck/rundeck-maven/rundeck-launcher-${RUNDECK_VERSION}.jar && \
chmod +x rundeck-launcher.jar
EXPOSE 4440
CMD ["java", "-jar", "rundeck-launcher.jar"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment