mirror of
https://github.com/python-LimeReport/devcontainer.git
synced 2025-01-11 23:41:04 +03:00
update
This commit is contained in:
parent
e97eb974e1
commit
a0eb7f133d
16
.github/workflows/docker-publish.yml
vendored
16
.github/workflows/docker-publish.yml
vendored
@ -6,12 +6,14 @@ name: Docker
|
|||||||
# documentation.
|
# documentation.
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_dispatch:
|
||||||
branches: [ "main" ]
|
inputs:
|
||||||
# Publish semver tags as releases.
|
qt:
|
||||||
tags: [ '*' ]
|
description: Qt Version
|
||||||
pull_request:
|
required: true
|
||||||
branches: [ "main" ]
|
python:
|
||||||
|
description: Python Version
|
||||||
|
required: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# Use docker.io for Docker Hub if empty
|
# Use docker.io for Docker Hub if empty
|
||||||
@ -64,6 +66,8 @@ jobs:
|
|||||||
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
|
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
|
||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
|
tags: |
|
||||||
|
type=raw,value=Qt-${{ inputs.qt }}-Python-${{ inputs.python }}
|
||||||
|
|
||||||
# Build and push Docker image with Buildx (don't push on PR)
|
# Build and push Docker image with Buildx (don't push on PR)
|
||||||
# https://github.com/docker/build-push-action
|
# https://github.com/docker/build-push-action
|
||||||
|
17
Dockerfile
17
Dockerfile
@ -1,18 +1,21 @@
|
|||||||
FROM mcr.microsoft.com/devcontainers/cpp:ubuntu-22.04
|
FROM mcr.microsoft.com/devcontainers/cpp:ubuntu-22.04
|
||||||
|
|
||||||
ARG AQTINSTALL=3.1.6
|
ARG AQTINSTALL=3.1.6
|
||||||
ARG QT=6.2.4
|
ARG QT=6.3.2
|
||||||
ARG QT_MODULES=
|
ARG QT_MODULES=
|
||||||
ARG QT_HOST=linux
|
ARG QT_HOST=linux
|
||||||
ARG QT_TARGET=desktop
|
ARG QT_TARGET=desktop
|
||||||
ARG QT_ARCH=
|
ARG QT_ARCH=
|
||||||
ARG PYTHON=3.9
|
ARG PYTHON=3.9
|
||||||
|
|
||||||
RUN curl -sfL https://github.com/devcontainers-contrib/nanolayer/releases/download/v0.4.45/nanolayer-x86_64-unknown-linux-gnu.tgz | tar fxvz - -C / && \
|
COPY extra.sh /
|
||||||
|
|
||||||
|
RUN . /extra.sh && \
|
||||||
|
curl -sfL https://github.com/devcontainers-contrib/nanolayer/releases/download/v0.4.45/nanolayer-x86_64-unknown-linux-gnu.tgz | tar fxvz - -C / && \
|
||||||
chmod 755 /nanolayer && \
|
chmod 755 /nanolayer && \
|
||||||
/nanolayer install \
|
/nanolayer install \
|
||||||
apt-get \
|
apt-get \
|
||||||
libclang-dev,libgl1-mesa-dev,libxkbcommon-x11-0,libdbus-1-3 && \
|
$(packages_to_install) && \
|
||||||
/nanolayer install \
|
/nanolayer install \
|
||||||
devcontainer-feature \
|
devcontainer-feature \
|
||||||
ghcr.io/devcontainers/features/python:1 \
|
ghcr.io/devcontainers/features/python:1 \
|
||||||
@ -24,6 +27,8 @@ RUN curl -sfL https://github.com/devcontainers-contrib/nanolayer/releases/downlo
|
|||||||
--option version="${AQTINSTALL}" && \
|
--option version="${AQTINSTALL}" && \
|
||||||
rm /nanolayer
|
rm /nanolayer
|
||||||
|
|
||||||
|
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-9
|
||||||
|
|
||||||
RUN /bin/bash -c 'source /etc/profile && \
|
RUN /bin/bash -c 'source /etc/profile && \
|
||||||
aqt install --outputdir /opt/qt ${QT} ${QT_HOST} ${QT_TARGET} ${QT_ARCH} -m ${QT_MODULES}'
|
aqt install --outputdir /opt/qt ${QT} ${QT_HOST} ${QT_TARGET} ${QT_ARCH} -m ${QT_MODULES}'
|
||||||
|
|
||||||
@ -33,12 +38,12 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
|||||||
USER vscode
|
USER vscode
|
||||||
|
|
||||||
ENV PATH /opt/qt/${QT}/gcc_64/bin:$PATH
|
ENV PATH /opt/qt/${QT}/gcc_64/bin:$PATH
|
||||||
ENV PYSIDE6_INSTALL_DIR "/home/vscode/pyside-setup/build/qfp-py${PYTHON}-qt${QT}-64bit-release/install"
|
|
||||||
|
|
||||||
RUN /bin/bash -c 'source /etc/profile && \
|
RUN /bin/bash -c 'source /etc/profile && \
|
||||||
cd $HOME && \
|
cd $HOME && \
|
||||||
git clone -b ${QT} https://code.qt.io/pyside/pyside-setup.git && \
|
git clone -b ${QT} https://code.qt.io/pyside/pyside-setup.git && \
|
||||||
cd pyside-setup && \
|
cd pyside-setup && \
|
||||||
pip install -r requirements.txt && \
|
pip install -r requirements.txt && \
|
||||||
export MAKEFLAGS="-j$(nproc)" && \
|
python setup.py build --parallel $(nproc) --limited-api yes'
|
||||||
python setup.py install'
|
|
||||||
|
ENV PYSIDE_INSTALL_DIR="/home/vscode/pyside-setup/build/qfpa-py${PYTHON}-qt${QT}-64bit-release/install"
|
Loading…
Reference in New Issue
Block a user