I’ve been unsuccessfully trying to install ffmpeg on circleci/python3.6 so I decided to try and build my own image using ubuntu 18.04. However, it seems circleci is expecting a user and group named circleci. When I copied the lines from their Dockerfile I got an error:
Unable to parse YAML
mapping values are not allowed here
in ‘string’, line 18, column 48:
… -c 'echo "circleci ALL=NOPASSWD: ALL" >> /etc/sudoers.d/50-circ …
My config.yml is as follows:
version: 2
jobs:
build:
docker:
- image: ubuntu:18.04
steps:
- checkout
- run: echo "A first hello"
- run:
name: Add apt repo for ffmpeg
command: |
sudo apt-get update
sudo apt-get install -y ffmpeg
- run: ffmpeg -h
- run: sh -c 'groupadd --gid 3434 circleci'
- run: sh -c 'useradd --uid 3434 --gid circleci --shell /bin/bash --create-home circleci'
- run: sh -c 'echo "circleci ALL=NOPASSWD: ALL" >> /etc/sudoers.d/50-circleci'
- run: sh -c 'echo "Defaults env_keep += 'noninteractive'" >> /etc/sudoers.d/env_keep'