Created
August 4, 2024 09:05
-
-
Save dpwrussell/478c8ee98f646b16d4ccae06b8fabec9 to your computer and use it in GitHub Desktop.
OMERO Build Failure
This file contains 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
FROM ubuntu:22.04 | |
RUN apt-get update \ | |
&& export DEBIAN_FRONTEND=noninteractive \ | |
&& apt-get -y install \ | |
--no-install-recommends \ | |
db5.3-util \ | |
bzip2 \ | |
libdb++ \ | |
libexpat1 \ | |
libmcpp0 \ | |
openssl \ | |
mcpp \ | |
zlib1g \ | |
curl \ | |
git \ | |
unzip \ | |
zip | |
RUN cd /tmp \ | |
&& curl -L -O https://github.com/glencoesoftware/zeroc-ice-ubuntu2204-x86_64/releases/download/20221004/Ice-3.6.5-ubuntu2204-x86_64.tar.gz \ | |
&& tar xf Ice-3.6.5-ubuntu2204-x86_64.tar.gz \ | |
&& mv Ice-3.6.5 /opt/ice-3.6.5 \ | |
&& echo /opt/ice-3.6.5/lib64 > /etc/ld.so.conf.d/ice-x86_64.conf \ | |
&& ldconfig | |
ENV ICE_HOME=/opt/ice-3.6.5 | |
ENV PATH="$ICE_HOME/bin:$PATH" | |
ENV SLICEPATH="$ICE_HOME/slice" | |
RUN git clone --recursive https://github.com/ome/omero-build.git | |
WORKDIR /omero-build | |
# Install JDK and build tools with apt-get | |
# Suspect Gradle version too old | |
# RUN export DEBIAN_FRONTEND=noninteractive \ | |
# && apt-get -y install \ | |
# --no-install-recommends \ | |
# openjdk-11-jdk \ | |
# gradle | |
# Install JDK and build tools with sdkman | |
RUN sh -c 'curl -L -s "https://get.sdkman.io" | bash' | |
# RUN /bin/bash -c "source /root/.sdkman/bin/sdkman-init.sh && sdk install java 11.0.24-zulu" | |
RUN /bin/bash -c "source /root/.sdkman/bin/sdkman-init.sh && sdk install java 17.0.12-oracle" | |
# Not compatible | |
# RUN /bin/bash -c "source /root/.sdkman/bin/sdkman-init.sh && sdk install gradle 8.9" | |
# This one works | |
RUN /bin/bash -c "source /root/.sdkman/bin/sdkman-init.sh && sdk install gradle 7.6.4 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment