r0gger / docker-wsusoffline Goto Github PK
View Code? Open in Web Editor NEWUsing a Docker container for WSUS Offline Update...
Home Page: https://hub.docker.com/r/r0gger/docker-wsusoffline/
Using a Docker container for WSUS Offline Update...
Home Page: https://hub.docker.com/r/r0gger/docker-wsusoffline/
here is my command to run this container
docker run -d --name=wsusoffline -v ./client:/client -e SYSTEMS="all-win-x64" -e LANGUAGE="cht" -e PARAMS="-includesp -includecpp -includedotnet -includewddefs8" -e ISO=yes -e SLEEP=48h -e DOWNLOADERS="aria2c wget" r0gger/docker-wsusoffline:latest
as you can see , I didn't assign OFFICE="o2k16-x64" ,
but in docker log , you can see something wrong with create-iso-image command .
Info: Summary
Info: Download and file verification errors: 0
Cleaning up temporary files...
Exiting download-updates.bash (normal exit)...
Info: Starting create-iso-image.bash
Info: Command line: ./create-iso-image.bash all-win-x64 o2k16-x64 -includesp
-includecpp -includedotnet -includewddefs8 -output-path
/wsus/wsusoffline/client/iso
Info: ISO image creation tool: mkisofs
Info: Parsing first parameter...
Info: Found update all-win-x64
Info: Selected exclude list: ./exclude/ExcludeListISO-all-win-x64.txt
Info: Parsing remaining parameter...
Error: Option o2k16-x64 was not recognized.
Usage:
./create-iso-image.bash <update> [<option> ...]
any suggestions ??
Running this Image on Kubernetes and it seems to work pretty well.
Some Downloads seem to fail, is this normal behaviour?
Info: Start processing of "w60 x86 enu" ...
Info: Verifying the integrity of existing files in the directory
../client/w60/glb ...
hashdeep: Audit passed
Input files examined: 0
Known files expecting: 0
Files matched: 10
Files partially matched: 0
Files moved: 0
New files found: 0
Known files not found: 0
Info: Verified the integrity of existing files in the directory
../client/w60/glb
Info: Determining static update links ...
Info: Created file ValidStaticLinks-w60-x86-enu.txt
Info: Downloading/validating 8 link(s) from input file
ValidStaticLinks-w60-x86-enu.txt ...
10/13 09:37:38 [ESC[1;32mNOTICEESC[0m] Downloading 1 item(s)
10/13 09:37:38 [ESC[1;31mERRORESC[0m] CUID#7 - Download aborted. URI=http://download.microsoft.com/download/0/E/D/0ED4ED7C-9FD8-4162-8024-F0643843B8EE/Windows6.0-KB2117917-x86.msu
Exception: [AbstractCommand.cc:351] errorCode=3 URI=http://download.microsoft.com/download/0/E/D/0ED4ED7C-9FD8-4162-8024-F0643843B8EE/Windows6.0-KB2117917-x86.msu
-> [HttpSkipResponseCommand.cc:218] errorCode=3 Resource not found
10/13 09:37:38 [ESC[1;32mNOTICEESC[0m] Download GID#7997adb21591e84b not complete:
Download Results:
gid |stat|avg speed |path/URI
======+====+===========+=======================================================
7997ad|ERR | 0B/s|http://download.microsoft.com/download/0/E/D/0ED4ED7C-9FD8-4162-8024-F0643843B8EE/Windows6.0-KB2117917-x86.msu
Status Legend:
(ERR):error occurred.
aria2 will resume download if the transfer is restarted.
If there are any errors, then see the log file. See '-l' option in help/man page for details.
Error: Download/validation of Windows6.0-KB2117917-x86.msu failed
I'm running this using the docker plugin for Open Media Vault (http://www.openmediavault.org/) and get a "This script should not be run as root" error.
What further debugging information would be helpful?
I just tried this image and it seems to be working fine (it downloaded several GBs of updates), and now I'm wondering if I can make it my WSUS server (if I proper configure the server in regedit).
I checked the dockerfile and I did not see any expose command, so I don't have any clue of which port I should open nor if that's supported.
Can I use this as a WSUS server?
Hello,
I tested the docker for the following tasks :
Following your recent commits Windows 10 updates are fine, but office 2016 fails :
./download-updates-tasks/10-parse-command-line.bash: line 331: architectures_list[*]: unbound variable
Exiting with error code 1 (temporary files are kept for debugging)...
Here's the complete log extract :
Info: Starting download-updates.bash 1.1 (2018-02-06)
Info: Command line: ./download-updates.bash o2k16-x64 enu,fra
Info: Running on WSUS Offline Update version 11.2.2
Info: Repository last updated on 2018-04-20
Info: Checking needed applications...
Info: Checking recommended applications...
Info: Found Linux trash handler: trash-put
Info: Setting download options for GNU Wget...
Info: Wake up sleeping DSL modems and routers...
PING fg.download.windowsupdate.com.c.footprint.net (8.248.103.254) 56(84) bytes of data.
--- fg.download.windowsupdate.com.c.footprint.net ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 2999ms
Info: Testing the Internet connection...
Info: Connection test succeeded
Info: Skipped searching for new versions of WSUS Offline Update, because it has
already been done less than one day ago
Info: Skipped update of configuration files for WSUS Offline Update, because it
has already been done less than one day ago
Info: Parsing command-line...
Info: Parsing first parameter...
Info: Adding "o2k16-x64" to the list of updates...
Info: Parsing preliminary list of updates...
Info: Found update: o2k16-x64, Office 2016, 32-bit and 64-bit
Info: Adding common updates for all Windows and Office versions...
Info: Adding "ofc" to the list of updates...
Info: Building a list of needed architectures for the included downloads. This
depends on Windows updates only...
Info: Parsing second parameter...
Info: Found language: enu, en, English
Info: Found language: fra, fr, French
Info: Parsing remaining parameters...
./download-updates-tasks/10-parse-command-line.bash: line 331: architectures_list[*]: unbound variable
Exiting with error code 1 (temporary files are kept for debugging)...
Sleeping for 48h before next download.
Apr 20 12:45:42 wsusoffline syslog-ng[12]: WARNING: you are using the pipe driver, underlying file is not a FIFO, it should be used by file(); filename='/dev/stdout'_
Hi @R0GGER,
thanks for providing a docker image for wsusoffline.
I have some feedback for this docker image. I hope it is appreciated.
RUN
Commands to install and cleanup dependencies here. This will create multiple intermediate image layers (more infos for example here or here). Instead call them all in one time, so that this will produce only one intermediate layer.EXIT=true
or ONCE=true
. This would disable also the SLEEP
-Setting.Info: Checking needed applications...
Info: Checking needed applications for Microsoft Edge (Chromium) downloads...
Error: Please install the package jq
Info: Found hexdump utility: od
Error: 1 needed application is missing
Warning: Microsoft Edge (Chromium) downloads will be disabled
Maybe add jq
to Dockerfile download Edge updates
10/07 05:47:30 [NOTICE] Downloading 2 item(s)
10/07 05:47:30 [NOTICE] Download complete: /wsus/wsusoffline/sh/wsusscn2.cab
10/07 05:47:30 [ERROR] CUID#7 - Download aborted. URI=https://download.wsusoffline.net/StaticDownloadLink-recent.txt
Exception: [AbstractCommand.cc:351] errorCode=1 URI=https://download.wsusoffline.net/StaticDownloadLink-recent.txt
-> [SocketCore.cc:1018] errorCode=1 SSL/TLS handshake failure: `not signed by known authorities or invalid' `expired'
10/07 05:47:30 [NOTICE] Download GID#eb64fb898dd5e068 not complete:
Download Results:
gid |stat|avg speed |path/URI
======+====+===========+=======================================================
f7282b|OK | 0B/s|/wsus/wsusoffline/sh/wsusscn2.cab
eb64fb|ERR | 0B/s|https://download.wsusoffline.net/StaticDownloadLink-recent.txt
Status Legend:
(OK):download completed.(ERR):error occurred.
aria2 will resume download if the transfer is restarted.
If there are any errors, then see the log file. See '-l' option in help/man page for details.
Info: Retrying with increased verbosity in 10 seconds...
Can you build docker image for arm7, please ?
Hello,
Thanks for the great work.
I have the idea to spend the current time at the end of an update run. This one can stand in docker log the current status.
Like : Last successfully run at 2019-07-12 15:00
thank you in advance
The problem seems to appear since the last update :(
diff: static/StaticDownloadLink-this.txt: No such file or directory
Updating wsusoffline...
cp: cannot create regular file '/wsus/wsusoffline/sh/preferences.bash': No such file or directory
./download.sh: line 16: cd: /wsus/wsusoffline/sh: No such file or directory
./download.sh: line 22: cd: /wsus/wsusoffline/sh: No such file or directory
mkdir: cannot create directory '/wsus/wsusoffline/client': Permission denied
rm: cannot remove '/wsus/wsusoffline/client/iso/*_wsusoffline-*.iso': Permission denied
./download.sh: line 29: cd: /wsus/wsusoffline/sh: No such file or directory
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.