circleci

rm -rf /home/circleci/.gitconfig
glenjamin 2020-10-01T07:59:27.001800Z

are you using remote docker at all?

borkdude 2020-10-01T08:20:07.002200Z

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

glenjamin 2020-10-01T08:28:15.003200Z

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

glenjamin 2020-10-01T08:28:41.003700Z

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

borkdude 2020-10-01T08:54:05.004Z

@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

borkdude 2020-10-01T08:54:36.004500Z

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

glenjamin 2020-10-01T09:22:14.005100Z

- setup_remote_docker
    version: 19.03.12    

borkdude 2020-10-01T09:44:46.005400Z

why not just bump the defaults yourself at circleci?

glenjamin 2020-10-01T10:17:35.005700Z

because that’s not backwards compatible 😞

glenjamin 2020-10-01T10:17:46.006Z

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

glenjamin 2020-10-01T10:17:56.006300Z

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

glenjamin 2020-10-01T10:18:20.007Z

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

borkdude 2020-10-01T10:18:25.007200Z

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

glenjamin 2020-10-01T10:21:08.007600Z

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

glenjamin 2020-10-01T10:21:30.008100Z

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

borkdude 2020-10-01T10:22:04.008400Z

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

glenjamin 2020-10-01T10:26:10.008800Z

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

borkdude 2020-10-01T10:26:50.009100Z

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

borkdude 2020-10-01T10:27:23.009300Z

just bumped them

timo 2020-10-01T12:57:35.009700Z

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

glenjamin 2020-10-01T13:41:36.010200Z

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

borkdude 2020-10-01T14:03:48.010400Z

link?

borkdude 2020-10-01T14:24:38.011200Z

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

borkdude 2020-10-01T14:24:52.011400Z

Thanks for sharing

borkdude 2020-10-01T19:00:28.011600Z

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

borkdude 2020-10-01T19:00:57.012Z

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

borkdude 2020-10-01T19:01:22.012300Z

oh I see, the third step has a remote docker

borkdude 2020-10-01T19:01:26.012500Z

never mind then