-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 5109f3b
Showing
4 changed files
with
102 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Build and push Docker image | ||
|
||
on: | ||
push: | ||
branches: ['main'] | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }} | ||
|
||
jobs: | ||
build-and-push-image: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
|
||
- name: Build and push Docker image | ||
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 | ||
with: | ||
context: . | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM debian:bookworm-slim | ||
|
||
RUN apt-get update && apt-get install -y aria2 cabextract wimtools chntpw genisoimage | ||
|
||
RUN mkdir -p /opt/uupdump-exec | ||
COPY download.sh /opt/uupdump-exec/install.sh | ||
|
||
ENTRYPOINT ["/opt/uupdump-exec/install.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# UUUPdump Executor | ||
|
||
When using macOS or linux, [uupdump.net](https://uupdump.net) requires you to install a couple of packages to execute the download script. | ||
With this docker image, there is no need for that. You simply mount the downloader directory, run this docker image and get your ISO file after some time. | ||
|
||
## Usage | ||
|
||
1. Go to [uupdump.net](https://uupdump.net) and generate a download package. | ||
2. Unzip the download package. | ||
|
||
```bash | ||
unzip 22631.2861_arm64_en-us_multi_8cb83256_convert.zip -d downloader | ||
``` | ||
|
||
3. Change to the directory that contains the install scripts, which you downloaded from uup | ||
|
||
```bash | ||
cd downloader | ||
docker run -it -v "$PWD/:/downloader" gcr.io/lukasweber/uupdump-exec | ||
``` | ||
|
||
There you go ... :) | ||
|
||
```log | ||
[...] | ||
99.11% done, estimate finish Thu Jan 4 11:31:43 2024 | ||
99.34% done, estimate finish Thu Jan 4 11:31:44 2024 | ||
99.57% done, estimate finish Thu Jan 4 11:31:44 2024 | ||
99.80% done, estimate finish Thu Jan 4 11:31:44 2024 | ||
Total translation table size: 2048 | ||
Total rockridge attributes bytes: 0 | ||
Total directory bytes: 0 | ||
Path table size(bytes): 10 | ||
Max brk space used ce000 | ||
2194437 extents written (4286 MB) | ||
Done. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
if [ ! -d "/downloader" ]; then | ||
echo "ERROR: /downloader directory not found" | ||
exit 1 | ||
fi | ||
|
||
if [ ! -f "/downloader/uup_download_linux.sh" ]; then | ||
echo "ERROR: /downloader/uup_download_linux.sh not found. Make sure to mount the directory which contains 'uup_download_linux' to /downloader" | ||
exit 1 | ||
fi | ||
|
||
cd /downloader | ||
chmod +x uup_download_linux.sh | ||
|
||
./uup_download_linux.sh |