Sign inSign up

mhubig/atlassian-stash

By mhubig

•Updated over 10 years ago

Atlassian Stash docker image.

Image
0

1.3K

mhubig/atlassian-stash repository overview

⁠Atlassian stash

This is the source for the automated build of the trusted mhubig/atlassian-stash image. For more Informations on the webapp please refere to the offical Atlassian stash website⁠.

⁠Prerequisites

In order to use this image you need at least docker 1.6.0⁠ and docker-compose 1.2.0⁠.

⁠Run the application
# rebuild the docker images
$ docker-compose build

# restart the docker images
$ docker-compose up -d

# inspect the logs
$ docker-compose logs

If you deploy the app for the first time you may need to restore the database from a backup!

⁠Debug (aka. go inside) an image
# execute a bash shell
$ docker exec -it atlassianstash_stash_1 bash
⁠Backup
# backup the home folder
$ tar czf backup/stash-home_$(date +%F).tgz home

# backup the stash database
$ docker run -it --rm --link atlassianstash_database_1:db \
  -v $(pwd)/tmp:/tmp postgres sh -c 'pg_dump -U stash \
    -h "$DB_PORT_5432_TCP_ADDR" -w stash > /tmp/stash.dump'
⁠Restore
# unpack a homefolder backup
$ tar xzvf backup/home_2015-05-02.tgz --strip=1 -C home

# restore the database backup
$ docker run -it --rm --link atlassianstash_database_1:db \
    -v $(pwd)/tmp:/tmp postgres sh -c 'pg_restore -U stash \
    -h "$DB_PORT_5432_TCP_ADDR" -n public -w -d stash \
    /tmp/stash.dump'

Tag summary

Content type

Image

Digest

sha256:a99d6b6eb…

Size

614.3 MB

Last updated

over 10 years ago

docker pull mhubig/atlassian-stash