Skip to content

Commit

Permalink
Normalize image names and switch build image to eclipse-temurin
Browse files Browse the repository at this point in the history
  • Loading branch information
mtneug committed May 15, 2024
1 parent 7d096ca commit dbe4fc7
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 10 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM --platform=${BUILDPLATFORM} docker.io/alpine:edge AS build-ffmpeg
FROM --platform=${BUILDPLATFORM} docker.io/library/alpine:edge AS build-ffmpeg
ARG TARGETARCH
ARG FFMPEG_VERSION="release"
RUN apk add --no-cache \
Expand All @@ -27,7 +27,7 @@ RUN apk add --no-cache \
&& mv ff* /usr/local/bin


FROM docker.io/eclipse-temurin:17-jdk AS build-whisper-cpp
FROM docker.io/library/eclipse-temurin:17-jdk AS build-whisper-cpp
ARG WHISPER_CPP_VERSION="master"
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
Expand All @@ -49,7 +49,7 @@ RUN mkdir -p out \
&& mv models/download-ggml-model.sh out/whisper.cpp-model-download


FROM --platform=${BUILDPLATFORM} docker.io/maven:3-eclipse-temurin-17 AS build-opencast
FROM --platform=${BUILDPLATFORM} docker.io/library/eclipse-temurin:17-jdk AS build-opencast

ARG OPENCAST_REPO="https://github.com/opencast/opencast.git"
ARG OPENCAST_VERSION="develop"
Expand Down Expand Up @@ -90,7 +90,7 @@ ARG OPENCAST_DISTRIBUTION
RUN tar -xzf build/opencast-dist-${OPENCAST_DISTRIBUTION}-*.tar.gz --strip 1 -C "${OPENCAST_HOME}"


FROM docker.io/eclipse-temurin:17-jdk
FROM docker.io/library/eclipse-temurin:17-jdk
LABEL org.opencontainers.image.base.name="docker.io/eclipse-temurin:17-jdk"

ENV OPENCAST_HOME="/opencast" \
Expand Down
26 changes: 21 additions & 5 deletions Dockerfile-build
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM --platform=${BUILDPLATFORM} docker.io/alpine:edge AS build-ffmpeg
FROM --platform=${BUILDPLATFORM} docker.io/library/alpine:edge AS build-ffmpeg
ARG TARGETARCH
ARG FFMPEG_VERSION="release"
RUN apk add --no-cache \
Expand All @@ -27,7 +27,7 @@ RUN apk add --no-cache \
&& mv ff* /usr/local/bin


FROM docker.io/eclipse-temurin:17-jdk AS build-whisper-cpp
FROM docker.io/library/eclipse-temurin:17-jdk AS build-whisper-cpp
ARG WHISPER_CPP_VERSION="master"
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
Expand All @@ -49,7 +49,7 @@ RUN mkdir -p out \
&& mv models/download-ggml-model.sh out/whisper.cpp-model-download


FROM docker.io/maven:3-eclipse-temurin-17
FROM docker.io/library/eclipse-temurin:17-jdk
LABEL org.opencontainers.image.base.name="docker.io/maven:3-eclipse-temurin-17"

ARG OPENCAST_REPO="https://github.com/opencast/opencast.git"
Expand Down Expand Up @@ -94,15 +94,31 @@ ENV ORG_OPENCASTPROJECT_SECURITY_ADMIN_USER="admin" \
ORG_OPENCASTPROJECT_SECURITY_DIGEST_USER="opencast_system_account" \
ORG_OPENCASTPROJECT_SECURITY_DIGEST_PASS="CHANGE_ME"

# Install Firefox from PPA
COPY <<EOF /etc/apt/preferences.d/mozillateam
Package: *
Pin: release o=LP-PPA-mozillateam
Pin-Priority: 100

Package: firefox*
Pin: release o=LP-PPA-mozillateam
Pin-Priority: 1001

Package: firefox*
Pin: release o=Ubuntu
Pin-Priority: -1
EOF

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
software-properties-common gnupg \
gnupg \
software-properties-common \
&& add-apt-repository -y ppa:mozillateam/ppa \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
bzip2 \
ca-certificates \
firefox-esr \
firefox \
g++ \
gcc \
git \
Expand Down
2 changes: 1 addition & 1 deletion rootfs-build/usr/local/bin/oc_install
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ sudo mkdir -p "${OPENCAST_CONFIG}" "${OPENCAST_SCRIPTS}"
log "oc_install" "Copy Docker scripts"
# shellcheck disable=SC2086
sudo cp -R ${OPENCAST_BUILD_ASSETS}${OPENCAST_SCRIPTS}/* "${OPENCAST_SCRIPTS}/"
sudo javac "${OPENCAST_SCRIPTS}/TryToConnectToDb.java"
sudo env "PATH=$PATH" javac "${OPENCAST_SCRIPTS}/TryToConnectToDb.java"

log "oc_install" "Copy configuration"
# shellcheck disable=SC2086
Expand Down

0 comments on commit dbe4fc7

Please sign in to comment.