Docker file builds and exwayz installs when done manually. to be verified
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1 +1 @@
|
||||
liscences/**
|
||||
licenses/**
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
## Building with docker secrets
|
||||
TODO: Figure out a safer way to include secrets in the docker file
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
FROM ros:jazzy-ros-core
|
||||
|
||||
# Copy and install the package
|
||||
COPY ../pkgs/exwayz_navigation-ros2_jazzy-1.2.2-linux-u24.04-amd64.deb /tmp/
|
||||
RUN apt-get update && apt-get install -y /tmp/exwayz_navigation-ros2_jazzy-1.2.2-linux-u24.04-amd64.deb && rm -rf /var/lib/apt/lists/*
|
||||
29
exwayz_test.dockerfile
Normal file
29
exwayz_test.dockerfile
Normal file
@@ -0,0 +1,29 @@
|
||||
# syntax=docker/dockerfile:1.3
|
||||
FROM ros:jazzy-ros-core
|
||||
|
||||
# Build argument provided by buildx/BuildKit: `TARGETARCH` (amd64, arm64, etc.).
|
||||
# Default to amd64 when not provided.
|
||||
ARG TARGETARCH=amd64
|
||||
|
||||
# Copy both architecture-specific packages into the image and choose the right one at build time
|
||||
COPY pkgs/exwayz_3d_mapping-1.2.2-linux-u24.04-amd64.deb /tmp/exwayz_amd64.deb
|
||||
COPY pkgs/exwayz_3d_mapping-1.2.2-linux-u24.04-aarch64.deb /tmp/exwayz_aarch64.deb
|
||||
|
||||
RUN --mount=type=secret,id=exwayz_license set -eux; \
|
||||
if [ "${TARGETARCH}" = "aarch64" ]; then \
|
||||
pkg=/tmp/exwayz_aarch64.deb; \
|
||||
else \
|
||||
pkg=/tmp/exwayz_amd64.deb; \
|
||||
fi; \
|
||||
apt-get update; \
|
||||
apt-get install -fy "$pkg"; \
|
||||
if [ -s /run/secrets/exwayz_license ]; then \
|
||||
exwayz_license --query "$(cat /run/secrets/exwayz_license)" || true; \
|
||||
fi; \
|
||||
rm -f /tmp/exwayz_amd64.deb /tmp/exwayz_aarch64.deb; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# TODO verify license was applied successfully
|
||||
|
||||
# Set entrypoint
|
||||
ENTRYPOINT ["/ros_entrypoint.sh"]
|
||||
@@ -1 +0,0 @@
|
||||
Add your liscence files for Exways in this folder under the name 'exways_liscence'
|
||||
Reference in New Issue
Block a user