Skip to content

Commit

Permalink
fix docker
Browse files Browse the repository at this point in the history
  • Loading branch information
rectalogic committed Oct 15, 2024
1 parent ebf74d8 commit 137fcb2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"build": {
"dockerfile": "../builders/Linux/Dockerfile",
"context": "../builders",
"cacheFrom": "type=registry,ref=ghcr.io/rectalogic/mediafx:buildcache",
"cacheFrom": "type=registry,ref=ghcr.io/rectalogic/mediafx-qt:buildcache",
"args": {
"QT_VER": "6.8.0",
"QT_INSTALLER_VER": "4.8.1"
Expand Down Expand Up @@ -46,4 +46,4 @@
}
}
}
}
}
12 changes: 6 additions & 6 deletions builders/Linux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

ARG UBUNTU=noble

FROM ubuntu:${UBUNTU} as base
FROM ubuntu:${UBUNTU} AS base

ENV container docker
ENV container=docker
ENV DEBIAN_FRONTEND=noninteractive
ENV LANG=en_US.UTF-8
ENV LC_ALL=C.UTF-8
Expand All @@ -30,11 +30,11 @@ RUN apt-get -y update && apt-get -y install \
libxkbcommon-x11-0


FROM base as qt
FROM base AS qt

ARG QT_VER
ARG QT_INSTALLER_VER
ENV container docker
ENV container=docker
ENV DEBIAN_FRONTEND=noninteractive
ENV LANG=en_US.UTF-8
ENV LC_ALL=C.UTF-8
Expand Down Expand Up @@ -76,7 +76,7 @@ RUN --mount=type=secret,id=qtaccount,target=/root/.local/share/Qt/qtaccount.ini
EOF


FROM base as mediafx
FROM base AS mediafx
LABEL maintainer=rectalogic
ARG QT_VER
ARG UBUNTU=noble
Expand All @@ -85,7 +85,7 @@ ENV GALLIUM_DRIVER=softpipe
ENV LIBGL_ALWAYS_SOFTWARE=1
ENV DRI_NO_MSAA=1

ENV container docker
ENV container=docker
ENV DEBIAN_FRONTEND=noninteractive
ENV LANG=en_US.UTF-8
ENV LC_ALL=C.UTF-8
Expand Down
2 changes: 1 addition & 1 deletion builders/Linux/docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ if [[ ! $QTACCOUNT ]]; then
fi
fi

docker buildx build --secret id=qtaccount,src="$QTACCOUNT" --build-arg UBUNTU=${UBUNTU:-noble} --build-arg QT_VER=${QT_VER:?} --build-arg QT_INSTALLER_VER=${QT_INSTALLER_VER:?} --platform linux/amd64 --memory-swap -1 --load --tag ghcr.io/rectalogic/mediafx:${UBUNTU:-noble}-$(git branch --show-current) --file "${CURRENT}/Dockerfile" "${CURRENT}/.."
docker buildx build --secret id=qtaccount,src="$QTACCOUNT" --build-arg UBUNTU=${UBUNTU:-noble} --build-arg QT_VER=${QT_VER:?} --build-arg QT_INSTALLER_VER=${QT_INSTALLER_VER:?} --platform linux/amd64 --memory-swap -1 --load --tag ghcr.io/rectalogic/mediafx-qt:${UBUNTU:-noble}-$(git branch --show-current) --file "${CURRENT}/Dockerfile" "${CURRENT}/.."
2 changes: 1 addition & 1 deletion builders/Linux/docker-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ MOUNT="$(cd "${BASH_SOURCE%/*}/../.."; pwd)"
# opengl or vulkan
TARGET=${TARGET:-opengl}
docker run ${DOCKER_OPTS} -e QSG_RHI_BACKEND=${TARGET} --rm --init \
--mount="type=bind,src=${MOUNT},dst=/mediafx,consistency=cached" ghcr.io/rectalogic/mediafx:${UBUNTU:-noble}-$(git branch --show-current) "$@"
--mount="type=bind,src=${MOUNT},dst=/mediafx,consistency=cached" ghcr.io/rectalogic/mediafx-qt:${UBUNTU:-noble}-$(git branch --show-current) "$@"

0 comments on commit 137fcb2

Please sign in to comment.