Skip to content

Commit

Permalink
Improve dev environment
Browse files Browse the repository at this point in the history
Signed-off-by: Charles Short <[email protected]>
  • Loading branch information
Charles Short committed Mar 27, 2024
1 parent 1d6b0f9 commit 6246a3e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,4 @@ workspace
.vagrant

*.bak
data
3 changes: 1 addition & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,13 @@ RUN apt-get update && \
libgirepository1.0-dev \
parted \
fdisk \
debos \
rsync \
dosfstools \
gir1.2-ostree-1.0 \
git && \
rm -rf /var/lib/apt/lists/*

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

Check failure on line 33 in docker/Dockerfile

View workflow job for this annotation

GitHub Actions / docker

DL3013 warning: Pin versions in pip. Instead of `pip install <package>` use `pip install <package>==<version>` or `pip install --requirement <requirements file>`

Check failure on line 33 in docker/Dockerfile

View workflow job for this annotation

GitHub Actions / docker

DL3042 warning: Avoid use of cache directory with pip. Use `pip install --no-cache-dir <package>`

# Needed for uefi-ostree
RUN mkdir -p /var/www/html

Check failure on line 36 in docker/Dockerfile

View workflow job for this annotation

GitHub Actions / docker

DL3059 info: Multiple consecutive `RUN` instructions. Consider consolidation.
Expand Down
12 changes: 9 additions & 3 deletions tools/run-container.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/bin/bash

sudo podman run \
--privileged \
-v $(pwd):/work \
docker run \
-i -t --privileged \
-v $(pwd):/usr/src \
-v $(pwd)/data:/var/tmp/ruck \
-v /dev:/dev \
-v /run:/run \
-v /sys:/sys \
-v /var/tmp:/var/tmp \
-v $(pwd):/usr/src \
-i -t ruck \

0 comments on commit 6246a3e

Please sign in to comment.