Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit e69b627

Browse files
authored
Merge pull request #450 from joeabbey/install-one-liners
Improving installer scripts
2 parents 78fa752 + f5a6965 commit e69b627

1 file changed

Lines changed: 20 additions & 3 deletions

File tree

README.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,27 @@ More examples are available in the [examples](examples) directory.
152152

153153
Pre-built binaries are available on [GitHub releases](https://github.com/docker/app/releases) for Windows, Linux and macOS.
154154

155+
### Linux or macOS
156+
155157
```bash
156-
wget https://github.com/docker/app/releases/download/v0.6.0/docker-app-linux.tar.gz
157-
tar xf docker-app-linux.tar.gz
158-
cp docker-app-linux /usr/local/bin/docker-app
158+
export OSTYPE="$(uname | tr A-Z a-z)"
159+
curl -fsSL --output "/tmp/docker-app-${OSTYPE}.tar.gz" "https://github.com/docker/app/releases/download/v0.6.0/docker-app-${OSTYPE}.tar.gz"
160+
tar xf "/tmp/docker-app-${OSTYPE}.tar.gz" -C /tmp/
161+
install -b "/tmp/docker-app-${OSTYPE}" /usr/local/bin/docker-app
162+
```
163+
164+
### Windows
165+
```powershell
166+
function Expand-Tar($tarFile, $dest) {
167+
168+
if (-not (Get-Command Expand-7Zip -ErrorAction Ignore)) {
169+
Install-Package -Scope CurrentUser -Force 7Zip4PowerShell > $null
170+
}
171+
172+
Expand-7Zip $tarFile $dest
173+
}
174+
Invoke-WebRequest -Uri https://github.com/docker/app/releases/download/v0.6.0/docker-app-windows.tar.gz
175+
Expand-Tar docker-app-windows.tar.gz docker-app-windows.exe
159176
```
160177

161178
**Note:** To use Application Packages as images (i.e.: `save`, `push`, or `deploy` when package is not present locally) on Windows, one must be in Linux container mode.

0 commit comments

Comments
 (0)