Skip to content

Run Atlassian SDK in docker #1038

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,26 @@ Getting Started
* Install pyenv_
* Install related atlassian product for testing through SDK_ or use the cloud instance
* `apt install libkrb5-dev`
* Install Kerberos Dependency: `pip install -r requirements-dev.txt`
* Install Kerberos Dependency:

::

pip install -r requirements-dev.txt

* Start up related product:
- Standalone product atlas-run-standalone_
- For cloud product, just do registration
- Standalone product atlas-run-standalone_
- For cloud product, just do registration
- Atlassian SDK in doker
- Build the image
::

make docker-atlassian-standalone

- Run an Atlassian standalone product
::

docker run -i -t -p 6990:6990 atlassian-sdk:latest atlas-run-standalone --product bamboo

* Run the quality checks with `make qa` or if you have docker installed with `make docker-qa`
* Send pull request

Expand Down
17 changes: 17 additions & 0 deletions Dockerfile.standalone
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM openjdk:11

ARG DEBIAN_FRONTEND=noninteractive

# Add Atlassian SDK repo
RUN echo "deb https://packages.atlassian.com/debian/atlassian-sdk-deb/ stable contrib" >>/etc/apt/sources.list \
&& wget https://packages.atlassian.com/api/gpg/key/public \
&& apt-key add public \
&& apt-get update

# Install Atlassian plugin SDK
RUN apt-get install -y atlassian-plugin-sdk

# Clean
RUN apt-get clean

WORKDIR /opt/atlassian
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

PYTHON_VERSION ?= 3.7

ATLASSIAN_SDK ?= atlassian-sdk
QA_CONTAINER ?= atlassian-python-api-qa-$(PYTHON_VERSION)
TEST_OPTS ?=

Expand Down Expand Up @@ -48,3 +49,8 @@ docker-qa-build: Dockerfile.qa requirements.txt requirements-dev.txt
--tag $(QA_CONTAINER) \
--build-arg PYTHON_VERSION=$(PYTHON_VERSION) \
--file $< .

docker-atlassian-standalone: Dockerfile.standalone
docker build \
--tag $(ATLASSIAN_SDK) \
--file $< .