mirror of
https://github.com/rosenpass/rosenpass.git
synced 2025-12-12 07:40:30 -08:00
feat: add early wip based podman demonstrator
This commit is contained in:
7
.dockerignore
Normal file
7
.dockerignore
Normal file
@@ -0,0 +1,7 @@
|
||||
examples/
|
||||
target/
|
||||
flake.*
|
||||
.ci
|
||||
.direnv
|
||||
.git
|
||||
.github
|
||||
18
examples/broker-in-podman-container/Dockerfile
Normal file
18
examples/broker-in-podman-container/Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
FROM rust:slim as build
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
build-essential \
|
||||
cmake \
|
||||
pkg-config \
|
||||
libclang-dev \
|
||||
libsodium-dev
|
||||
|
||||
WORKDIR /code
|
||||
COPY . /code
|
||||
|
||||
RUN cargo install --path rosenpass --root / --bins \
|
||||
&& cargo install --path wireguard-broker --root / --bins
|
||||
# RUN apt-get install -y libcap2-bin \
|
||||
# setcap CAP_NET_ADMIN=+eip "$(which rosenpass-wireguard-broker-privileged)"
|
||||
|
||||
CMD rosenpass
|
||||
11
examples/broker-in-podman-container/podman-compose.yml
Normal file
11
examples/broker-in-podman-container/podman-compose.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
version: "3.8"
|
||||
services:
|
||||
rosenpass:
|
||||
build:
|
||||
context: ../../
|
||||
dockerfile: ./examples/broker-in-podman-container/Dockerfile
|
||||
env:
|
||||
RUST_LOG: trace
|
||||
volumes:
|
||||
./peer-a:/config
|
||||
|
||||
Reference in New Issue
Block a user