Created
April 28, 2018 05:39
-
-
Save packetpilot/5a2aa2f57a16c3b7b0f7ce7127d6c76b to your computer and use it in GitHub Desktop.
Jira on Debian in Docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:latest | |
# This'll put Jira Server on top of debian | |
# by way of the the binary installer. | |
# | |
# Total size should be ~525.8MB | |
# | |
# based loosely on @kelseyhightower's | |
# CentOS+tarball variant: goo.gl/xPgmq3 | |
ENV \ | |
JIRA_APPDIR="/opt/atlassian/jira" \ | |
JIRA_HOME="/opt/jira-data" \ | |
JIRA_RELEASE="7.9.1" \ | |
PAYLOAD="atlassian-jira-software" \ | |
PLAT="x64" \ | |
TYPE="bin" \ | |
URL_BASE="https://www.atlassian.com/software/jira/downloads/binary/" \ | |
A1="o" \ | |
A2="2" \ | |
A3="/opt/atlassian/jira" \ | |
A4="/opt/jira-data" \ | |
A5="1" \ | |
A6="n" \ | |
A7="i" \ | |
A8="n" | |
RUN \ | |
apt update && apt install -y curl && \ | |
apt clean all && \ | |
mkdir -p ${JIRA_HOME} && \ | |
curl --location ${URL_BASE}/${PAYLOAD}-${JIRA_RELEASE}-${PLAT}.${TYPE} \ | |
-o ${JIRA_HOME}/${PAYLOAD}-${JIRA_RELEASE}.${TYPE} && \ | |
chmod +x ${JIRA_HOME}/${PAYLOAD}-${JIRA_RELEASE}.${TYPE} && \ | |
( \ | |
echo "${A1}" && \ | |
echo "${A2}" && \ | |
echo "${A3}" && \ | |
echo "${A4}" && \ | |
echo "${A5}" && \ | |
echo "${A6}" && \ | |
echo "${A7}" && \ | |
echo "${A8}" \ | |
) | ${JIRA_HOME}/${PAYLOAD}-${JIRA_RELEASE}.${TYPE} && \ | |
rm -f ${JIRA_HOME}/${PAYLOAD}-${JIRA_RELEASE}.${TYPE} && \ | |
echo 'jira.home = ${JIRA_HOME}' > \ | |
${JIRA_APPDIR}/atlassian-jira/WEB-INF/classes/jira-application.properties | |
ENTRYPOINT \ | |
[ "sh", "-c", "${JIRA_APPDIR}/bin/catalina.sh run" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment