-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (21 loc) · 1.03 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
ARG OPENJDK
FROM eclipse-temurin:${OPENJDK}-jdk-alpine
LABEL maintainer="Jack Nolddor" \
org.opencontainers.image.authors="Jack Nolddor" \
org.opencontainers.image.url="https://github.com/nolddor/docker-atlassian-sdk" \
org.opencontainers.image.documentation="https://github.com/nolddor/docker-atlassian-sdk/wiki" \
org.opencontainers.image.source="https://github.com/nolddor/docker-atlassian-sdk"
WORKDIR /opt
# Install the latest version of Atlassian SDK
# Refers to https://developer.atlassian.com/server/framework/atlassian-sdk/install-the-atlassian-sdk-on-a-linux-or-mac-system/#-tgz-file
RUN wget https://marketplace.atlassian.com/download/plugins/atlassian-plugin-sdk-tgz
RUN tar -xvzf atlassian-plugin-sdk-tgz
RUN rm -f atlassian-plugin-sdk-tgz
RUN mv atlassian-plugin-sdk-* atlassian-plugin-sdk
ENV PATH="/opt/atlassian-plugin-sdk/bin:$PATH"
# Move bundled Atlassian SDK repository to defaul maven location
RUN mkdir -p ~/.m2
RUN mv /opt/atlassian-plugin-sdk/repository/ ~/.m2
RUN java -version
RUN atlas-version
CMD [ "sh" ]