From 2cad043212ee233ed6540ee6fed0f87999970101 Mon Sep 17 00:00:00 2001 From: John Rofrano Date: Sun, 26 Feb 2023 11:48:39 -0500 Subject: [PATCH 1/2] Changed base to nyu devops base --- Dockerfile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index fd605d9..824f241 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,8 @@ # Docker image for Python Behavior Driven Development Pipeline -FROM python:3.9-slim +FROM rofrano/nyu-devops-base:sp23 -RUN apt-get update && apt-get install -y \ - curl \ - wget \ - chromium-driver \ - python3-selenium +RUN sudo apt-get update && \ + sudo apt-get install -y chromium-driver python3-selenium WORKDIR /app From 5ffc478ab063331e8188bfc0f246e62af1c312ba Mon Sep 17 00:00:00 2001 From: John Rofrano Date: Sun, 26 Feb 2023 11:48:59 -0500 Subject: [PATCH 2/2] Separated buildx create from use --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index dff884d..591d0f2 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ PLATFORM ?= "linux/amd64,linux/arm64" DOCKER_BUILDKIT = 1 -all: build +all: init build ## help: Lists help on the commands .PHONY: help @@ -32,7 +32,8 @@ clean: ## Removes all dangling build cache init: export DOCKER_BUILDKIT=1 init: ## Creates the buildx instance $(info Initializing Builder...) - docker buildx create --use --name=qemu + -docker buildx create qemu + docker buildx use qemu docker buildx inspect --bootstrap .PHONY: build