mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
Specify BASEIMAGE platform for conformance image
Updates conformance image Dockerfile to specify platform for BASEIMAGE and sets correct ARCH in Makefile. Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
This commit is contained in:
parent
e414d4e5c2
commit
bc262d6e85
@ -12,7 +12,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
FROM BASEIMAGE
|
||||
FROM --platform=linux/ARCH BASEIMAGE
|
||||
|
||||
COPY ginkgo /usr/local/bin/
|
||||
COPY e2e.test /usr/local/bin/
|
||||
|
@ -54,7 +54,7 @@ endif
|
||||
chmod a+rx ${TEMP_DIR}/e2e.test
|
||||
chmod a+rx ${TEMP_DIR}/gorunner
|
||||
|
||||
cd ${TEMP_DIR} && sed -i.back "s|BASEIMAGE|${BASEIMAGE}|g" Dockerfile
|
||||
cd ${TEMP_DIR} && sed -i.back "s|ARCH|${ARCH}|g; s|BASEIMAGE|${BASEIMAGE}|g" Dockerfile
|
||||
|
||||
docker build --pull -t ${REGISTRY}/conformance-${ARCH}:${VERSION} ${TEMP_DIR}
|
||||
rm -rf "${TEMP_DIR}"
|
||||
|
Loading…
Reference in New Issue
Block a user