Error using docker to build the windows client

Hi @eointiereney! Thanks for the insterest in the development of owncloud and its documentation :wink:

I might be able to help you with this, since I was messing around with this image just some days ago and it’s kind of tricky since there’s actually not many docs about this.

From your messages I’m assuming you are using @DeepDiver1975’s docker-owncloud-client-win32 image, and you already have a container up and running (named e.g. docker-owncloud-client-win32) .

###From the host machine:

  1. Clone and copy the contents of the client repository and the git submodules into the container.
  2. Then copy this contents to the running container.
$ git clone --depth 1 git@github.com:owncloud/client.git
Cloning into 'client'...
...
Resolving deltas: 100% (189/189), done.
# You need to initialize and clone all the relevant submodules:
$ cd client 
$ git submodule update --init 
...
$ docker cp ./ docker-owncloud-client-win32:client

From the docker container:

Note: you can run these with docker exec -ti from the host machine:

  1. You need the compile_client.sh script, from the owncloud/administration repository.
  2. Then you just need to specify the path to the repository as argument for the script.
# wget https://raw.githubusercontent.com/owncloud/administration/master/jenkins/win32_build/compile_client.sh
...
# ./compile_client.sh client
...
CPack: Create package
CPack: - package: /client/build/ownCloud-2.3.0.0git-setup.exe generated.

Finally, you can copy back to the host machine the .exe created in the container:

$ docker cp docker-owncloud-client-win32:client/build/ownCloud-2.3.0.0git-setup.exe ~/Desktop/

Hope this helps! :grin:

2 Likes