-
Notifications
You must be signed in to change notification settings - Fork 95
Add integrator-dist Dockerfiles for alpine, ubuntu, and rocky #411
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
Open
chiranSachintha
wants to merge
7
commits into
wso2:master
Choose a base branch
from
chiranSachintha:integrator-dist
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
fd1b1c0
Add integrator-dist Dockerfiles for alpine, ubuntu, and rocky
chiranSachintha 4240a35
Fix review suggestions
chiranSachintha 0cc8a6a
Fix review suggestions
chiranSachintha c8ea9f5
Fix review suggestions
chiranSachintha 991190a
Update java version
chiranSachintha e7907e3
Update comment
chiranSachintha 2701bc2
Update java version to `jdk-21.0.11+10`
chiranSachintha File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| FROM alpine:3.22.2 | ||
|
|
||
| ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8' | ||
|
|
||
| RUN apk update && apk upgrade --no-cache \ | ||
| && apk add --no-cache ca-certificates curl musl-locales musl-locales-lang unzip wget \ | ||
| && rm -rf /var/cache/apk/* | ||
|
|
||
| ENV JAVA_VERSION jdk-21.0.11+10 | ||
|
|
||
| # install Temurin OpenJDK 21 | ||
| RUN set -eux; \ | ||
| ARCH="$(apk --print-arch)"; \ | ||
| case "${ARCH}" in \ | ||
| amd64|x86_64) \ | ||
| ESUM='38bfdcef1e4b45de2ec222047ac79c76bea75d4d7406a310e26cfa236763f05f'; \ | ||
| BINARY_URL='https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.11%2B10/OpenJDK21U-jdk_x64_alpine-linux_hotspot_21.0.11_10.tar.gz'; \ | ||
| ;; \ | ||
| aarch64|arm64) \ | ||
| ESUM='c8d63598d1dc0a656033515ed258bd6db37506a05407d9f65cd23b95c21027b5'; \ | ||
| BINARY_URL='https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.11%2B10/OpenJDK21U-jdk_aarch64_alpine-linux_hotspot_21.0.11_10.tar.gz'; \ | ||
| ;; \ | ||
| *) \ | ||
| echo "Unsupported arch: ${ARCH}"; \ | ||
| exit 1; \ | ||
| ;; \ | ||
| esac; \ | ||
| wget -O /tmp/openjdk.tar.gz ${BINARY_URL}; \ | ||
| echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \ | ||
| mkdir -p /opt/java/openjdk; \ | ||
| tar --extract \ | ||
| --file /tmp/openjdk.tar.gz \ | ||
| --directory /opt/java/openjdk \ | ||
| --strip-components 1 \ | ||
| --no-same-owner \ | ||
| ; \ | ||
| rm -rf /tmp/openjdk.tar.gz; | ||
|
|
||
| ENV JAVA_HOME=/opt/java/openjdk \ | ||
| PATH="/opt/java/openjdk/bin:$PATH" | ||
|
|
||
| LABEL maintainer="WSO2 Docker Maintainers <dev@wso2.org>" | ||
|
|
||
| ARG USER=wso2carbon | ||
| ARG USER_ID=10802 | ||
| ARG USER_GROUP=wso2 | ||
| ARG USER_GROUP_ID=10802 | ||
| ARG USER_HOME=/home/${USER} | ||
| ARG WSO2_SERVER_NAME=wso2-integrator-dist | ||
| ARG WSO2_SERVER_VERSION=5.0.0 | ||
| ARG WSO2_SERVER=${WSO2_SERVER_NAME}-${WSO2_SERVER_VERSION} | ||
| ARG WSO2_SERVER_HOME=${USER_HOME}/${WSO2_SERVER} | ||
| ARG WSO2_SERVER_DIST_URL=<INTEGRATOR_DIST_URL> | ||
|
|
||
| RUN addgroup -S -g ${USER_GROUP_ID} ${USER_GROUP} \ | ||
| && adduser -S -u ${USER_ID} -h ${USER_HOME} -G ${USER_GROUP} ${USER} | ||
|
|
||
| RUN wget -O ${WSO2_SERVER}.zip "${WSO2_SERVER_DIST_URL}" \ | ||
| && unzip -d ${USER_HOME} ${WSO2_SERVER}.zip \ | ||
| && rm -f ${WSO2_SERVER}.zip \ | ||
| && chown -R ${USER}:${USER_GROUP} ${USER_HOME} | ||
|
|
||
| ENV BALLERINA_HOME=${WSO2_SERVER_HOME}/ballerina-2201.13.2 | ||
| ENV PATH="${BALLERINA_HOME}/bin:${PATH}" | ||
|
|
||
| USER ${USER_ID} | ||
| WORKDIR ${USER_HOME} | ||
|
|
||
| CMD ["bal", "version"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| # WSO2 Integrator Distribution Docker resources for Alpine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,76 @@ | ||
| FROM rockylinux/rockylinux:9.5 | ||
|
|
||
| ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8' | ||
|
|
||
| RUN dnf install -y glibc-locale-source glibc-langpack-en \ | ||
| && localedef -i en_US -f UTF-8 en_US.UTF-8 \ | ||
| && echo "LANG=en_US.UTF-8" > /etc/locale.conf \ | ||
| && echo "LC_ALL=en_US.UTF-8" >> /etc/environment \ | ||
| && dnf clean all \ | ||
| && rm -rf /var/cache/dnf | ||
|
|
||
| RUN dnf update -y \ | ||
| && dnf install -y binutils ca-certificates curl unzip wget \ | ||
| && dnf clean all | ||
|
|
||
| ENV JAVA_VERSION jdk-21.0.11+10 | ||
|
|
||
| # install Temurin OpenJDK 21 | ||
| RUN set -eux; \ | ||
| ARCH="$(objdump="$(command -v objdump)" && objdump --file-headers "$objdump" | awk -F '[:,]+[[:space:]]+' '$1 == "architecture" { print $2 }')"; \ | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| case "${ARCH}" in \ | ||
| aarch64|arm64) \ | ||
| ESUM='8d498ec88e1c1989fab95c6784240ab92d011e29c54d20a3f9c324b13476f9ad'; \ | ||
| BINARY_URL='https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.11%2B10/OpenJDK21U-jdk_aarch64_linux_hotspot_21.0.11_10.tar.gz'; \ | ||
| ;; \ | ||
| ppc64el|powerpc:common64) \ | ||
| ESUM='3d043ae96d2343962bf2307d8c55f19849fbfa4c6be9fe164a77d79263f0d989'; \ | ||
| BINARY_URL='https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.11%2B10/OpenJDK21U-jdk_ppc64le_linux_hotspot_21.0.11_10.tar.gz'; \ | ||
| ;; \ | ||
| amd64|i386:x86-64) \ | ||
| ESUM='4b2220e232a97997b436ca6ab15cbf70171ecff52958a46159dfa5a8c44ca4de'; \ | ||
| BINARY_URL='https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.11%2B10/OpenJDK21U-jdk_x64_linux_hotspot_21.0.11_10.tar.gz'; \ | ||
| ;; \ | ||
| *) \ | ||
| echo "Unsupported arch: ${ARCH}"; \ | ||
| exit 1; \ | ||
| ;; \ | ||
| esac; \ | ||
| curl -LfsSo /tmp/openjdk.tar.gz ${BINARY_URL}; \ | ||
| echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \ | ||
| mkdir -p /opt/java/openjdk; \ | ||
| cd /opt/java/openjdk; \ | ||
| tar -xf /tmp/openjdk.tar.gz --strip-components=1; \ | ||
| rm -rf /tmp/openjdk.tar.gz; | ||
|
|
||
| ENV JAVA_HOME=/opt/java/openjdk \ | ||
| PATH="/opt/java/openjdk/bin:$PATH" | ||
|
|
||
| LABEL maintainer="WSO2 Docker Maintainers <dev@wso2.org>" | ||
|
|
||
| ARG USER=wso2carbon | ||
| ARG USER_ID=10802 | ||
| ARG USER_GROUP=wso2 | ||
| ARG USER_GROUP_ID=10802 | ||
| ARG USER_HOME=/home/${USER} | ||
| ARG WSO2_SERVER_NAME=wso2-integrator-dist | ||
| ARG WSO2_SERVER_VERSION=5.0.0 | ||
| ARG WSO2_SERVER=${WSO2_SERVER_NAME}-${WSO2_SERVER_VERSION} | ||
| ARG WSO2_SERVER_HOME=${USER_HOME}/${WSO2_SERVER} | ||
| ARG WSO2_SERVER_DIST_URL=<INTEGRATOR_DIST_URL> | ||
|
|
||
| RUN groupadd --system -g ${USER_GROUP_ID} ${USER_GROUP} \ | ||
| && useradd --system --create-home --home-dir ${USER_HOME} --no-log-init -g ${USER_GROUP_ID} -u ${USER_ID} ${USER} | ||
|
|
||
| RUN wget -O ${WSO2_SERVER}.zip "${WSO2_SERVER_DIST_URL}" \ | ||
| && unzip -d ${USER_HOME} ${WSO2_SERVER}.zip \ | ||
| && rm -f ${WSO2_SERVER}.zip \ | ||
| && chown -R ${USER}:${USER_GROUP} ${USER_HOME} | ||
|
|
||
| ENV BALLERINA_HOME=${WSO2_SERVER_HOME}/ballerina-2201.13.2 | ||
| ENV PATH="${BALLERINA_HOME}/bin:${PATH}" | ||
|
|
||
| USER ${USER_ID} | ||
| WORKDIR ${USER_HOME} | ||
|
|
||
| CMD ["bal", "version"] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| # WSO2 Integrator Distribution Docker resources for Rocky |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| FROM ubuntu:25.10 | ||
|
|
||
| ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8' | ||
|
|
||
| RUN apt-get update && apt-get upgrade -y \ | ||
| && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl locales unzip wget \ | ||
| && echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen \ | ||
| && locale-gen en_US.UTF-8 \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| ENV JAVA_VERSION jdk-21.0.11+10 | ||
|
|
||
| # install Temurin OpenJDK 21 | ||
| RUN set -eux; \ | ||
| ARCH="$(dpkg --print-architecture)"; \ | ||
| case "${ARCH}" in \ | ||
| aarch64|arm64) \ | ||
| ESUM='8d498ec88e1c1989fab95c6784240ab92d011e29c54d20a3f9c324b13476f9ad'; \ | ||
| BINARY_URL='https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.11%2B10/OpenJDK21U-jdk_aarch64_linux_hotspot_21.0.11_10.tar.gz'; \ | ||
| ;; \ | ||
| ppc64el|powerpc:common64) \ | ||
| ESUM='3d043ae96d2343962bf2307d8c55f19849fbfa4c6be9fe164a77d79263f0d989'; \ | ||
| BINARY_URL='https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.11%2B10/OpenJDK21U-jdk_ppc64le_linux_hotspot_21.0.11_10.tar.gz'; \ | ||
| ;; \ | ||
| s390x|s390:64-bit) \ | ||
| ESUM='14dbe3cb226e64b945a36bea32686e8deec746504fe3ccee8de585c54af41ffd'; \ | ||
| BINARY_URL='https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.11%2B10/OpenJDK21U-jdk_s390x_linux_hotspot_21.0.11_10.tar.gz'; \ | ||
| ;; \ | ||
| amd64|i386:x86-64) \ | ||
| ESUM='4b2220e232a97997b436ca6ab15cbf70171ecff52958a46159dfa5a8c44ca4de'; \ | ||
| BINARY_URL='https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.11%2B10/OpenJDK21U-jdk_x64_linux_hotspot_21.0.11_10.tar.gz'; \ | ||
| ;; \ | ||
| *) \ | ||
| echo "Unsupported arch: ${ARCH}"; \ | ||
| exit 1; \ | ||
| ;; \ | ||
| esac; \ | ||
| curl -LfsSo /tmp/openjdk.tar.gz ${BINARY_URL}; \ | ||
| echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \ | ||
| mkdir -p /opt/java/openjdk; \ | ||
| cd /opt/java/openjdk; \ | ||
| tar -xf /tmp/openjdk.tar.gz --strip-components=1; \ | ||
| rm -rf /tmp/openjdk.tar.gz; | ||
|
|
||
| ENV JAVA_HOME=/opt/java/openjdk \ | ||
| PATH="/opt/java/openjdk/bin:$PATH" | ||
|
|
||
| LABEL maintainer="WSO2 Docker Maintainers <dev@wso2.org>" | ||
|
|
||
| ARG USER=wso2carbon | ||
| ARG USER_ID=10802 | ||
| ARG USER_GROUP=wso2 | ||
| ARG USER_GROUP_ID=10802 | ||
| ARG USER_HOME=/home/${USER} | ||
| ARG WSO2_SERVER_NAME=wso2-integrator-dist | ||
| ARG WSO2_SERVER_VERSION=5.0.0 | ||
| ARG WSO2_SERVER=${WSO2_SERVER_NAME}-${WSO2_SERVER_VERSION} | ||
| ARG WSO2_SERVER_HOME=${USER_HOME}/${WSO2_SERVER} | ||
| ARG WSO2_SERVER_DIST_URL=<INTEGRATOR_DIST_URL> | ||
|
|
||
| RUN groupadd --system -g ${USER_GROUP_ID} ${USER_GROUP} \ | ||
| && useradd --system --create-home --home-dir ${USER_HOME} --no-log-init -g ${USER_GROUP_ID} -u ${USER_ID} ${USER} | ||
|
|
||
| RUN wget -O ${WSO2_SERVER}.zip "${WSO2_SERVER_DIST_URL}" \ | ||
| && unzip -d ${USER_HOME} ${WSO2_SERVER}.zip \ | ||
| && rm -f ${WSO2_SERVER}.zip \ | ||
| && chown -R ${USER}:${USER_GROUP} ${USER_HOME} | ||
|
|
||
| ENV BALLERINA_HOME=${WSO2_SERVER_HOME}/ballerina-2201.13.2 | ||
| ENV PATH="${BALLERINA_HOME}/bin:${PATH}" | ||
|
|
||
| USER ${USER_ID} | ||
| WORKDIR ${USER_HOME} | ||
|
|
||
| CMD ["bal", "version"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| # WSO2 Integrator Distribution Docker resources for Ubuntu |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.