Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions README.container
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@ To create a dev environment for ruck
In order to use ruck in a container you be using docker. The host should be
running a Debian based Linux distrobution.

1. Build the dev container from the main directory, run:
1. If assemble arm64 image in amd64 container, install qemu-user-static

sudo apt install qemu-user-static -y

2. Build the dev container from the main directory, run:

tools/build-container.sh

2. To run the dev container from the main directory, run:
3. To run the dev container from the main directory, run:

tools/run-container.sh

Expand Down
4 changes: 3 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:testing
FROM debian:bookworm

# Don't pin the packages versions to exact values
# hadolint ignore=DL3008
Expand Down Expand Up @@ -33,6 +33,8 @@ RUN apt-get update && \
git && \
rm -rf /var/lib/apt/lists/*

RUN if [ "$(uname -m)" = "x86_64" ]; then apt update && apt install qemu-user-static arch-test -y; fi

COPY files/pip.conf /etc/pip.conf
RUN pip install omegaconf

Expand Down
4 changes: 0 additions & 4 deletions tools/build-container.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#!/bin/bash

# qemu-binfmt with non-native chroot
sudo apt update
sudo apt install qemu-user-static -y

docker build -t ruck docker
1 change: 0 additions & 1 deletion tools/run-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ docker run \
-v /run:/run \
-v /sys:/sys \
-v /var/tmp:/var/tmp \
-v $(pwd):/usr/src \
-i -t ruck \