This commit is contained in:
16
.drone.yml
Normal file
16
.drone.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: docker
|
||||
image: plugins/docker
|
||||
settings:
|
||||
registry: https://git.ivasoft.cz
|
||||
username:
|
||||
from_secret: repo_user
|
||||
password:
|
||||
from_secret: repo_pass
|
||||
repo: git.ivasoft.cz/sw/docker-wine-dotnet
|
||||
tags:
|
||||
- latest
|
||||
- ${DRONE_TAG:-latest}
|
||||
26
Dockerfile
Normal file
26
Dockerfile
Normal file
@@ -0,0 +1,26 @@
|
||||
FROM scottyhardy/docker-wine:stable
|
||||
|
||||
ENV WINEDEBUG "fixme-all"
|
||||
|
||||
ENV RUN_AS_ROOT "yes"
|
||||
ENV USE_XVFB "yes"
|
||||
ENV XVFB_SERVER ":95"
|
||||
ENV XVFB_SCREEN "0"
|
||||
ENV XVFB_RESOLUTION "1024x768x8"
|
||||
ENV DISPLAY ":95"
|
||||
ENV WINEARCH win32
|
||||
|
||||
RUN set -x -e; \
|
||||
entrypoint wineboot --init; \
|
||||
# Get latest version and its hash from https://dotnet.microsoft.com/en-us/download/dotnet
|
||||
wget https://download.visualstudio.microsoft.com/download/pr/7ce6d94a-13c1-4102-bb1b-b0f7ea5afb6e/0764c80c81c16ab927c0a7321f7c07cf/dotnet-sdk-8.0.303-win-x86.exe --no-check-certificate -O /tmp/dotnet.exe; \
|
||||
echo af52649a05bb3c8ba494291234d67f3385446a8a08eaefcbe9fbc4e766ae97a6a13253060a798ce076511fa59086b1d9fa638b51a5e748bcfc79d36ddc7991ca /tmp/dotnet.exe > /tmp/chk; \
|
||||
sha512sum -c /tmp/chk; \
|
||||
while pgrep wineserver >/dev/null; do echo "Waiting for wineserver"; sleep 1; done; \
|
||||
while true; do \
|
||||
if timeout 30m wine z:\\tmp\\dotnet.exe /q; then \
|
||||
break; \
|
||||
fi \
|
||||
done; \
|
||||
rm /tmp/dotnet.exe /tmp/chk; \
|
||||
echo Usage: wine "c:\program files\dotnet\dotnet.exe" build --configuration Release --no-dependencies Test.wixproj
|
||||
Reference in New Issue
Block a user