Skip to content

Commit 8b905b4

Browse files
committed
Adjust make procedures and py38 docker
1 parent 75b162c commit 8b905b4

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

Dockerfile-py38

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ RUN apt-get -qq update && \
99
RUN pip install --upgrade pip && \
1010
pip install --upgrade wheel setuptools twine pipenv && \
1111
pipenv install --dev --system --deploy
12+
13+
RUN apt-get clean autoclean && \
14+
apt-get autoremove --yes && \
15+
rm -rf /var/lib/{apt,dpkg,cache,log}/

Makefile

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,34 @@
33

44
.PHONY: help
55

6-
REPO_NAME := mbeacom/cloudendure-py
6+
REPO_NAME := mbeacom/cloudendure-python
77
SHA1 := $$(git log -1 --pretty=%h)
88
CURRENT_BRANCH := $$(git symbolic-ref -q --short HEAD)
99

1010
info: ## Show information about the current git state.
1111
@echo "Github Project: https://github.com/${REPO_NAME}\nCurrent Branch: ${CURRENT_BRANCH}\nSHA1: ${SHA1}\n"
1212

13+
build: ## Build the Gitcoin Web image.
14+
@docker build \
15+
--stream \
16+
--pull \
17+
--build-arg BUILD_DATETIME=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
18+
--build-arg "SHA1=${SHA1}" \
19+
${VERSION:+--build-arg "VERSION=$VERSION"} \
20+
-t "${GIT_TAG}" .
21+
@docker tag "${GIT_TAG}" "${LATEST_TAG}"
22+
23+
login: ## Login to Docker Hub.
24+
@docker log -u "${DOCKER_USER}" -p "${DOCKER_PASS}"
25+
26+
push: ## Push the Docker image to the Docker Hub repository.
27+
@docker push "${REPO_NAME}"
28+
29+
docker: ## Build and publish Docker images.
30+
@docker build -t cloudendure .
31+
@docker tag cloudendure mbeacom/cloudendure-python
32+
@docker push
33+
1334
update_prereqs: ## Update the local development pre-requisite packages.
1435
@pip install --upgrade pipenv wheel setuptools pip
1536

0 commit comments

Comments
 (0)