Giter VIP home page Giter VIP logo

docker-wsusoffline's People

Contributors

brice187 avatar r0gger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-wsusoffline's Issues

make iso error , Error: Option o2k16-x64 was not recognized.

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 ??

Exception: [AbstractCommand.cc:351] errorCode=3

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


out.log

Can I use this as a WSUS server?

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?

Download Office Updates fails with error code 1

Hello,

I tested the docker for the following tasks :

  • download windows 10 updates
  • download office 2016 updates
  • for enu and fra languages

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'_

Some Feedback

Hi @R0GGER,

thanks for providing a docker image for wsusoffline.
I have some feedback for this docker image. I hope it is appreciated.

  1. Include the installed Version into the image and use Git and Docker-Tags for Versioning instead of always installing the newest version on start. This should speedup the starting process a little bit and it allows to use an old Version of wsusofffline, if needed. Git and Docker Tags could be the same like the release Versions. This could be automated with some CI/CD-Environment, like CircleCI or Jenkins.
  2. Do not use multiple 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.
  3. Add an option to run the Docker Container only once, like EXIT=true or ONCE=true. This would disable also the SLEEP-Setting.

Error: Please install the package jq

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

aria2 seems to have a problem

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...

aria2/aria2#1636

Feature: add timestamp after run

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

Permission Errors

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.