50
50
# • sles15 - OpenSUSE Leap 15.0
51
51
# • alpine - Alpine Linux 3.18
52
52
#
53
- # When adding new environments, always pull from a fully-qualified image ID:
53
+ # When adding new environments, prefer an unqualified image ID with a version :
54
54
# • DO NOT: "ubuntu"
55
55
# • DO NOT: "ubuntu:latest"
56
- # • DO NOT: "ubuntu:22.10"
57
- # • DO: "artifactory.corp.mongodb.com/dockerhub/library/ubuntu:22.10"
56
+ # • DO NOT: "docker.io/library/ubuntu:22.10"
57
+ # • DO: "ubuntu:22.10"
58
+ # Use of an unqualified image ID may enable separate registry in CI and local development.
58
59
# ###
59
60
60
61
VERSION --use-cache-command 0.6
61
- FROM artifactory.corp.mongodb.com/dockerhub/library/ alpine:3.16
62
+ FROM alpine:3.16
62
63
WORKDIR /s
63
64
64
65
init :
@@ -125,24 +126,24 @@ ALPINE_SETUP:
125
126
126
127
env.c6 :
127
128
# A CentOS 6 environment.
128
- FROM +init --base = artifactory.corp.mongodb.com/dockerhub/library/ centos:6
129
+ FROM +init --base = centos:6
129
130
DO +CENTOS6_SETUP
130
131
131
132
env.c7 :
132
133
# A CentOS 7 environment.
133
- FROM +init --base = artifactory.corp.mongodb.com/dockerhub/library/ centos:7
134
+ FROM +init --base = centos:7
134
135
DO +REDHAT_SETUP
135
136
136
137
env.rl8 :
137
138
# CentOS 8 is cancelled. Use RockyLinux 8 for our RHEL 8 environment.
138
- FROM +init --base = artifactory.corp.mongodb.com/dockerhub/library/ rockylinux:8
139
+ FROM +init --base = rockylinux:8
139
140
DO +REDHAT_SETUP
140
141
141
142
# Utility command for Ubuntu environments
142
143
ENV_UBUNTU :
143
144
COMMAND
144
145
ARG --required version
145
- FROM +init --base = artifactory.corp.mongodb.com/dockerhub/library/ ubuntu:$version
146
+ FROM +init --base = ubuntu:$version
146
147
DO +DEBIAN_SETUP
147
148
148
149
env.u14 :
@@ -167,19 +168,19 @@ env.u22:
167
168
168
169
env.amzn1 :
169
170
# An Amazon "1" environment. (AmazonLinux 2018)
170
- FROM +init --base = artifactory.corp.mongodb.com/dockerhub/library/ amazonlinux:2018.03
171
+ FROM +init --base = amazonlinux:2018.03
171
172
DO +AMZ_SETUP
172
173
173
174
env.amzn2 :
174
175
# An AmazonLinux 2 environment
175
- FROM +init --base = artifactory.corp.mongodb.com/dockerhub/library/ amazonlinux:2
176
+ FROM +init --base = amazonlinux:2
176
177
DO +AMZ_SETUP
177
178
178
179
# Utility command for Debian setup
179
180
ENV_DEBIAN :
180
181
COMMAND
181
182
ARG --required version
182
- FROM +init --base = artifactory.corp.mongodb.com/dockerhub/library/ debian:$version
183
+ FROM +init --base = debian:$version
183
184
IF [ $version = "9.2" ]
184
185
# Update source list for archived Debian stretch packages.
185
186
# Refer: https://unix.stackexchange.com/a/743865/260858
@@ -208,11 +209,11 @@ env.deb12:
208
209
209
210
env.sles15 :
210
211
# An OpenSUSE Leap 15.0 environment.
211
- FROM +init --base = artifactory.corp.mongodb.com/dockerhub/ opensuse/leap:15.0
212
+ FROM +init --base = opensuse/leap:15.0
212
213
DO +SLES_SETUP
213
214
214
215
env.alpine :
215
- FROM +init --base = artifactory.corp.mongodb.com/dockerhub/library/ alpine:3.18
216
+ FROM +init --base = alpine:3.18
216
217
DO +ALPINE_SETUP
217
218
218
219
# Utility: Warm-up obtaining CMake and Ninja for the build. This is usually
@@ -259,7 +260,7 @@ BUILD_EXAMPLE_STATE_MACHINE:
259
260
RUN cd /s && /s/example-state-machine
260
261
261
262
rpm-build :
262
- FROM +init --base artifactory.corp.mongodb.com/dockerhub/ fedora:38
263
+ FROM +init --base fedora:38
263
264
GIT CLONE https://src.fedoraproject.org/rpms/libmongocrypt.git /R
264
265
# Install the packages listed by "BuildRequires" and rpm-build:
265
266
RUN __install $(awk '/^BuildRequires:/ { print $2 }' /R/libmongocrypt.spec) \
@@ -275,7 +276,7 @@ rpm-build:
275
276
276
277
rpm-install-runtime :
277
278
# Install the runtime RPM
278
- FROM +init --base artifactory.corp.mongodb.com/dockerhub/ fedora:38
279
+ FROM +init --base fedora:38
279
280
COPY +rpm-build/RPMS /tmp/libmongocrypt-rpm/
280
281
RUN dnf makecache
281
282
RUN __install $(find /tmp/libmongocrypt-rpm/ -name 'libmongocrypt-1.*.rpm' )
@@ -325,7 +326,7 @@ deb-build:
325
326
326
327
deb-install-runtime :
327
328
# Install the runtime deb package
328
- FROM +init --base = artifactory.corp.mongodb.com/dockerhub/library/ debian:unstable
329
+ FROM +init --base = debian:unstable
329
330
COPY +deb-build/debs/libmongocrypt0*.deb /tmp/lmc.deb
330
331
RUN __install /tmp/lmc.deb
331
332
@@ -354,7 +355,7 @@ packaging-full-test:
354
355
BUILD +rpm-runtime-test
355
356
356
357
check-format :
357
- FROM +init --base = artifactory.corp.mongodb.com/dockerhub/ python:3.11.2-slim-buster
358
+ FROM +init --base = python:3.11.2-slim-buster
358
359
RUN __install build-essential # To install `make` to install clang-format.
359
360
RUN pip install pipx
360
361
COPY etc/format* /X/etc/
0 commit comments