diff --git a/4.1.5/CHANGELOG.md b/4.1.5/CHANGELOG.md index 64e04ed..6b7b685 100644 --- a/4.1.5/CHANGELOG.md +++ b/4.1.5/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.3.0] - 2023-03-10 +### Added +- Add Dockerfile for sdk 5.6.2 jdk11 +- Add Dockerfile for sdk 5.7.0 and 5.7.0-jdk11 based on 5.6.2 + ## [1.2.0] - 2022-09-06 ### Changed - Update the license terms and copyright headers (see `LICENSE.txt`). diff --git a/5.4.1/CHANGELOG.md b/5.4.1/CHANGELOG.md index 503077a..c2ac6d6 100644 --- a/5.4.1/CHANGELOG.md +++ b/5.4.1/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.3.0] - 2023-03-10 +### Added +- Add Dockerfile for sdk 5.6.2 jdk11 +- Add Dockerfile for sdk 5.7.0 and 5.7.0-jdk11 based on 5.6.2 + ## [1.2.0] - 2022-09-06 ### Changed diff --git a/5.5.0/CHANGELOG.md b/5.5.0/CHANGELOG.md index 26b04ab..c547616 100644 --- a/5.5.0/CHANGELOG.md +++ b/5.5.0/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.3.0] - 2023-03-10 +### Added +- Add Dockerfile for sdk 5.6.2 jdk11 +- Add Dockerfile for sdk 5.7.0 and 5.7.0-jdk11 based on 5.6.2 + ## [1.2.0] - 2022-09-06 ### Changed diff --git a/5.6.2-jdk11/CHANGELOG.md b/5.6.2-jdk11/CHANGELOG.md new file mode 100644 index 0000000..061b3ed --- /dev/null +++ b/5.6.2-jdk11/CHANGELOG.md @@ -0,0 +1,19 @@ +# Changelog +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.3.0] - 2023-03-10 +### Added +- Add Dockerfile for sdk 5.6.2 jdk11 +- Add Dockerfile for sdk 5.7.0 and 5.7.0-jdk11 based on 5.6.2 + +## [1.2.0] - 2022-09-06 +### Added +- Add Dockerfile for sdk 5.6.2 based on 5.5.0 + +--- +_Markdown_ +_Copyright 2021-2022 MicroEJ Corp. All rights reserved._ +_Use of this source code is governed by a BSD-style license that can be found with this software._ diff --git a/5.6.2-jdk11/Dockerfile b/5.6.2-jdk11/Dockerfile new file mode 100644 index 0000000..38fc821 --- /dev/null +++ b/5.6.2-jdk11/Dockerfile @@ -0,0 +1,96 @@ +# Dockerfile +# +# Copyright 2023 MicroEJ Corp. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be found with this software. +FROM eclipse-temurin:11 + +RUN apt-get update && \ + apt-get upgrade -y && \ + apt-get install -y --no-install-recommends \ + apt-transport-https \ + ca-certificates \ + curl \ + gnupg \ + lsb-release && \ + curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg && \ + echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null && \ + apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ + git \ + unzip \ + udev \ + docker-ce-cli \ + ssh \ + sshpass \ + # Required for Eclipse-based SDK to run + libwebkit2gtk-4.0-37 && \ + rm -rf /var/lib/apt/lists/* && \ + apt-get clean + +# Set the new user parameter. +ARG user=microej +ARG group=microej +ARG uid=1000 +ARG gid=1000 +RUN addgroup --gid ${gid} ${group} && \ + adduser --home /home/${user} --uid ${uid} --ingroup ${group} --disabled-password ${user} + +# Set env +ENV HOME /home/${user} +ENV ECLIPSE_HOME=/opt/eclipse +ENV BUILD_KIT_HOME=/opt/buildKit +ENV PATH=$BUILD_KIT_HOME/bin:$PATH + +# Set workdir +WORKDIR ${HOME} + +# I) Install SDK +RUN curl -O https://repository.microej.com/packages/SDK/21.11/zip/microej-sdk-21.11-linux_x86_64.zip && \ + mkdir -p $ECLIPSE_HOME && \ + unzip microej-sdk-21.11-linux_x86_64.zip -d $ECLIPSE_HOME && \ + rm -f microej-sdk-21.11-linux_x86_64.zip && \ +# II) Configure SDK location + mkdir -p $HOME/.microej && \ + chown $user:$group $HOME/.microej && \ + echo "[options]\neclipse.home=\"${ECLIPSE_HOME}\"" > $HOME/.microej/.mmmconfig && \ +# III) Update SDK to 5.6.2 +# 1. Uninstall SDK 5.6.0 + $ECLIPSE_HOME/MicroEJ-SDK \ + -application org.eclipse.equinox.p2.director \ + -noSplash \ + -uninstallIU \ + com.is2t.microej.sdk.feature.feature.group && \ +# 2. Remove plugins with multiple versions + rm -rf $ECLIPSE_HOME/plugins/com.is2t.microej.wadapps.workbench_3.8.0.20201030-1117.jar && \ + rm -rf $ECLIPSE_HOME/plugins/com.is2t.microEJ.fontGenerator_2.5.1.20211112-1727.jar && \ +# 3. Install SDK 5.6.2 + $ECLIPSE_HOME/MicroEJ-SDK \ + -application org.eclipse.equinox.p2.director \ + -noSplash \ + -repository \ + https://repository.microej.com/p2/sdk/5.6.2 \ + -installIUs \ + com.is2t.microej.sdk.feature.feature.group && \ +# IV) Extract Build Kit from SDK + mkdir -p $BUILD_KIT_HOME && \ +# 1. Extract build repository + unzip $ECLIPSE_HOME/plugins/com.is2t.eclipse.plugin.easyant4e.offlinerepo_1.6.1.202208311808.jar repositories/microej-build-repository.zip && \ + unzip repositories/microej-build-repository.zip -d $BUILD_KIT_HOME/microej-build-repository && \ + rm -rf repositories/ && \ +# 2. Extract mmm-cli + unzip $ECLIPSE_HOME/plugins/com.is2t.eclipse.plugin.easyant4e_2.6.0.202208311809.jar cli/mmm-cli.zip && \ + unzip cli/mmm-cli.zip -d $BUILD_KIT_HOME/ && \ + rm -rf cli && \ +# 3. Extract ivysettings + unzip $ECLIPSE_HOME/plugins/com.is2t.eclipse.plugin.easyant4e_2.6.0.202208311809.jar resources/microej-ivysettings-5.4.xml && \ + mkdir -p $BUILD_KIT_HOME/microej-module-repository/ && \ + mv resources/microej-ivysettings-5.4.xml $BUILD_KIT_HOME/microej-module-repository/ivysettings.xml && \ + rm -rf resources/ && \ +# 4. Set SDK version + echo 'sdk.version=5.6.2' > $BUILD_KIT_HOME/release.properties && \ + mkdir -p $HOME/.microej/build-repository-cache && \ + ln -s $HOME/.microej/build-repository-cache $BUILD_KIT_HOME/microej-build-repository/cache && \ + chown $user:$group $BUILD_KIT_HOME/microej-build-repository/cache + +# Good practice, switch back to user. +USER ${user} diff --git a/5.6.2/CHANGELOG.md b/5.6.2/CHANGELOG.md index aad9289..061b3ed 100644 --- a/5.6.2/CHANGELOG.md +++ b/5.6.2/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.3.0] - 2023-03-10 +### Added +- Add Dockerfile for sdk 5.6.2 jdk11 +- Add Dockerfile for sdk 5.7.0 and 5.7.0-jdk11 based on 5.6.2 + ## [1.2.0] - 2022-09-06 ### Added - Add Dockerfile for sdk 5.6.2 based on 5.5.0 diff --git a/5.7.0-jdk11/CHANGELOG.md b/5.7.0-jdk11/CHANGELOG.md new file mode 100644 index 0000000..061b3ed --- /dev/null +++ b/5.7.0-jdk11/CHANGELOG.md @@ -0,0 +1,19 @@ +# Changelog +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.3.0] - 2023-03-10 +### Added +- Add Dockerfile for sdk 5.6.2 jdk11 +- Add Dockerfile for sdk 5.7.0 and 5.7.0-jdk11 based on 5.6.2 + +## [1.2.0] - 2022-09-06 +### Added +- Add Dockerfile for sdk 5.6.2 based on 5.5.0 + +--- +_Markdown_ +_Copyright 2021-2022 MicroEJ Corp. All rights reserved._ +_Use of this source code is governed by a BSD-style license that can be found with this software._ diff --git a/5.7.0-jdk11/Dockerfile b/5.7.0-jdk11/Dockerfile new file mode 100644 index 0000000..1e1711b --- /dev/null +++ b/5.7.0-jdk11/Dockerfile @@ -0,0 +1,78 @@ +# Dockerfile +# +# Copyright 2023 MicroEJ Corp. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be found with this software. +FROM eclipse-temurin:11 + +RUN apt-get update && \ + apt-get upgrade -y && \ + apt-get install -y --no-install-recommends \ + apt-transport-https \ + ca-certificates \ + curl \ + gnupg \ + lsb-release && \ + curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg && \ + echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null && \ + apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ + git \ + unzip \ + udev \ + docker-ce-cli \ + ssh \ + sshpass \ + # Required for Eclipse-based SDK to run + libwebkit2gtk-4.0-37 && \ + rm -rf /var/lib/apt/lists/* && \ + apt-get clean + +# Set the new user parameter. +ARG user=microej +ARG group=microej +ARG uid=1000 +ARG gid=1000 +RUN addgroup --gid ${gid} ${group} && \ + adduser --home /home/${user} --uid ${uid} --ingroup ${group} --disabled-password ${user} + +# Set env +ENV HOME /home/${user} +ENV ECLIPSE_HOME=/opt/eclipse +ENV BUILD_KIT_HOME=/opt/buildKit +ENV PATH=$BUILD_KIT_HOME/bin:$PATH + +# Set workdir +WORKDIR ${HOME} + +# I) Install SDK +RUN curl -O https://repository.microej.com/packages/SDK/23.02/zip/microej-sdk-23.02-linux_x86_64.zip && \ + mkdir -p $ECLIPSE_HOME && \ + unzip microej-sdk-23.02-linux_x86_64.zip -d $ECLIPSE_HOME && \ + rm -f microej-sdk-23.02-linux_x86_64.zip && \ +# II) Configure SDK location + mkdir -p $HOME/.microej && \ + chown $user:$group $HOME/.microej && \ + echo "[options]\neclipse.home=\"${ECLIPSE_HOME}\"" > $HOME/.microej/.mmmconfig && \ +# III) Extract Build Kit from SDK + mkdir -p $BUILD_KIT_HOME && \ +# 1. Extract build repository + unzip $ECLIPSE_HOME/plugins/com.is2t.eclipse.plugin.easyant4e.offlinerepo_1.6.1.202302231458.jar repositories/microej-build-repository.zip && \ + unzip repositories/microej-build-repository.zip -d $BUILD_KIT_HOME/microej-build-repository && \ + rm -rf repositories/ && \ +# 2. Extract mmm-cli + unzip $ECLIPSE_HOME/plugins/com.is2t.eclipse.plugin.easyant4e_2.7.0.202302231458.jar cli/mmm-cli.zip && \ + unzip cli/mmm-cli.zip -d $BUILD_KIT_HOME/ && \ + rm -rf cli && \ +# 3. Extract ivysettings + unzip $ECLIPSE_HOME/plugins/com.is2t.eclipse.plugin.easyant4e_2.7.0.202302231458.jar resources/microej-ivysettings-5.4.xml && \ + mkdir -p $BUILD_KIT_HOME/microej-module-repository/ && \ + mv resources/microej-ivysettings-5.4.xml $BUILD_KIT_HOME/microej-module-repository/ivysettings.xml && \ + rm -rf resources/ && \ +# 4. Set SDK version + echo 'sdk.version=5.7.0' > $BUILD_KIT_HOME/release.properties && \ + mkdir -p $HOME/.microej/build-repository-cache && \ + ln -s $HOME/.microej/build-repository-cache $BUILD_KIT_HOME/microej-build-repository/cache && \ + chown $user:$group $BUILD_KIT_HOME/microej-build-repository/cache + +# Good practice, switch back to user. +USER ${user} diff --git a/5.7.0/CHANGELOG.md b/5.7.0/CHANGELOG.md new file mode 100644 index 0000000..061b3ed --- /dev/null +++ b/5.7.0/CHANGELOG.md @@ -0,0 +1,19 @@ +# Changelog +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.3.0] - 2023-03-10 +### Added +- Add Dockerfile for sdk 5.6.2 jdk11 +- Add Dockerfile for sdk 5.7.0 and 5.7.0-jdk11 based on 5.6.2 + +## [1.2.0] - 2022-09-06 +### Added +- Add Dockerfile for sdk 5.6.2 based on 5.5.0 + +--- +_Markdown_ +_Copyright 2021-2022 MicroEJ Corp. All rights reserved._ +_Use of this source code is governed by a BSD-style license that can be found with this software._ diff --git a/5.7.0/Dockerfile b/5.7.0/Dockerfile new file mode 100644 index 0000000..0372928 --- /dev/null +++ b/5.7.0/Dockerfile @@ -0,0 +1,96 @@ +# Dockerfile +# +# Copyright 2023 MicroEJ Corp. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be found with this software. +FROM eclipse-temurin:8 + +RUN apt-get update && \ + apt-get upgrade -y && \ + apt-get install -y --no-install-recommends \ + apt-transport-https \ + ca-certificates \ + curl \ + gnupg \ + lsb-release && \ + curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg && \ + echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null && \ + apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ + git \ + unzip \ + udev \ + docker-ce-cli \ + ssh \ + sshpass \ + # Required for Eclipse-based SDK to run + libwebkit2gtk-4.0-37 && \ + rm -rf /var/lib/apt/lists/* && \ + apt-get clean + +# Set the new user parameter. +ARG user=microej +ARG group=microej +ARG uid=1000 +ARG gid=1000 +RUN addgroup --gid ${gid} ${group} && \ + adduser --home /home/${user} --uid ${uid} --ingroup ${group} --disabled-password ${user} + +# Set env +ENV HOME /home/${user} +ENV ECLIPSE_HOME=/opt/eclipse +ENV BUILD_KIT_HOME=/opt/buildKit +ENV PATH=$BUILD_KIT_HOME/bin:$PATH + +# Set workdir +WORKDIR ${HOME} + +## I) Install SDK +RUN curl -O https://repository.microej.com/packages/SDK/21.11/zip/microej-sdk-21.11-linux_x86_64.zip && \ + mkdir -p $ECLIPSE_HOME && \ + unzip microej-sdk-21.11-linux_x86_64.zip -d $ECLIPSE_HOME && \ + rm -f microej-sdk-21.11-linux_x86_64.zip && \ +# II) Configure SDK location + mkdir -p $HOME/.microej && \ + chown $user:$group $HOME/.microej && \ + echo "[options]\neclipse.home=\"${ECLIPSE_HOME}\"" > $HOME/.microej/.mmmconfig && \ +# III) Update SDK to 5.7.0 +# 1. Uninstall SDK 5.6.0 + $ECLIPSE_HOME/MicroEJ-SDK \ + -application org.eclipse.equinox.p2.director \ + -noSplash \ + -uninstallIU \ + com.is2t.microej.sdk.feature.feature.group && \ +# 2. Remove plugins with multiple versions + rm -rf $ECLIPSE_HOME/plugins/com.is2t.microej.wadapps.workbench_3.8.0.20201030-1117.jar && \ + rm -rf $ECLIPSE_HOME/plugins/com.is2t.microEJ.fontGenerator_2.5.1.20211112-1727.jar && \ +# 3. Install SDK 5.7.0 + $ECLIPSE_HOME/MicroEJ-SDK \ + -application org.eclipse.equinox.p2.director \ + -noSplash \ + -repository \ + https://repository.microej.com/p2/sdk/5.7.0 \ + -installIUs \ + com.is2t.microej.sdk.feature.feature.group && \ +# IV) Extract Build Kit from SDK + mkdir -p $BUILD_KIT_HOME && \ +# 1. Extract build repository + unzip $ECLIPSE_HOME/plugins/com.is2t.eclipse.plugin.easyant4e.offlinerepo_1.6.1.202302231458.jar repositories/microej-build-repository.zip && \ + unzip repositories/microej-build-repository.zip -d $BUILD_KIT_HOME/microej-build-repository && \ + rm -rf repositories/ && \ +# 2. Extract mmm-cli + unzip $ECLIPSE_HOME/plugins/com.is2t.eclipse.plugin.easyant4e_2.7.0.202302231458.jar cli/mmm-cli.zip && \ + unzip cli/mmm-cli.zip -d $BUILD_KIT_HOME/ && \ + rm -rf cli && \ +# 3. Extract ivysettings + unzip $ECLIPSE_HOME/plugins/com.is2t.eclipse.plugin.easyant4e_2.7.0.202302231458.jar resources/microej-ivysettings-5.4.xml && \ + mkdir -p $BUILD_KIT_HOME/microej-module-repository/ && \ + mv resources/microej-ivysettings-5.4.xml $BUILD_KIT_HOME/microej-module-repository/ivysettings.xml && \ + rm -rf resources/ && \ +# 4. Set SDK version + echo 'sdk.version=5.7.0' > $BUILD_KIT_HOME/release.properties && \ + mkdir -p $HOME/.microej/build-repository-cache && \ + ln -s $HOME/.microej/build-repository-cache $BUILD_KIT_HOME/microej-build-repository/cache && \ + chown $user:$group $BUILD_KIT_HOME/microej-build-repository/cache + +# Good practice, switch back to user. +USER ${user}