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:
hasheddan 2021-01-13 08:46:01 -06:00
parent e414d4e5c2
commit bc262d6e85
No known key found for this signature in database
GPG Key ID: BD68BC686A14C271
2 changed files with 2 additions and 2 deletions

View File

@ -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/

View File

@ -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}"