File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed
Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -9,3 +9,7 @@ RUN apt-get -qq update && \
99RUN 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}/
Original file line number Diff line number Diff line change 33
44.PHONY : help
55
6- REPO_NAME := mbeacom/cloudendure-py
6+ REPO_NAME := mbeacom/cloudendure-python
77SHA1 := $$(git log -1 --pretty=%h )
88CURRENT_BRANCH := $$(git symbolic-ref -q --short HEAD )
99
1010info : # # 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+
1334update_prereqs : # # Update the local development pre-requisite packages.
1435 @pip install --upgrade pipenv wheel setuptools pip
1536
You can’t perform that action at this time.
0 commit comments