Skip to content

Commit

Permalink
Run Atlassian SDK in docker (#1038)
Browse files Browse the repository at this point in the history
  • Loading branch information
infame-io authored and gonchik committed Sep 3, 2022
1 parent 3e816fc commit abe8bb2
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 3 deletions.
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 $< .

0 comments on commit abe8bb2

Please sign in to comment.