Skip to content

Commit 6b73e45

Browse files
committed
Add dockcross_assemble_command env vars
1 parent b0bba96 commit 6b73e45

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

CHANGES.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changes
22

3+
## 2.1.4
4+
5+
- Add `dockcross_assemble_command` environment variable to inject a shell command into the Docker container during its build assembly.
6+
- bugfix: Update apt and yum while building dockcross container
7+
- Batch all opam pin operations. Fixes <https://gitlab.com/dkml/distributions/dkml/-/issues/29>
8+
9+
## 2.1.3
10+
11+
- Upgrade `actions/cache` and `actions/checkout` from v3 to v4
12+
313
## 2.1.2
414

515
- Use a fixed commit of [ocaml/opam-repository.git](https://github.com/ocaml/opam-repository.git) by default.

src/scripts/setup-dkml.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,11 @@ if [ "${in_docker:-}" = "true" ] && [ -n "${dockcross_image:-}" ]; then
6262
install -d .ci/sd4/docker-image
6363
# Since GitLab CI limits environment variables to 255 characters, if you need to exceed that there are five (5)
6464
# variations of `dockcross_packages_apt` and `dockcross_packages_yum` to spread the packages over.
65-
printf "FROM %s\nENV DEFAULT_DOCKCROSS_IMAGE %sdkml-workflows/dockcross:latest\nRUN if command -v apt-get; then apt-get update -y && apt-get install -y rsync %s %s %s %s %s && rm -rf /var/lib/apt/lists/*; fi\nRUN if command -v yum; then yum update -y && yum install -y rsync %s %s %s %s %s && yum clean all && rm -rf /var/cache/yum; fi" \
65+
printf "FROM %s\nENV DEFAULT_DOCKCROSS_IMAGE %sdkml-workflows/dockcross:latest\nRUN if command -v apt-get; then apt-get update -y && apt-get install -y rsync %s %s %s %s %s && rm -rf /var/lib/apt/lists/*; fi\nRUN if command -v yum; then yum update -y && yum install -y rsync %s %s %s %s %s && yum clean all && rm -rf /var/cache/yum; fi; %s" \
6666
"${dockcross_image:-}" "${docker_fqin_preusername}" \
6767
"${dockcross_packages_apt:-}" "${dockcross_packages_apt2:-}" "${dockcross_packages_apt3:-}" "${dockcross_packages_apt4:-}" "${dockcross_packages_apt5:-}" \
6868
"${dockcross_packages_yum:-}" "${dockcross_packages_yum2:-}" "${dockcross_packages_yum3:-}" "${dockcross_packages_yum4:-}" "${dockcross_packages_yum5:-}" \
69+
"${dockcross_assemble_command:-true}" \
6970
>.ci/sd4/docker-image/Dockerfile
7071
docker build --quiet --tag "${docker_fqin_preusername}dkml-workflows/dockcross:latest" .ci/sd4/docker-image
7172

0 commit comments

Comments
 (0)