Git Product home page Git Product logo

stash's Introduction

Docker + Stash + Database container = Love!

Introduction

This is a fork from https://github.com/docker-atlassian/stash. The main proposal is to have an updated version of the docker and with a separated database container, so everyone can choose either the database engine, create a new one or use an existing container.

Installation

You can build the image yourself.

git clone https://github.com/ignaciolflores/stash.git
cd stash
docker build -t="$USER/stash:3.9.1" .

Quick Start

Pull the latest postgres version from the Docker Trusted Build.

docker pull sameersbn/postgresql:9.1-1

Create an instance of the docker database

docker run --name jira-postgresql -d \
  -e 'DB_USER=dbuser' -e 'DB_PASS=dbpass' -e 'DB_NAME=dbname' \
  sameersbn/postgresql:9.1-1

Or create a new database

CREATE ROLE stashuser WITH LOGIN PASSWORD 'jellyfish' VALID UNTIL 'infinity';
 
CREATE DATABASE stashdb WITH ENCODING='UTF8' OWNER=stashuser CONNECTION LIMIT=-1;

Create an instance of the Stash docker linked to the database docker image.

docker run --name stash -d \
    -p local_port:7990 \
    -v /local/dir/application-data:/opt/atlassian/application-data \
    --link jira-postgresql:db.stash \
    "$USER"/stash:3.9.1 \
    /init.sh

When the container have started, go to the IPs port 7990 and choose the following options:

Database:

  • Type: External
  • hostname: db.stash
  • Port: 5432
  • Name: stashdb
  • Username: stashuser
  • Password: jellyfish

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Submit a Pull Request using Github

stash's People

Contributors

docker-atlassian avatar ignaciolflores avatar silverfisk avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.