Fork me on GitHub
#circleci
<
2020-10-01
>
glenjamin07:10:27

are you using remote docker at all?

borkdude08:10:07

I don't know: what is remote docker? I do build docker images on circleci

glenjamin08:10:15

building docker images requires a VM under the hood, there’s 2 ways to do this: via machine executor, or via the setup_remote_docker step in the docker executor. The latter spins up a remote VM and connects you to the docker socket

glenjamin08:10:41

the setup_remote_docker step has an optional version number - and defaults to a very old version

borkdude08:10:05

@glenjamin Hmm yes, I have this in my clj-kondo config:

docker:
    docker:
      - image: circleci/buildpack-deps:stretch
    steps:
      - checkout
      - setup_remote_docker
      - run:
          name: Build Docker image
          command: .circleci/script/docker

borkdude08:10:36

I set this up about 1.5 year ago. What's the best way to do this now? I don't have a preference

glenjamin09:10:14

- setup_remote_docker
    version: 19.03.12    

borkdude09:10:46

why not just bump the defaults yourself at circleci?

glenjamin10:10:35

because that’s not backwards compatible 😞

glenjamin10:10:46

we might still do it later, and we might do it only for new projects

glenjamin10:10:56

but mainly we want people to select a version they’re happy with

glenjamin10:10:20

some people prefer a fixed version, some prefer “gimme latest”, and we don’t know who is who

borkdude10:10:25

can I also fill in: version: latest, so it'll always use the latest and I never have to think about it again? :)

glenjamin10:10:08

you currently cannot, but i just mentioned that to the machine images team

glenjamin10:10:30

in general that’s problematic, because when we change it some percentage of builds break and we get a bunch of support tickets

borkdude10:10:04

thanks so much, I'll just change it to the version you mentioned

glenjamin10:10:10

oh, 19.03.13 is out now too if you want to use the latest-latest

borkdude10:10:50

I'll do that in a year or two when I get another email :)

borkdude10:10:23

just bumped them

timo12:10:35

good to know :thinking_face: I received this email as well

glenjamin13:10:36

the team which sent it is iterating on the copy in the discuss post, but annoyingly emails are static 😄

borkdude14:10:38

Idea for future emails: include link to pre-created discuss thread :)

borkdude14:10:52

Thanks for sharing

borkdude19:10:28

I've got this in my config:

docker:
    docker:
      - image: circleci/buildpack-deps:stretch
    steps:
      - checkout
      - setup_remote_docker:
          version: 19.03.12
      - run:
          name: Build Docker image
          command: .circleci/script/docker

borkdude19:10:57

Yet I see

Build-agent version 1.0.40344-226c2ebb (2020-10-01T12:44:53+0000)
Docker Engine Version: 18.09.6
in the build: https://app.circleci.com/pipelines/github/borkdude/clj-kondo/2941/workflows/f58c8d15-78d2-4417-873e-f38e89fcc418/jobs/11132

borkdude19:10:22

oh I see, the third step has a remote docker

borkdude19:10:26

never mind then