Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Windows 2022 full image for 3.0 and 3.1 #24

Open
wants to merge 33 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
1157e02
Add a Windows 2022 full image for 3.0 and 3.1
tpowell-progress Apr 24, 2024
cbf2ae9
Remove < 2.7 images
tpowell-progress Apr 24, 2024
19979dd
Try windows:ltsc2019
tpowell-progress Apr 24, 2024
f3b20e7
Use RUN instead of CMD
tpowell-progress Apr 24, 2024
2b7fb16
Different things
tpowell-progress Apr 24, 2024
344b697
Refactor dockerfile
tpowell-progress Apr 24, 2024
c8284f3
Separate runs
tpowell-progress Apr 24, 2024
63b4c66
Download .net
tpowell-progress Apr 24, 2024
9b81523
current dir
tpowell-progress Apr 24, 2024
c26bded
norestart etc
tpowell-progress Apr 24, 2024
81cd66b
Individual
tpowell-progress Apr 24, 2024
fc450d4
import module instead
tpowell-progress Apr 24, 2024
1d45efe
Use the powershell
tpowell-progress Apr 25, 2024
6fb07b8
remove echo for choco
tpowell-progress Apr 25, 2024
fd472e8
Update the 3.1 ruby
tpowell-progress Apr 25, 2024
529781f
wrong variable syntax
tpowell-progress Apr 25, 2024
d84cf10
Interpolate
tpowell-progress Apr 25, 2024
0eee7a7
powershell args
tpowell-progress Apr 25, 2024
a1faedf
Break up Ruby install
tpowell-progress Apr 25, 2024
ab4b58f
/allusers arg
tpowell-progress Apr 25, 2024
ee3c331
3.0 and 3.1 full 2019
tpowell-progress Apr 25, 2024
eda89c3
Start-Process and -Wait for .NET install
tpowell-progress Apr 25, 2024
c6ac8b5
Explicit paths and remove item
tpowell-progress Apr 25, 2024
2322d14
Try full path original
tpowell-progress Apr 25, 2024
57d4ead
explicit temp paths
tpowell-progress Apr 26, 2024
79f044b
need to ampersand the string
tpowell-progress Apr 26, 2024
b78b24a
install 1.4.0 choco
tpowell-progress Apr 30, 2024
34010aa
all 1.4.0
tpowell-progress Apr 30, 2024
24bd181
community
tpowell-progress Apr 30, 2024
0b0b5f8
don't upgrade choco?
tpowell-progress May 8, 2024
545da69
commented too much
tpowell-progress May 8, 2024
3f15185
Try normal dockerfile
tpowell-progress May 8, 2024
36393f3
Cholate~~l~~y
tpowell-progress May 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions 3.0/windows/2019-full/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
FROM mcr.microsoft.com/windows:ltsc2019

ENV BUNDLE_SILENCE_ROOT_WARNING=true \
GIT_DISCOVERY_ACROSS_FILESYSTEM=true

# When launched by user, default to PowerShell if no other command specified.
CMD ["powershell.exe", "-NoLogo", "-ExecutionPolicy", "Bypass"]
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]

RUN Set-ExecutionPolicy Bypass

ENV chocolateyVersion="1.4.0"
# Install Chocolatey (and essentials)
RUN Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

RUN Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1
RUN choco feature enable -n=allowGlobalConfirmation
RUN choco config set cacheLocation C:\chococache
RUN choco upgrade chocolatey
RUN choco install git
RUN Remove-Item -Recurse -Force c:\chococache

ARG RUBY_URL=https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.0.6-1/rubyinstaller-3.0.6-1-x64.exe
ARG RUBY_FILE=rubyinstaller-3.0.6-1-x64.exe
ARG RUBY_DIR=c:/ruby30

# Install Ruby + Devkit
RUN Write-Output 'Downloading Ruby + DevKit'; \
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
(New-Object System.Net.WebClient).DownloadFile(\"$env:RUBY_URL\", \"c:/$env:RUBY_FILE\")
RUN Write-Output 'Installing Ruby + DevKit'
RUN Start-Process c:/$env:RUBY_FILE -ArgumentList \"/allusers /verysilent /dir=$env:RUBY_DIR\" -Wait

RUN Write-Output 'Cleaning up installation'
RUN Remove-Item c:/$env:RUBY_FILE -Force
RUN Write-Output 'Closing out the layer (this can take awhile)'


4 changes: 3 additions & 1 deletion 3.0/windows/2019/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ ENV BUNDLE_SILENCE_ROOT_WARNING=true \
# When launched by user, default to PowerShell if no other command specified.
CMD ["powershell.exe", "-NoLogo", "-ExecutionPolicy", "Bypass"]

ENV chocolateyVersion="1.4.0"

# Install Chocolatey (and essentials)
RUN powershell -Command "Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && \
RUN powershell -Command "Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))" && \
C:\ProgramData\Chocolatey\bin\refreshenv && \
choco feature enable -n=allowGlobalConfirmation && \
choco config set cacheLocation C:\chococache && \
Expand Down
36 changes: 36 additions & 0 deletions 3.1/windows/2019-full/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
FROM mcr.microsoft.com/windows:ltsc2019

ENV BUNDLE_SILENCE_ROOT_WARNING=true \
GIT_DISCOVERY_ACROSS_FILESYSTEM=true

# When launched by user, default to PowerShell if no other command specified.
CMD ["powershell.exe", "-NoLogo", "-ExecutionPolicy", "Bypass"]
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]


RUN Set-ExecutionPolicy Bypass

ENV chocolateyVersion="1.4.0"
# Install Chocolatey (and essentials)
RUN Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

RUN Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1
RUN choco feature enable -n=allowGlobalConfirmation
RUN choco config set cacheLocation C:\chococache
RUN choco install git
RUN Remove-Item -Recurse -Force c:\chococache

ARG RUBY_URL=https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.1.4-1/rubyinstaller-3.1.4-1-x64.exe
ARG RUBY_FILE=rubyinstaller-3.1.4-1-x64.exe
ARG RUBY_DIR=c:/ruby30

# Install Ruby + Devkit
RUN Write-Output 'Downloading Ruby + DevKit'; \
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
(New-Object System.Net.WebClient).DownloadFile(\"$env:RUBY_URL\", \"c:/$env:RUBY_FILE\")
RUN Write-Output 'Installing Ruby + DevKit'
RUN Start-Process c:/$env:RUBY_FILE -ArgumentList \"/allusers /verysilent /dir=$env:RUBY_DIR\" -Wait
RUN Write-Output 'Cleaning up installation'
RUN Remove-Item c:/$env:RUBY_FILE -Force
RUN Write-Output 'Closing out the layer (this can take awhile)'

39 changes: 22 additions & 17 deletions 3.1/windows/2019/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,30 @@ ENV BUNDLE_SILENCE_ROOT_WARNING=true \

# When launched by user, default to PowerShell if no other command specified.
CMD ["powershell.exe", "-NoLogo", "-ExecutionPolicy", "Bypass"]
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]

ENV chocolateyVersion="1.4.0"

# Install Chocolatey (and essentials)
RUN powershell -Command "Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && \
C:\ProgramData\Chocolatey\bin\refreshenv && \
choco feature enable -n=allowGlobalConfirmation && \
choco config set cacheLocation C:\chococache && \
choco upgrade chocolatey && \
choco install git && \
rmdir /q /s C:\chococache && \
echo Chocolatey install complete -- closing out layer (this can take awhile)
RUN Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

RUN Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1
RUN choco feature enable -n=allowGlobalConfirmation
RUN choco config set cacheLocation C:\chococache
RUN choco install git
RUN Remove-Item -Recurse -Force c:\chococache

ARG RUBY_URL=https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.1.4-1/rubyinstaller-3.1.4-1-x64.exe
ARG RUBY_FILE=rubyinstaller-3.1.4-1-x64.exe
ARG RUBY_DIR=c:/ruby30

# Install Ruby + Devkit
RUN powershell -Command \
$ErrorActionPreference = 'Stop'; \
Write-Output 'Downloading Ruby + DevKit'; \
RUN Write-Output 'Downloading Ruby + DevKit'; \
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
(New-Object System.Net.WebClient).DownloadFile('https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.1.1-1/rubyinstaller-devkit-3.1.1-1-x64.exe', 'c:\\rubyinstaller-devkit-3.1.1-1-x64.exe'); \
Write-Output 'Installing Ruby + DevKit'; \
Start-Process c:\rubyinstaller-devkit-3.1.1-1-x64.exe -ArgumentList '/verysilent /dir=C:\\ruby31' -Wait ; \
Write-Output 'Cleaning up installation'; \
Remove-Item c:\rubyinstaller-devkit-3.1.1-1-x64.exe -Force; \
Write-Output 'Closing out the layer (this can take awhile)';
(New-Object System.Net.WebClient).DownloadFile(\"$env:RUBY_URL\", \"c:/$env:RUBY_FILE\")
RUN Write-Output 'Installing Ruby + DevKit'
RUN Start-Process c:/$env:RUBY_FILE -ArgumentList \"/allusers /verysilent /dir=$env:RUBY_DIR\" -Wait
RUN Write-Output 'Cleaning up installation'
RUN Remove-Item c:/$env:RUBY_FILE -Force
RUN Write-Output 'Closing out the layer (this can take awhile)'

99 changes: 23 additions & 76 deletions dobi.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
---
# Alma
image=2_6-almalinux-8:
image: '{env.IMAGE_REGISTRY}/almalinux-8'
context: 2.6/almalinux/8
tags:
- '2.6'

image=2_7-almalinux-8:
image: '{env.IMAGE_REGISTRY}/almalinux-8'
context: 2.7/almalinux/8
Expand All @@ -26,18 +20,6 @@ image=3_1-almalinux-8:
- '3.1'

# Centos
image=2_6-centos-7:
image: '{env.IMAGE_REGISTRY}/centos-7'
context: 2.6/centos/7
tags:
- '2.6'

image=2_6-centos-8:
image: '{env.IMAGE_REGISTRY}/centos-8'
context: 2.6/centos/8
tags:
- '2.6'

image=2_7-centos-7:
image: '{env.IMAGE_REGISTRY}/centos-7'
context: 2.7/centos/7
Expand Down Expand Up @@ -77,30 +59,12 @@ image=3_1-centos-8:
- '3.1'

# Fedora
image=2_6-fedora-22:
image: '{env.IMAGE_REGISTRY}/fedora-22'
context: 2.6/fedora/22
tags:
- '2.6'

image=2_6-fedora-latest:
image: '{env.IMAGE_REGISTRY}/fedora-latest'
context: 2.6/fedora/latest
tags:
- '2.6'

image=2_7-fedora-22:
image: '{env.IMAGE_REGISTRY}/fedora-22'
context: 2.7/fedora/22
tags:
- '2.7'

image=2_7-fedora-latest:
image: '{env.IMAGE_REGISTRY}/fedora-latest'
context: 2.7/fedora/latest
tags:
- '2.7'

image=3_0-fedora-22:
image: '{env.IMAGE_REGISTRY}/fedora-22'
context: 3.0/fedora/22
Expand Down Expand Up @@ -129,12 +93,6 @@ image=3_1-fedora-latest:


# Opensuse
image=2_6-opensuse-15:
image: '{env.IMAGE_REGISTRY}/opensuse-15'
context: 2.6/opensuse/15
tags:
- '2.6'

image=2_7-opensuse-15:
image: '{env.IMAGE_REGISTRY}/opensuse-15'
context: 2.7/opensuse/15
Expand All @@ -155,24 +113,6 @@ image=3_1-opensuse-15:
- '3.1'

# Ubuntu
image=2_6-ubuntu-18_04:
image: '{env.IMAGE_REGISTRY}/ubuntu-18.04'
context: 2.6/ubuntu/18.04
tags:
- '2.6'

image=2_6-ubuntu-20_04:
image: '{env.IMAGE_REGISTRY}/ubuntu-20.04'
context: 2.6/ubuntu/20.04
tags:
- '2.6'

image=2_6-ubuntu-22_04:
image: '{env.IMAGE_REGISTRY}/ubuntu-22.04'
context: 2.6/ubuntu/22.04
tags:
- '2.6'

image=2_7-ubuntu-18_04:
image: '{env.IMAGE_REGISTRY}/ubuntu-18.04'
context: 2.7/ubuntu/18.04
Expand All @@ -185,12 +125,6 @@ image=2_7-ubuntu-20_04:
tags:
- '2.7'

image=2_7-ubuntu-22_04:
image: '{env.IMAGE_REGISTRY}/ubuntu-22.04'
context: 2.7/ubuntu/22.04
tags:
- '2.7'

image=3_0-ubuntu-18_04:
image: '{env.IMAGE_REGISTRY}/ubuntu-18.04'
context: 3.0/ubuntu/18.04
Expand Down Expand Up @@ -231,15 +165,6 @@ image=3_1-ubuntu-22_04:
- '3.1'

# Windows
image=2_6-windows-2019:
image: '{env.IMAGE_REGISTRY}/windows-2019'
context: 2.6/windows/2019
tags:
- '2.6'
annotations:
tags:
- expeditor:host-os=windows

image=2_7-windows-2019:
image: '{env.IMAGE_REGISTRY}/windows-2019'
context: 2.7/windows/2019
Expand All @@ -258,6 +183,16 @@ image=3_0-windows-2019:
tags:
- expeditor:host-os=windows

image=3_0-windows-2019-full:
image: '{env.IMAGE_REGISTRY}/windows-2019-full'
context: 3.0/windows/2019-full
tags:
- '3.0'
- latest
annotations:
tags:
- expeditor:host-os=windows

image=3_1-windows-2019:
image: '{env.IMAGE_REGISTRY}/windows-2019'
context: 3.1/windows/2019
Expand All @@ -266,4 +201,16 @@ image=3_1-windows-2019:
- latest
annotations:
tags:
- expeditor:host-os=windows
- expeditor:host-os=windows

image=3_1-windows-2019-full:
image: '{env.IMAGE_REGISTRY}/windows-2019-full'
context: 3.1/windows/2019-full
tags:
- '3.1'
- latest
annotations:
tags:
- expeditor:host-os=windows