From aa4bbd6ec5c1e4feb5a3f8f5ef8f6875d448efd6 Mon Sep 17 00:00:00 2001 From: su || cd Date: Mon, 10 Feb 2025 15:34:20 -0800 Subject: [PATCH 1/2] new makefile options --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f887fc3 --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ + +ifeq ($(UNAME),Darwin) + SHELL := /opt/local/bin/bash + OS_X := true +else ifneq (,$(wildcard /etc/redhat-release)) + RHEL := true +else + OS_DEB := true + SHELL := /usr/bin/env bash +endif + +.PHONY: podping_container +podping_container: + docker build -f docker/Dokcerfile -t podcastindexorg/podcasting20-podping.cloud . \ No newline at end of file From 17d0feecfeb0b29a48583bfc1f886b2bd7590801 Mon Sep 17 00:00:00 2001 From: su || cd Date: Mon, 10 Feb 2025 15:58:09 -0800 Subject: [PATCH 2/2] Add container build Makefil --- Makefile | 14 ++++---------- README.md | 8 ++++++++ docker/Dockerfile | 10 ++++------ 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Makefile b/Makefile index f887fc3..d89bcfe 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,8 @@ +# Created By: suorcd + +SHELL := /usr/bin/env bash -ifeq ($(UNAME),Darwin) - SHELL := /opt/local/bin/bash - OS_X := true -else ifneq (,$(wildcard /etc/redhat-release)) - RHEL := true -else - OS_DEB := true - SHELL := /usr/bin/env bash -endif .PHONY: podping_container podping_container: - docker build -f docker/Dokcerfile -t podcastindexorg/podcasting20-podping.cloud . \ No newline at end of file + docker build -f ./docker/Dockerfile -t podcastindexorg/podcasting20-podping.cloud . diff --git a/README.md b/README.md index 8e73a4b..997ca69 100644 --- a/README.md +++ b/README.md @@ -90,3 +90,11 @@ example of the format for publisher token records. ## The Podping Network Idea ![Framework Overview 1](framework1.png) + +## Build Docker Container Image + + ```bash + git clone https://github.com/Podcastindex-org/podping.cloud.git + cd podping.cloud + make podping_container + ``` \ No newline at end of file diff --git a/docker/Dockerfile b/docker/Dockerfile index c250f60..26a047a 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -3,12 +3,10 @@ FROM rust:latest AS builder USER root -RUN apt-get update && apt-get install -y apt-utils sqlite3 openssl capnproto libzmq3-dev && rm -rf /var/lib/apt/lists/* +RUN apt update && apt install -y apt-utils sqlite3 openssl capnproto libzmq3-dev && rm -rf /var/lib/apt/lists/* + +COPY ./podping/ /opt/podping.cloud/podping -WORKDIR /opt -ARG GIT_REPO=https://github.com/Podcastindex-org/podping.cloud.git -ARG GIT_BRANCH=main -RUN git clone --depth 1 -b ${GIT_BRANCH} ${GIT_REPO} WORKDIR /opt/podping.cloud/podping RUN cargo build --release RUN cp target/release/podping . @@ -19,7 +17,7 @@ FROM debian:bookworm-slim AS runner USER root -RUN apt-get update && apt-get install -y apt-utils sqlite3 openssl capnproto libzmq3-dev libc6 && rm -rf /var/lib/apt/lists/* +RUN apt update && apt install -y sqlite3 openssl && rm -rf /var/lib/apt/lists/* RUN chown -R 1000:1000 /opt RUN mkdir /data && chown -R 1000:1000 /data