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

Added update script from 1.1.1 to 1.3.0 #36

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

abcarcol
Copy link
Collaborator

@abcarcol abcarcol commented May 5, 2022

No description provided.

Copy link
Collaborator

@albertdb albertdb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is missing the changes required in the config file and also the changes on the installer for 1.3.0.

update.ps1 Outdated
else # All update preconditions passed
{
# Create backup of dockerd
Copy-Item "$script:windowsBinariesPath\dockerd.exe" "C:\" -Recurse -Force
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better create a temporary file (https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/new-temporaryfile?view=powershell-7.2) and copy the file there.

Please apply also that change to installation to avoid writing directly on C: when decompressing dockerd

update.ps1 Outdated
Comment on lines 69 to 73
# Restore and remove backup of dockerd
Stop-Service -Name "docker"
Copy-Item "C:\dockerd.exe" $script:windowsBinariesPath -Recurse -Force
Remove-Item "C:\dockerd.exe"
Start-Service -Name "docker"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, this and the above assume that the user installed Windows containers support.

Copy link
Collaborator

@albertdb albertdb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update installer script with new version (and use $env:LOCALAPPDATA and $env:APPDATA where appropriate) and modify settings.json for new installations

update.ps1 Outdated Show resolved Hide resolved
update.ps1 Outdated Show resolved Hide resolved
update.ps1 Outdated Show resolved Hide resolved
update.ps1 Outdated Show resolved Hide resolved
abcarcol and others added 7 commits May 9, 2022 17:42
Co-authored-by: albertdb <albertdb@users.noreply.github.com>
Co-authored-by: albertdb <albertdb@users.noreply.github.com>
Co-authored-by: albertdb <albertdb@users.noreply.github.com>
Co-authored-by: albertdb <albertdb@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants