SSH_PUBLIC_KEY := $(shell cat ~/.ssh/id_rsa.pub) build: docker build \ --build-arg "HTTP_PROXY=$(HTTP_PROXY)" \ --build-arg "HTTPS_PROXY=$(HTTP_PROXY)" \ --build-arg "http_proxy=$(http_proxy)" \ --build-arg "https_proxy=$(https_proxy)" \ -t fdroid-repository \ ./ run: docker run -it --rm \ -p 2222:2222 \ -p 8080:2015 \ -v "$(PWD)/data/repo:/fdroid/repo" \ -v "$(PWD)/data/metadata:/fdroid/metadata" \ -v "$(PWD)/data/keystore:/fdroid/keystore" \ -v "/etc/localtime:/etc/localtime:ro" \ -e "FDROID_REPO_HOST=0.0.0.0" \ -e "FDROID_REPO_NAME=My local repo" \ -e "FDROID_REPO_DESCRIPTION=My repo description" \ -e "FDROID_KEYSTORE_PASS=mykeystorepass" \ -e "FDROID_KEYSTORE_KEYPASS=mykeystorekeypass" \ -e "FDROID_KEYSTORE_KEY_ALIAS=fdroidkey" \ -e "SSH_PUBLIC_KEY=$(SSH_PUBLIC_KEY)" \ -e "FDROID_KEYSTORE_DNAME=CN=cadoles.com, OU=ID, O=Cadoles, L=Dijon, S=France, C=FR" \ fdroid-repository:latest \ $(DOCKER_CMD) push: docker image tag fdroid-repository:latest bornholm/fdroid-repository:latest docker push bornholm/fdroid-repository:latest clean: docker rmi fdroid-repository .PHONY: build