fdroid-repository/Makefile

39 lines
1.1 KiB
Makefile
Raw Normal View History

2018-11-10 11:34:16 +01:00
SSH_PUBLIC_KEY := $(shell cat ~/.ssh/id_rsa.pub)
2018-11-09 09:29:18 +01:00
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 \
2018-11-10 11:34:16 +01:00
-p 2222:2222 \
2021-07-12 17:23:55 +02:00
-p 8080:80 \
-p 8443:443 \
2018-11-09 09:29:18 +01:00
-v "$(PWD)/data/repo:/fdroid/repo" \
-v "$(PWD)/data/metadata:/fdroid/metadata" \
-v "$(PWD)/data/keystore:/fdroid/keystore" \
2021-07-12 17:23:55 +02:00
-e "FDROID_REPO_HOST=:80" \
2018-11-09 09:29:18 +01:00
-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" \
2021-07-12 17:23:55 +02:00
-e "FDROID_REPO_EMAIL=contact@cadoles.com" \
2018-11-10 11:34:16 +01:00
-e "SSH_PUBLIC_KEY=$(SSH_PUBLIC_KEY)" \
2018-11-09 09:29:18 +01:00
-e "FDROID_KEYSTORE_DNAME=CN=cadoles.com, OU=ID, O=Cadoles, L=Dijon, S=France, C=FR" \
fdroid-repository:latest \
$(DOCKER_CMD)
push:
2021-07-12 17:23:55 +02:00
docker image tag fdroid-repository:latest cadoles/fdroid-repository:latest
docker push cadoles/fdroid-repository:latest
2018-11-09 09:29:18 +01:00
clean:
docker rmi fdroid-repository
.PHONY: build