diff --git a/Dockerfile b/Dockerfile index 2e68793b73f116399b6bbad4feb45faadc37485b..40c3976782e383c292c0350175a487b27f272da8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,40 +1,11 @@ # JIRA # # REPOSITORY registry.codemate.se/jira -# VERSION 1.0.0 +# VERSION 1.1.0 -FROM dockerfile/java +FROM registry.codemate.se/java:1.0.0 MAINTAINER Erik Hedenström <erik@codemate.se> -# Set the env variables to non-interactive -ENV DEBIAN_FRONTEND noninteractive -ENV DEBIAN_PRIORITY critical -ENV DEBCONF_NOWARNINGS yes - -# Upgrade packages -RUN \ - apt-get -y update && \ - apt-get -y upgrade - -# Set Timezone -RUN \ - echo "Europe/Stockholm" > /etc/timezone && \ - dpkg-reconfigure -f noninteractive tzdata - -# Fix locale -RUN \ - locale-gen en_US.UTF-8 && \ - echo "LANG=\"en_US.UTF-8\"" > /etc/default/locale && \ - echo "LANGUAGE=\"en_US.UTF8\"" >> /etc/default/locale && \ - echo "LC_ALL=\"en_US.UTF8\"" >> /etc/default/locale - -# Import self-signed cert as trusted CA -RUN \ - mkdir -p /usr/share/ca-certificates/extra && \ - openssl s_client -servername cert.codemate.se -connect codemate.se:443 </dev/null | sed -ne '/--BEGIN CERTIFICATE--/,/--END CERTIFICATE--/p' > /usr/share/ca-certificates/extra/codemate.crt && \ - update-ca-certificates && \ - keytool -import -noprompt -trustcacerts -keystore /usr/lib/jvm/java-7-oracle/jre/lib/security/cacerts -storepass changeit -noprompt -alias codemate-self-signed -file /usr/share/ca-certificates/extra/codemate.crt - # Install and configure Exim RUN \ apt-get -y install exim4-daemon-light && \ @@ -48,14 +19,14 @@ RUN \ sed -i -e "s/^bind-address\s*=\s*127.0.0.1/bind-address = 0.0.0.0/" /etc/mysql/my.cnf # Default Environment -ENV JIRA_VERSION 6.3.1 +ENV JIRA_VERSION 6.3.4 ENV JIRA_HOME /home/jira # Add startup script ADD init.sh /init.sh # Expose ports -EXPOSE 25 3306 8080 8081 +EXPOSE 8080 8081 # Start JIRA CMD ["sh", "/init.sh"] diff --git a/README.md b/README.md index bc4af0556320001579c41094dfd8c6eb6e86f597..a210bcaa0af5ac3f4c4692d0cf97d71a7a102166 100644 --- a/README.md +++ b/README.md @@ -39,10 +39,10 @@ docker run -v /data/jira:/home/jira -d registry.codemate.se/jira ### Running a different JIRA version -By default, the container downloads and installs JIRA v6.3.1 on the first boot. To specify which version to install, set the environment variable `JIRA_VERSION`: +By default, the container downloads and installs JIRA v6.3.4 on the first boot. To specify which version to install, set the environment variable `JIRA_VERSION`: ``` -docker run -e JIRA_VERSION=6.3.1 -d registry.codemate.se/jira +docker run -e JIRA_VERSION=6.3.4 -d registry.codemate.se/jira ``` ### Overriding JIRA files @@ -84,7 +84,7 @@ The following example shows the options we use for our CI environment: docker run \ --name jira \ -e JAVA_OPTS=-Xmx1024m \ - -e JIRA_VERSION=6.3.1 \ + -e JIRA_VERSION=6.3.4 \ -e JIRA_OVERLAY=http://10.0.0.1/jira-config.tgz \ -v /opt/application-data/jira:/home/jira \ -p 8080:8080 \ @@ -99,13 +99,11 @@ docker run \ ## Variables * `JIRA_HOME` - JIRA home directory (default `/home/jira`) -* `JIRA_VERSION` - The version to install an run (default `6.3.1`) +* `JIRA_VERSION` - The version to install an run (default `6.3.4`) * `JIRA_OVERLAY` - A URL pointing to an tarball overlay * `MYSQL_INIT` - A URL pointing to an SQL script ## Exposed ports -* `25` - Exim SMTP -* `3306` - MySQL * `8080` - JIRA web interface * `8081` - JIRA web interface (extra)