chore: testing

This commit is contained in:
Michael Kriese 2020-05-07 10:44:26 +02:00
parent c3f320cd62
commit e6df98fa8c
2 changed files with 1 additions and 4 deletions

View file

@ -14,7 +14,6 @@ jobs:
timeout-minutes: 5 timeout-minutes: 5
steps: steps:
- run: ls -lrth /var/run/docker.sock
- name: github-cleanup - name: github-cleanup
uses: renovatebot/internal-tools@v0 uses: renovatebot/internal-tools@v0
continue-on-error: true continue-on-error: true

View file

@ -20,16 +20,14 @@ class Renovate {
} }
async runDockerContainer(): Promise<void> { async runDockerContainer(): Promise<void> {
await exec('sudo', ['chmod', 'o=rw', '/var/run/docker.sock']);
const commandArguments = [ const commandArguments = [
'--rm', '--rm',
`--env ${this.configFileEnv}=${this.configFileMountPath()}`, `--env ${this.configFileEnv}=${this.configFileMountPath()}`,
`--env ${this.tokenEnv}=${this.token}`, `--env ${this.tokenEnv}=${this.token}`,
`-e RENOVATE_DOCKER_USER=1001`,
`-e HOME=/home/ubuntu`,
`--volume ${this.configFile}:${this.configFileMountPath()}`, `--volume ${this.configFile}:${this.configFileMountPath()}`,
`-v /var/run/docker.sock:/var/run/docker.sock`, `-v /var/run/docker.sock:/var/run/docker.sock`,
`-v /tmp:/tmp`, `-v /tmp:/tmp`,
`-u 1001`,
this.docker.image(), this.docker.image(),
]; ];
const command = `docker run ${commandArguments.join(' ')}`; const command = `docker run ${commandArguments.join(' ')}`;