mirror of
https://github.com/threefoldtech/mycelium.git
synced 2026-03-29 07:39:51 +00:00
* Dockerfile
- Added
* Dockerfile
- Added build depedencies and upgrade system
* Create docker.yml
Signed-off-by: Tristan B. Velloza Kildaire <deavmi@redxen.eu>
* Dockerfile
- build the daemon and set entry point for running
* Dockerfile
- FIxed ptha
* d
* compose
- added initial docker compose file
* test
* Dockerfile
- Removed
* Added env file
Added more commands
* try copy now
* disable for now
* d
* d
* d
* d
* d
* d
* d
* DOckerfile
- try this
* Dockerfile
- Copy needs absolute path,
* d
* d
* d
* ss
* ockerfile
- Use seperate stage
* compose
- Add access to driver control file for making `tun` files (in whatever ns we are in)
- Added capability to allow just that
* Dockerfile
- Disable stage for nwo
* Revert "Dockerfile"
This reverts commit 2bb4ac697f.
* Dockerfile
- Cleaned up
* Added logging level selection
* Compose
- More can now be set
* Specify key file
* data dir
* d
* Compose
- Fixed
* d
* d
* d
* d
* j
* df
* d
* d
* d
* USe this rather
* d
* d
* Compose
- Cleaned up
* d
* d
* d
* d
* sd
* d
* d
* d
* j
* d
* finished
* clean edup
* d
* d
* okay that wont' work
* Dockerfile
- Use `--release` to remove debufg symvols
* Dockerfile
- Fixed path due to relese mode
* g
* i
* Log silenelty
---------
Signed-off-by: Tristan B. Velloza Kildaire <deavmi@redxen.eu>
35 lines
713 B
Docker
35 lines
713 B
Docker
FROM debian:latest AS build
|
|
|
|
# TODO: Add nonnteractive flag for apt
|
|
|
|
# Upgrade system
|
|
RUN apt update
|
|
RUN apt upgrade -y
|
|
|
|
# Install build dependencies
|
|
RUN apt install rustc -y
|
|
|
|
# Copy across data
|
|
RUN mkdir /src
|
|
COPY . /src
|
|
WORKDIR /src
|
|
|
|
# target: myceliumd - the routing daemon
|
|
FROM build AS daemonBuild
|
|
WORKDIR myceliumd/
|
|
RUN cargo build --release
|
|
RUN mv target/release/mycelium /bin/mycelium
|
|
|
|
# TODO: Add copying across of other tools like cli management etc.
|
|
# and probably build them seperately
|
|
|
|
# Clean base image to run fro
|
|
FROM debian:latest AS base
|
|
COPY --from=daemonBuild /bin/mycelium /bin/mycelium
|
|
|
|
# Entrypoint
|
|
ENTRYPOINT ["/bin/mycelium"]
|
|
|
|
# TODO: Add health-check command
|
|
# HEALTHCHECK /bin/mycelium
|