Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
clubstatus
maccollect
Commits
62a3cb29
Commit
62a3cb29
authored
May 16, 2022
by
clonejo
Browse files
Containerfile for running
parent
577c2943
Changes
2
Hide whitespace changes
Inline
Side-by-side
Containerfile
0 → 100644
View file @
62a3cb29
FROM docker.io/debian:bullseye-slim
RUN apt-get update && \
apt-get install -y curl build-essential pkg-config libssl-dev libsqlite3-dev libsodium-dev && \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable
ENV PATH=$PATH:/root/.cargo/bin
WORKDIR /tmp
ADD Cargo.toml Cargo.lock /tmp/
ADD src /tmp/src
ADD migrations /tmp/migrations
RUN cargo build --release
FROM docker.io/debian:bullseye-slim
RUN apt-get update && \
apt-get install -y curl sqlite3 nmap iproute2
COPY --from=0 /tmp/target/release/maccollect /usr/local/bin/maccollect
ENV CONFIG="/etc/maccollect/config.yaml"
WorkDir /etc/maccollect
CMD ["/usr/local/bin/maccollect"]
README.md
0 → 100644
View file @
62a3cb29
# Debian packets
gcc
libssl-dev
nmap
curl
sqlite3
# Run with Podman/Docker
```
podman build -f Containerfile -t maccollect
cargo run maccollect \
--volume=config.yaml:/etc/maccollect/config.yaml:ro \
--volume=mapping.sqlite:/var/lib/maccollect/mapping.sqlite:rw \
--network=host \
--cap-add=CAP_NET_RAWIO
```
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment