Migrate CircleCI to use a bullseye-based image

Also some modifications necessary to make it work:
- Migrate from `circleci` images to `clojure` since they're out-of-date
  and also seem to be considered legacy:
  https://circleci.com/docs/2.0/circleci-images/#legacy-language-images
- Remove unnecessary usage of `sudo`, since all commands runs as root
- Sync packages with `Dockerfile`. This will make easier to test locally
  if everything will work (of course, it is not 100% guarantee)
This commit is contained in:
Thiago Kenji Okada 2021-09-09 18:20:40 -03:00
parent 8c5c1bbe55
commit cd5a832352

View file

@ -7,7 +7,7 @@ jobs:
jvm: jvm:
docker: docker:
# specify the version you desire here # specify the version you desire here
- image: circleci/clojure:lein-2.9.1 - image: clojure:openjdk-11-lein-2.9.6-bullseye
working_directory: ~/repo working_directory: ~/repo
environment: environment:
LEIN_ROOT: "true" LEIN_ROOT: "true"
@ -30,11 +30,11 @@ jobs:
command: | command: |
wget -nc https://download.clojure.org/install/linux-install-1.10.1.447.sh wget -nc https://download.clojure.org/install/linux-install-1.10.1.447.sh
chmod +x linux-install-1.10.1.447.sh chmod +x linux-install-1.10.1.447.sh
sudo ./linux-install-1.10.1.447.sh ./linux-install-1.10.1.447.sh
- run: - run:
name: Install lsof name: Install lsof
command: | command: |
sudo apt-get install lsof apt-get install lsof
- run: - run:
name: Run JVM tests name: Run JVM tests
command: | command: |
@ -72,7 +72,7 @@ jobs:
key: v1-dependencies-{{ checksum "project.clj" }}-{{ checksum "deps.edn" }} key: v1-dependencies-{{ checksum "project.clj" }}-{{ checksum "deps.edn" }}
linux: linux:
docker: docker:
- image: circleci/clojure:lein-2.9.1 - image: clojure:openjdk-11-lein-2.9.6-bullseye
working_directory: ~/repo working_directory: ~/repo
environment: environment:
LEIN_ROOT: "true" LEIN_ROOT: "true"
@ -96,16 +96,16 @@ jobs:
command: | command: |
wget https://download.clojure.org/install/linux-install-1.10.1.447.sh wget https://download.clojure.org/install/linux-install-1.10.1.447.sh
chmod +x linux-install-1.10.1.447.sh chmod +x linux-install-1.10.1.447.sh
sudo ./linux-install-1.10.1.447.sh ./linux-install-1.10.1.447.sh
- run: - run:
name: Install lsof name: Install lsof
command: | command: |
sudo apt-get install lsof apt-get install lsof
- run: - run:
name: Install native dev tools name: Install native dev tools
command: | command: |
sudo apt-get update apt-get update
sudo apt-get -y install g++ zlib1g-dev apt-get -y install build-essential zlib1g-dev
- run: - run:
name: Download GraalVM name: Download GraalVM
command: | command: |
@ -147,7 +147,7 @@ jobs:
./bb .circleci/script/publish_artifact.clj || true ./bb .circleci/script/publish_artifact.clj || true
linux-static: linux-static:
docker: docker:
- image: circleci/clojure:lein-2.9.1 - image: clojure:openjdk-11-lein-2.9.6-bullseye
working_directory: ~/repo working_directory: ~/repo
environment: environment:
LEIN_ROOT: "true" LEIN_ROOT: "true"
@ -183,17 +183,17 @@ jobs:
command: | command: |
wget https://download.clojure.org/install/linux-install-1.10.1.447.sh wget https://download.clojure.org/install/linux-install-1.10.1.447.sh
chmod +x linux-install-1.10.1.447.sh chmod +x linux-install-1.10.1.447.sh
sudo ./linux-install-1.10.1.447.sh ./linux-install-1.10.1.447.sh
- run: - run:
name: Install lsof name: Install lsof
command: | command: |
sudo apt-get install lsof apt-get install lsof
- run: - run:
name: Install native dev tools name: Install native dev tools
command: | command: |
sudo apt-get update apt-get update
sudo apt-get -y install gcc g++ zlib1g-dev apt-get -y install build-essential zlib1g-dev
sudo -E script/setup-musl script/setup-musl
- run: - run:
name: Download GraalVM name: Download GraalVM
command: | command: |
@ -267,22 +267,22 @@ jobs:
- run: - run:
name: Install Leiningen name: Install Leiningen
command: | command: |
sudo script/install-leiningen script/install-leiningen
- run: - run:
name: Install Clojure name: Install Clojure
command: | command: |
wget https://download.clojure.org/install/linux-install-1.10.1.447.sh wget https://download.clojure.org/install/linux-install-1.10.1.447.sh
chmod +x linux-install-1.10.1.447.sh chmod +x linux-install-1.10.1.447.sh
sudo ./linux-install-1.10.1.447.sh ./linux-install-1.10.1.447.sh
- run: - run:
name: Install lsof name: Install lsof
command: | command: |
sudo apt-get install lsof apt-get install lsof
- run: - run:
name: Install native dev tools name: Install native dev tools
command: | command: |
sudo apt-get update apt-get update
sudo apt-get -y install gcc g++ zlib1g-dev apt-get -y install build-essential zlib1g-dev
- run: - run:
name: Download GraalVM name: Download GraalVM
command: | command: |
@ -357,23 +357,23 @@ jobs:
- run: - run:
name: Install Leiningen name: Install Leiningen
command: | command: |
sudo script/install-leiningen script/install-leiningen
- run: - run:
name: Install Clojure name: Install Clojure
command: | command: |
wget https://download.clojure.org/install/linux-install-1.10.1.447.sh wget https://download.clojure.org/install/linux-install-1.10.1.447.sh
chmod +x linux-install-1.10.1.447.sh chmod +x linux-install-1.10.1.447.sh
sudo ./linux-install-1.10.1.447.sh ./linux-install-1.10.1.447.sh
- run: - run:
name: Install lsof name: Install lsof
command: | command: |
sudo apt-get install lsof apt-get install lsof
- run: - run:
name: Install native dev tools name: Install native dev tools
command: | command: |
sudo apt-get update apt-get update
sudo apt-get -y install gcc g++ zlib1g-dev apt-get -y install build-essential zlib1g-dev
# sudo -E script/setup-musl # script/setup-musl
- run: - run:
name: Download GraalVM name: Download GraalVM
command: | command: |
@ -482,7 +482,7 @@ jobs:
deploy: deploy:
resource_class: large resource_class: large
docker: docker:
- image: circleci/clojure:lein-2.9.1 - image: clojure:openjdk-11-lein-2.9.6-bullseye
working_directory: ~/repo working_directory: ~/repo
environment: environment:
LEIN_ROOT: "true" LEIN_ROOT: "true"