Closed xgalen closed 6 years ago
The runner was using a deprecated mechanism that was removed in 1.12. Please use the latest source snapshot instead. The issue should be resolved there.
Sorry but how can I do that?
Perform these commands in the directory where Strider is installed (as the user that owns the files in the directory):
cd node_modules
rm -rf strider-docker-runner
git clone https://github.com/Strider-CD/strider-docker-runner.git
cd strider-docker-runner
npm install
When a new release is published to npm (CC @knownasilya) you're going to want to remove the git checkout again and re-install the package from npm. Otherwise future upgrades through the web UI will not work as expected.
Oh ok! I understood about the docker-image... My fault.
The default Docker image that the runner is using is garbage anyway :P Depending on what you want to test, you might want to check out https://github.com/fairmanager/strider-docker-slave (fairmanager/strider-docker-slave on the Docker Hub) or roll your own image.
Using the latest version now I got this error:
Fri, 12 Aug 2016 14:10:55 GMT strider-docker-runner:create-container Checking if image exists locally...
Fri, 12 Aug 2016 14:10:55 GMT strider-docker-runner:create-container Image is already locally
Fri, 12 Aug 2016 14:10:55 GMT strider-docker-runner:create-container Creating container...
Fri, 12 Aug 2016 14:10:55 GMT strider-docker-runner:create-container [runner:docker] container id 6c8a941c67b0a841fa155eaf8a2345692a741faafff34f0a0037166f8b0a7a06
Fri, 12 Aug 2016 14:10:56 GMT strider-docker-runner:create-container running command n
Fri, 12 Aug 2016 14:10:56 GMT strider-docker-runner:create-container with args [ '0.10' ]
Fri, 12 Aug 2016 14:10:56 GMT strider-docker-runner:create-container got an event { data: 'Error: spawn ENOENT', event: 'stderr' }
Fri, 12 Aug 2016 14:10:56 GMT strider-docker-runner:create-container got an event { event: 'stderr',
data: 'execvp(): No such file or directory\n' }
Fri, 12 Aug 2016 14:10:56 GMT strider-docker-runner:create-container got an event { code: -1, event: 'exit' }
Fri, 12 Aug 2016 14:10:56 GMT strider-docker-runner:run Job done. Killing container.
Fri, 12 Aug 2016 14:10:56 GMT strider-docker-runner:create-container done with the container null { StatusCode: 137 }
Fri, 12 Aug 2016 14:10:56 GMT strider-docker-runner:create-container Stopped the container!
Fri, 12 Aug 2016 14:10:56 GMT strider-docker-runner [runner:docker] Job done without error. Project: mediasmart/XXX Job ID: 57add8efa880db5a3975cb91
n
probably doesn't exist inside the container image
Closing this. @oliversalzburg was right.
Hi,
I'm testing this plugin and got an error in
environment
phase.The
# Creating docker container from strider/strider-docker-slave
line appears but after that, Strider show this error:`Error: (HTTP code 400) unexpected - starting container with HostConfig was deprecated since v1.10 and removed in v1.12``
strider.log:
I've never used Docker before but I suspect there is a problem with the docker-image. Docker has updated the version to 1.12 few days ago, so maybe this needs to be fixed. I've searched the string
HostConfig
but no results found though.Meanwhile I can install docker v1.10 and try, but I suppose it is better to fix this if possible.
Thank you in advance.