Compare commits

..

3 Commits

Author SHA1 Message Date
Evgeny Vereshchagin 8ba6c15a82
Merge pull request #16437 from systemd/coverity-gcc-10
coverity: switch back to Fedora 31
2020-07-13 01:42:39 +03:00
Evgeny Vereshchagin b7067c4d87 coverity: install systemd
Apparently systemd is no longer installed in fedora containers
by default

```
docker: Error response from daemon: OCI runtime create failed: container_linux.go:348:
starting container process caused "exec: \"/sbin/init\": stat /sbin/init: no such file or directory": unknown.
The command "$CI_MANAGERS/fedora.sh SETUP" failed and exited with 127 during .
```
2020-07-12 22:26:19 +00:00
Evgeny Vereshchagin 1374448add coverity: switch back to Fedora 31
Apparently 6 days ago fedora:latest started to point to fedora:32,
which comes with gcc-10. Coverity doesn't support it yet.
2020-07-12 22:00:16 +00:00
2 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ jobs:
- stage: Coverity - stage: Coverity
language: bash language: bash
env: env:
- FEDORA_RELEASE="latest" - FEDORA_RELEASE="31"
- TOOL_BASE="/var/tmp/coverity-scan-analysis" - TOOL_BASE="/var/tmp/coverity-scan-analysis"
- CONT_NAME="coverity-fedora-$FEDORA_RELEASE" - CONT_NAME="coverity-fedora-$FEDORA_RELEASE"
- DOCKER_EXEC="docker exec -ti $CONT_NAME" - DOCKER_EXEC="docker exec -ti $CONT_NAME"

View File

@ -65,11 +65,11 @@ for phase in "${PHASES[@]}"; do
info "Setup phase" info "Setup phase"
info "Using Fedora $FEDORA_RELEASE" info "Using Fedora $FEDORA_RELEASE"
# Pull a Docker image and start a new container # Pull a Docker image and start a new container
docker pull fedora:$FEDORA_RELEASE printf "FROM fedora:$FEDORA_RELEASE\nRUN bash -c 'dnf install -y systemd'\n" | docker build -t fedora-with-systemd/latest -
info "Starting container $CONT_NAME" info "Starting container $CONT_NAME"
$DOCKER_RUN -v $REPO_ROOT:/build:rw \ $DOCKER_RUN -v $REPO_ROOT:/build:rw \
-w /build --privileged=true --name $CONT_NAME \ -w /build --privileged=true --name $CONT_NAME \
-dit --net=host fedora:$FEDORA_RELEASE /sbin/init -dit --net=host fedora-with-systemd/latest /sbin/init
# Wait for the container to properly boot up, otherwise we were # Wait for the container to properly boot up, otherwise we were
# running following dnf commands during the initializing/starting # running following dnf commands during the initializing/starting
# (early/late bootup) phase, which caused nasty race conditions # (early/late bootup) phase, which caused nasty race conditions