Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Biotracker 4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bioroboticslab
biotracker
Biotracker 4
Commits
af60f651
Commit
af60f651
authored
8 months ago
by
Andi Gerken
Browse files
Options
Downloads
Patches
Plain Diff
Added Dockerfile and readme docker
parent
c7521cde
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+48
-0
48 additions, 0 deletions
Dockerfile
readme_docker.md
+7
-0
7 additions, 0 deletions
readme_docker.md
with
55 additions
and
0 deletions
Dockerfile
0 → 100644
+
48
−
0
View file @
af60f651
# Use a Rust official image with necessary tools
FROM
rust:latest
# Install dependencies for Rust project
RUN
apt-get update
RUN
apt-get
install
-y
\
libprotobuf-dev protobuf-compiler
\
libopencv-dev pkg-config
\
clang libclang-dev llvm-dev
\
libatk1.0-dev
\
libgtk-3-dev libgdk-pixbuf2.0-dev
\
libcanberra-gtk-module libcanberra-gtk3-module
\
dbus dconf-service dbus-x11
\
bash
# Update package lists and install Python 3 and essential tools
RUN
apt-get
install
-y
\
python3
\
python3-pip
\
python3-venv
\
build-essential
RUN
apt-get clean
RUN
mkdir
-p
/tmp/xdg-runtime
&&
chmod
700 /tmp/xdg-runtime
# Set environment variables
ENV
PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig
ENV
LIBCLANG_PATH=/usr/lib/llvm-14/lib
ENV
XDG_RUNTIME_DIR=/tmp/xdg-runtime
# Create a directory for the application
WORKDIR
/usr/src/app
# Copy the source code into the container
COPY
. .
# Build the project
RUN
cargo build
--release
RUN
rm
-r
distribution/sleap/biotracker-venv
RUN
bash distribution/sleap/setup.sh
# Define the default command
CMD
["cargo", "run", "--release", "--", "--config", "distribution/sleap/sleap_config.json"]
This diff is collapsed.
Click to expand it.
readme_docker.md
0 → 100644
+
7
−
0
View file @
af60f651
docker build -t biotracker_4 .
# for wayland
sudo apt install x11-xserver-utils
xhost +local:
docker run --rm -it -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v /home/andi/Downloads:/container/mounted -v /run/dbus/system_bus_socket:/run/dbus/system_bus_socket biotracker_4
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment