alfresco / alfresco-docker-base-java Goto Github PK
View Code? Open in Web Editor NEWAlfresco base Java image
License: Apache License 2.0
Alfresco base Java image
License: Apache License 2.0
This image needs to evolve to provide arm64 builds for Alfresco docker images. The current limited/non-support is making it complicated for developers to use Alfresco docker images for customisation and product development on current ARM64 based machines.
Since the pull request #30 was eventually reverted / not accepted, the size of the Java Docker images is still quite large as they include a full JDK. Instead of using post-processing steps to trim down the size of the JDK - which was determined to be problematic from the licensing perspective - the image could simply use a JRE. Unfortunately, OpenJDK does not provide a JRE, but AdoptOpenJDK does (see https://adoptopenjdk.net/archive.html).
Before I invest time in preparing a PR for this and risking reversion again, I wanted to ask if this would be acceptable to Legal.
Noticed that just adding "yum clean all" to existing "yum -y update"
alfresco-docker-base-java/Dockerfile
Line 13 in f3de686
RUN yum -y update
nss-3.36.0-5.el7_5
bind-license-9.9.4-61.el7 \
curl-7.29.0-46.el7
systemd-219-57.el7
glibc-2.17-222.el7
openssl-libs-1.0.2k-12.el7
krb5-libs-1.15.1-19.el7
libgcc-4.8.5-28.el7_5.1
libstdc++-4.8.5-28.el7_5.1
procps-ng-3.3.10-17.el7_5.2 && yum clean all
helps in reducing image size from 512Mb to 461Mb for JRE 10.
I tried to build the image from the Dockerfile present here and it gives me below error -
docker build -t sujaypillai/java:alfrescobasejava .
Sending build context to Docker daemon 2.56kB
Step 1/6 : FROM centos:7.4.1708
7.4.1708: Pulling from library/centos
18b8eb7e7f01: Pull complete
Digest: sha256:2a61f8abd6250751c4b1dd3384a2bdd8f87e0e60d11c064b8a90e2e552fee2d7
Status: Downloaded newer image for centos:7.4.1708
---> 3afd47092a0e
Step 2/6 : LABEL name="Alfresco Base Java" vendor="Alfresco" license="Various" build-date="unset"
---> Running in c852b5df8679
Removing intermediate container c852b5df8679
---> 12f279e82815
Step 3/6 : RUN yum -y update nss-3.36.0-5.el7_5 bind-license-9.9.4-61.el7 curl-7.29.0-46.el7 systemd-219-57.el7 glibc-2.17-222.el7 openssl-libs-1.0.2k-12.el7 krb5-libs-1.15.1-19.el7 libgcc-4.8.5-28.el7_5.1 libstdc++-4.8.5-28.el7_5.1 procps-ng-3.3.10-17.el7_5.2
---> Running in 16887cc7860e
Loaded plugins: fastestmirror, ovl
Determining fastest mirrors
Dependencies Resolved
Package Arch Version Repository Size
Updating:
bind-license noarch 32:9.9.4-61.el7 base 85 k
curl x86_64 7.29.0-46.el7 base 268 k
glibc x86_64 2.17-222.el7 base 3.6 M
krb5-libs x86_64 1.15.1-19.el7 updates 747 k
libgcc x86_64 4.8.5-28.el7_5.1 updates 101 k
libstdc++ x86_64 4.8.5-28.el7_5.1 updates 303 k
nss x86_64 3.36.0-5.el7_5 updates 835 k
openssl-libs x86_64 1:1.0.2k-12.el7 base 1.2 M
procps-ng x86_64 3.3.10-17.el7_5.2 updates 290 k
systemd x86_64 219-57.el7 base 5.0 M
Installing for dependencies:
lz4 x86_64 1.7.5-2.el7 base 98 k
Updating for dependencies:
glibc-common x86_64 2.17-222.el7 base 11 M
libcurl x86_64 7.29.0-46.el7 base 220 k
nspr x86_64 4.19.0-1.el7_5 updates 127 k
nss-softokn x86_64 3.36.0-5.el7_5 updates 315 k
nss-softokn-freebl x86_64 3.36.0-5.el7_5 updates 222 k
nss-sysinit x86_64 3.36.0-5.el7_5 updates 62 k
nss-tools x86_64 3.36.0-5.el7_5 updates 514 k
nss-util x86_64 3.36.0-1.el7_5 updates 78 k
systemd-libs x86_64 219-57.el7 base 402 k
Transaction Summary
Install ( 1 Dependent package)
Upgrade 10 Packages (+9 Dependent packages)
Total download size: 26 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
warning: /var/cache/yum/x86_64/7/base/packages/bind-license-9.9.4-61.el7.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Public key for bind-license-9.9.4-61.el7.noarch.rpm is not installed
Public key for krb5-libs-1.15.1-19.el7.x86_64.rpm is not installed
Total 2.3 MB/s | 26 MB 00:11
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) [email protected]"
Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
Package : centos-release-7-4.1708.el7.centos.x86_64 (@CentOS)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : libgcc-4.8.5-28.el7_5.1.x86_64 1/39
Updating : glibc-common-2.17-222.el7.x86_64 2/39
Updating : nss-softokn-freebl-3.36.0-5.el7_5.x86_64 3/39
Updating : glibc-2.17-222.el7.x86_64 4/39
Updating : nspr-4.19.0-1.el7_5.x86_64 5/39
Updating : nss-util-3.36.0-1.el7_5.x86_64 6/39
Updating : nss-softokn-3.36.0-5.el7_5.x86_64 7/39
Updating : nss-sysinit-3.36.0-5.el7_5.x86_64 8/39
Updating : nss-3.36.0-5.el7_5.x86_64 9/39
Installing : lz4-1.7.5-2.el7.x86_64 10/39
Updating : systemd-libs-219-57.el7.x86_64 11/39
Updating : krb5-libs-1.15.1-19.el7.x86_64 12/39
Updating : 1:openssl-libs-1.0.2k-12.el7.x86_64 13/39
Updating : libcurl-7.29.0-46.el7.x86_64 14/39
Updating : curl-7.29.0-46.el7.x86_64 15/39
Updating : systemd-219-57.el7.x86_64 16/39
Updating : procps-ng-3.3.10-17.el7_5.2.x86_64 17/39
Updating : nss-tools-3.36.0-5.el7_5.x86_64 18/39
Updating : libstdc++-4.8.5-28.el7_5.1.x86_64 19/39
Updating : 32:bind-license-9.9.4-61.el7.noarch 20/39
Cleanup : nss-tools-3.28.4-8.el7.x86_64 21/39
Cleanup : curl-7.29.0-42.el7.x86_64 22/39
Cleanup : systemd-219-42.el7.x86_64 23/39
Cleanup : 32:bind-license-9.9.4-50.el7.noarch 24/39
Cleanup : libcurl-7.29.0-42.el7.x86_64 25/39
Cleanup : nss-sysinit-3.28.4-8.el7.x86_64 26/39
Cleanup : nss-3.28.4-8.el7.x86_64 27/39
Cleanup : nss-softokn-3.28.3-6.el7.x86_64 28/39
Cleanup : nss-util-3.28.4-3.el7.x86_64 29/39
Cleanup : 1:openssl-libs-1.0.2k-8.el7.x86_64 30/39
Cleanup : krb5-libs-1.15.1-8.el7.x86_64 31/39
Cleanup : libstdc++-4.8.5-16.el7.x86_64 32/39
Cleanup : procps-ng-3.3.10-16.el7.x86_64 33/39
Cleanup : systemd-libs-219-42.el7.x86_64 34/39
Cleanup : nspr-4.13.1-1.0.el7_3.x86_64 35/39
Cleanup : glibc-common-2.17-196.el7.x86_64 36/39
Cleanup : nss-softokn-freebl-3.28.3-6.el7.x86_64 37/39
Cleanup : glibc-2.17-196.el7.x86_64 38/39
Cleanup : libgcc-4.8.5-16.el7.x86_64 39/39
Verifying : curl-7.29.0-46.el7.x86_64 1/39
Verifying : nss-tools-3.36.0-5.el7_5.x86_64 2/39
Verifying : 1:openssl-libs-1.0.2k-12.el7.x86_64 3/39
Verifying : nss-util-3.36.0-1.el7_5.x86_64 4/39
Verifying : nss-sysinit-3.36.0-5.el7_5.x86_64 5/39
Verifying : systemd-libs-219-57.el7.x86_64 6/39
Verifying : glibc-common-2.17-222.el7.x86_64 7/39
Verifying : glibc-2.17-222.el7.x86_64 8/39
Verifying : libcurl-7.29.0-46.el7.x86_64 9/39
Verifying : libgcc-4.8.5-28.el7_5.1.x86_64 10/39
Verifying : lz4-1.7.5-2.el7.x86_64 11/39
Verifying : systemd-219-57.el7.x86_64 12/39
Verifying : krb5-libs-1.15.1-19.el7.x86_64 13/39
Verifying : 32:bind-license-9.9.4-61.el7.noarch 14/39
Verifying : procps-ng-3.3.10-17.el7_5.2.x86_64 15/39
Verifying : nss-softokn-freebl-3.36.0-5.el7_5.x86_64 16/39
Verifying : nspr-4.19.0-1.el7_5.x86_64 17/39
Verifying : nss-3.36.0-5.el7_5.x86_64 18/39
Verifying : libstdc++-4.8.5-28.el7_5.1.x86_64 19/39
Verifying : nss-softokn-3.36.0-5.el7_5.x86_64 20/39
Verifying : nspr-4.13.1-1.0.el7_3.x86_64 21/39
Verifying : libcurl-7.29.0-42.el7.x86_64 22/39
Verifying : nss-softokn-3.28.3-6.el7.x86_64 23/39
Verifying : libgcc-4.8.5-16.el7.x86_64 24/39
Verifying : nss-util-3.28.4-3.el7.x86_64 25/39
Verifying : nss-sysinit-3.28.4-8.el7.x86_64 26/39
Verifying : libstdc++-4.8.5-16.el7.x86_64 27/39
Verifying : curl-7.29.0-42.el7.x86_64 28/39
Verifying : systemd-libs-219-42.el7.x86_64 29/39
Verifying : 1:openssl-libs-1.0.2k-8.el7.x86_64 30/39
Verifying : 32:bind-license-9.9.4-50.el7.noarch 31/39
Verifying : systemd-219-42.el7.x86_64 32/39
Verifying : nss-3.28.4-8.el7.x86_64 33/39
Verifying : procps-ng-3.3.10-16.el7.x86_64 34/39
Verifying : nss-tools-3.28.4-8.el7.x86_64 35/39
Verifying : krb5-libs-1.15.1-8.el7.x86_64 36/39
Verifying : glibc-common-2.17-196.el7.x86_64 37/39
Verifying : nss-softokn-freebl-3.28.3-6.el7.x86_64 38/39
Verifying : glibc-2.17-196.el7.x86_64 39/39
Dependency Installed:
lz4.x86_64 0:1.7.5-2.el7
Updated:
bind-license.noarch 32:9.9.4-61.el7 curl.x86_64 0:7.29.0-46.el7
glibc.x86_64 0:2.17-222.el7 krb5-libs.x86_64 0:1.15.1-19.el7
libgcc.x86_64 0:4.8.5-28.el7_5.1 libstdc++.x86_64 0:4.8.5-28.el7_5.1
nss.x86_64 0:3.36.0-5.el7_5 openssl-libs.x86_64 1:1.0.2k-12.el7
procps-ng.x86_64 0:3.3.10-17.el7_5.2 systemd.x86_64 0:219-57.el7
Dependency Updated:
glibc-common.x86_64 0:2.17-222.el7
libcurl.x86_64 0:7.29.0-46.el7
nspr.x86_64 0:4.19.0-1.el7_5
nss-softokn.x86_64 0:3.36.0-5.el7_5
nss-softokn-freebl.x86_64 0:3.36.0-5.el7_5
nss-sysinit.x86_64 0:3.36.0-5.el7_5
nss-tools.x86_64 0:3.36.0-5.el7_5
nss-util.x86_64 0:3.36.0-1.el7_5
systemd-libs.x86_64 0:219-57.el7
Complete!
Removing intermediate container 16887cc7860e
---> 69dad8c44fac
Step 4/6 : ENV JAVA_PKG=serverjre-*.tar.gz JAVA_HOME=/usr/java/default
---> Running in ea26fc770700
Removing intermediate container ea26fc770700
---> e3b75bb256aa
Step 5/6 : ADD $JAVA_PKG /usr/java/
ADD failed: no source files were specified
Hi there,
I discovered that transforming a file from csv to pdf with alfresco-transform-misc and umlauts is not working properly. After digging a bit around, I saw that the default encoding which is picked up by Java on the CentOS 8 image is ANSI_X3.4-1968 instead of UTF-8.
To reproduce the issue:
I think adding the following environment variable to the Dockerfile should be enough to fix it.
ENV LC_ALL C.UTF-8
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.