Skip to content

Makefile #76

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Created By: suorcd

SHELL := /usr/bin/env bash


.PHONY: podping_container
podping_container:
docker build -f ./docker/Dockerfile -t podcastindexorg/podcasting20-podping.cloud .
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
10 changes: 4 additions & 6 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand All @@ -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
Expand Down