在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:jira开源软件地址:https://gitee.com/zxy/jira开源软件介绍:Atlassian Software in Kubernetes (ASK) - JiraThis respository is a component of ASK Atlassian Software in Kubernetes ; and holds program-code to create Docker image for Jira Software (not Jira Core). Although the title says "Atlassian Software in Kubernetes", the container image can be run on plain Docker/Docker-Compose/Docker-Swarm, etc. This image can be used to run a single / stand-alone instance of Jira Software or a clustered setup known as Jira DataCenter. You simply need to enable certain environment variables to get that done. The source-code in this repository is released under MIT License, but the actual docker container images (binaries) built by it are not. You are free to use this source-code to build your own Jira docker images and host them whereever you want. Please remember to consider various Atlassian and Oracle related lincense limitations when doing so. Main features
UsageBuild:First, you need to build the container image docker build -t local/jira:version-tag . Usage:In it's simplest form, this image can be used by executing: $ docker run -p 8080:8080 -d local/jira:version-tag$ docker psCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES2585785edf49 local/jira "/opt/atlassian/jira/" 3 seconds ago Up 2 seconds 0.0.0.0:8080->8080/tcp stupefied_wing If you want to set it up behind a reverse proxy, use the following command: $ docker run \ -e X_PROXY_NAME=<<YOUR_PROXY_NAME>> \ -e X_PROXY_PORT=<<YOUR_PROXY_PORT>> \ -e X_PROXY_SCHEME=<<YOUR_PROXY_SCHEME>> \ -e X_CONTEXT_PATH=<<YOUR_X_CONTEXT_PATH>> \ -e .... other variables ... \ -p 8080:8080 \ -d local/jira:version-tag Note: When setting up Jira behind a (GCE/AWS/other) proxy/load balancer, make sure to setup proxy/load-balancer timeouts to large values such as 300 secs or more. (The default is set to 60 secs). It is very important to setup these timeouts, as Jira (and other atlassian software) can take significant time setting up initial database. Smaller timeouts will panic Jira setup process and it will terminate. If you run without providing any exisiting database, JIRA will run and will present you with the web-setup wizard: docker run \ -p 8080:8080 \ -d local/jira:version-tag If you want to use a different JIRA version, then simply change the version number in the Dockerfile, and rebuild the image. CertificatesSupply additional certificates from a single mounted directory. docker run \ --detach \ --name container-name \ --publish 8080:8080 \ --volume /path/to/certificates:/var/atlassian/ssl \ --volume /path/to/jira-plugins.list:/tmp/jira-plugins.list \ local/image:tag See Similar output should be shown by Importing certificate: /var/atlassian/ssl/eastwind.crt ...Certificate was added to keystoreImporting certificate: /var/atlassian/ssl/northwind.crt ...Certificate was added to keystoreImporting certificate: /var/atlassian/ssl/southwind.pem ...Certificate was added to keystoreImporting certificate: /var/atlassian/ssl/westwind.pem ...Certificate was added to keystore User provided plugins:If you want to add plugins of your choice, you can list their IDs in docker run \ -p 8080:8080 \ -v ${PWD}/jira-plugins.list:/tmp/jira-plugins.list \ -d local/jira:version-tag Environment variablesThe following environment variables can be set when building your docker image.
LinterYou can use a linter that analyze source code to flag programming errors, bugs, stylistic errors, and suspicious constructs. There is dockerlinter , which does this quite easily. Installation$ sudo npm install -g dockerlint Usage:dockerlint Dockerfile Above command will parse the file and notify you about any actual errors (such an omitted tag when : is set), and warn you about common pitfalls or bad idiom such as the common use case of ADD. In order to treat warnings as errors, use the -p flag. |
请发表评论