Skip to content

Commit abe8bb2

Browse files
infame-iogonchik
authored andcommitted
Run Atlassian SDK in docker (#1038)
1 parent 3e816fc commit abe8bb2

File tree

3 files changed

+42
-3
lines changed

3 files changed

+42
-3
lines changed

CONTRIBUTING.rst

+19-3
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,26 @@ Getting Started
1313
* Install pyenv_
1414
* Install related atlassian product for testing through SDK_ or use the cloud instance
1515
* `apt install libkrb5-dev`
16-
* Install Kerberos Dependency: `pip install -r requirements-dev.txt`
16+
* Install Kerberos Dependency:
17+
18+
::
19+
20+
pip install -r requirements-dev.txt
21+
1722
* Start up related product:
18-
- Standalone product atlas-run-standalone_
19-
- For cloud product, just do registration
23+
- Standalone product atlas-run-standalone_
24+
- For cloud product, just do registration
25+
- Atlassian SDK in doker
26+
- Build the image
27+
::
28+
29+
make docker-atlassian-standalone
30+
31+
- Run an Atlassian standalone product
32+
::
33+
34+
docker run -i -t -p 6990:6990 atlassian-sdk:latest atlas-run-standalone --product bamboo
35+
2036
* Run the quality checks with `make qa` or if you have docker installed with `make docker-qa`
2137
* Send pull request
2238

Dockerfile.standalone

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM openjdk:11
2+
3+
ARG DEBIAN_FRONTEND=noninteractive
4+
5+
# Add Atlassian SDK repo
6+
RUN echo "deb https://packages.atlassian.com/debian/atlassian-sdk-deb/ stable contrib" >>/etc/apt/sources.list \
7+
&& wget https://packages.atlassian.com/api/gpg/key/public \
8+
&& apt-key add public \
9+
&& apt-get update
10+
11+
# Install Atlassian plugin SDK
12+
RUN apt-get install -y atlassian-plugin-sdk
13+
14+
# Clean
15+
RUN apt-get clean
16+
17+
WORKDIR /opt/atlassian

Makefile

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
PYTHON_VERSION ?= 3.7
66

7+
ATLASSIAN_SDK ?= atlassian-sdk
78
QA_CONTAINER ?= atlassian-python-api-qa-$(PYTHON_VERSION)
89
TEST_OPTS ?=
910

@@ -48,3 +49,8 @@ docker-qa-build: Dockerfile.qa requirements.txt requirements-dev.txt
4849
--tag $(QA_CONTAINER) \
4950
--build-arg PYTHON_VERSION=$(PYTHON_VERSION) \
5051
--file $< .
52+
53+
docker-atlassian-standalone: Dockerfile.standalone
54+
docker build \
55+
--tag $(ATLASSIAN_SDK) \
56+
--file $< .

0 commit comments

Comments
 (0)