Skip to content
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

Upgrade Alpine version and remove unnecessary packages #45

Merged
merged 1 commit into from
Dec 11, 2023
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
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@ All notable changes to Docker resources for WSO2 API Microgateway will be docume

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

## [v3.2.8.1] - 2023-10-03
## [v3.2.8.2] - 2023-12-08

### Changed

- Upgrade Alpine Base Image and Remove Unnecessary Packages (refer to [issue](https://github.com/wso2/docker-mg/issues/43))

## [v3.2.8.1] - 2023-10-03

### Changed
- Upgrade to API Microgateway 3.2.8 (refer to [issue](https://github.com/wso2/docker-mg/issues/38))
- Upgrade JRE to the latest version (refer to [issue](https://github.com/wso2/docker-mg/issues/39))
- Upgrade Ubuntu version to 22.04 (refer to [issue](https://github.com/wso2/docker-mg/issues/40))
Expand Down Expand Up @@ -76,3 +81,4 @@ For detailed information on the tasks carried out during this release, please se
[v3.2.5.1]: https://github.com/wso2/docker-mg/compare/v3.2.4.2...v3.2.5.1
[v3.2.7.1]: https://github.com/wso2/docker-mg/compare/v3.2.6.1...v3.2.7.1
[v3.2.8.1]: https://github.com/wso2/docker-mg/compare/v3.2.7.1...v3.2.8.1
[v3.2.8.2]: https://github.com/wso2/docker-mg/compare/v3.2.8.1...v3.2.8.2
9 changes: 6 additions & 3 deletions dockerfiles/alpine/mg/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
# limitations under the License.
# -----------------------------------------------------------------------

FROM alpine:3.16.1
FROM alpine:3.18.4

LABEL maintainer="WSO2 Docker Maintainers <[email protected]>" \
com.wso2.docker.source="https://github.com/wso2/docker-mg/releases/tag/v3.2.8.1"
com.wso2.docker.source="https://github.com/wso2/docker-mg/releases/tag/v3.2.8.2"

ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'

Expand Down Expand Up @@ -61,7 +61,7 @@ RUN apk add --no-cache tzdata --virtual .build-deps curl binutils zstd \
&& SGERRAND_RSA_SHA256="823b54589c93b02497f1ba4dc622eaef9c813e6b0f0ebbb2f771e32adf9f4ef2" \
&& echo "${SGERRAND_RSA_SHA256} */etc/apk/keys/sgerrand.rsa.pub" | sha256sum -c - \
&& curl -LfsS ${ALPINE_GLIBC_REPO}/${GLIBC_VER}/glibc-${GLIBC_VER}.apk > /tmp/glibc-${GLIBC_VER}.apk \
&& apk add --no-cache /tmp/glibc-${GLIBC_VER}.apk \
&& apk add --force-overwrite --no-cache /tmp/glibc-${GLIBC_VER}.apk \
&& apk add unzip \
&& curl -LfsS ${ALPINE_GLIBC_REPO}/${GLIBC_VER}/glibc-bin-${GLIBC_VER}.apk > /tmp/glibc-bin-${GLIBC_VER}.apk \
&& apk add --no-cache /tmp/glibc-bin-${GLIBC_VER}.apk \
Expand Down Expand Up @@ -109,6 +109,9 @@ RUN \
&& rm -rf /tmp/openjdk.tar.gz \
&& rm -rf /var/cache/apk/*

# Remove unnecesary packages
RUN apk del unzip

ENV BALLERINA_HOME ${MGW_RUNTIME_HOME}/runtime
ENV GW_HOME ${MGW_RUNTIME_HOME}
ENV PATH $GW_HOME/bin:$PATH
Expand Down
5 changes: 4 additions & 1 deletion dockerfiles/ubuntu/mg/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# set base Docker image to AdoptOpenJDK Ubuntu Docker image
FROM ubuntu:22.04
LABEL maintainer="WSO2 Docker Maintainers <[email protected]>" \
com.wso2.docker.source="https://github.com/wso2/docker-mg/releases/tag/v3.2.8.1"
com.wso2.docker.source="https://github.com/wso2/docker-mg/releases/tag/v3.2.8.2"

ENV LANG=C.UTF-8

Expand Down Expand Up @@ -89,6 +89,9 @@ RUN \
&& tar -xf /tmp/openjdk.tar.gz --strip-components=1 \
&& rm -rf /tmp/openjdk.tar.gz

# Remove unnecesary packages
RUN apt-get purge -y unzip

ENV BALLERINA_HOME ${MGW_RUNTIME_HOME}/runtime
ENV GW_HOME ${MGW_RUNTIME_HOME}
ENV PATH $GW_HOME/bin:$PATH
Expand Down