stash

Stash Docker Image

自动构建

已弃用的Git本地源代码管理工具,提供安全、快速且企业级的Git源代码管理功能,现迁移为Bitbucket Server。

87 次收藏下载次数: 0状态:自动构建维护者:atlassian仓库类型:镜像最近更新:
下载命令
点击查看

This image has been deprecated!

Stash is now Bitbucket Server. For the latest Docker images, checkout the new repository from https://bitbucket.org/atlassian/docker-atlassian-bitbucket-server or https://hub.docker.com/r/atlassian/bitbucket-server.

To read all the details http://go.atlassian.com/bitbucket-server-4.0.

Stash Docker images are no longer supported and are not recommended for production use.

Overview

This Docker container makes it easy to get an instance of Stash up and running for evaluative purposes. Atlassian is not yet able to provide support for using Docker in production.

Quick Start

For the STASH_HOME directory that is used to store the repository data (amongst other things) we recommend mounting a host directory as a https://docs.docker.com/userguide/dockervolumes/#mount-a-host-directory-as-a-data-volume:

Set permissions for the data directory so that the runuser can write to it:

$> docker run -u root -v /data/stash:/var/atlassian/application-data/stash atlassian/stash chown -R daemon  /var/atlassian/application-data/stash

Start Atlassian Stash:

$> docker run -v /data/stash:/var/atlassian/application-data/stash --name="stash" -d -p 7990:7990 -p 7999:7999 atlassian/stash

Success. Stash is now available on http://localhost:7990*

Please ensure your container has the necessary resources allocated to it. We recommend 2GiB of memory allocated to accommodate both the application server and the git processes. See https://confluence.atlassian.com/display/STASH/Supported+platforms for further information.

* Note: If you are using boot2docker on Mac OS X, please use open http://$(boot2docker ip):7990 instead.

Upgrade

To upgrade to a more recent version of Stash you can simply stop the stash container and start a new one based on a more recent image:

$> docker stop stash
$> docker rm stash
$> docker run ... (See above)

As your data is stored in the data volume directory on the host it will still be available after the upgrade.

Note: Please make sure that you don't accidentally remove the stash container and its volumes using the -v option.

Backup

For evalutations you can use the built-in database that will store its files in the Stash home directory. In that case it is sufficient to create a backup archive of the directory on the host that is used as a volume (/data/stash in the example above).

The https://confluence.atlassian.com/display/STASH/Data+recovery+and+backups is currently not supported in the Docker setup. You can however use the https://confluence.atlassian.com/display/STASH/Using+Stash+DIY+Backup approach in case you decided to use an external database.

Read more about data recovery and backups: https://confluence.atlassian.com/display/STASH/Data+recovery+and+backups

Versioning

The latest tag matches the most recent release of Atlassian Stash. Thus atlassian/stash:latest will use the newest version of Stash available.

Alternatively you can use a specific minor version of Stash by using a version number tag: atlassian/stash:3.5. This will install the latest 3.5.x version that is available.

Issue tracker

Please raise an https://bitbucket.org/atlassian/docker-atlassian-stash/issues if you encounter any problems with this Dockerfile.

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 stash 镜像标签

docker pull docker.xuanyuan.run/atlassian/stash:<标签>

DockerHub 原生拉取命令

docker pull atlassian/stash:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告