mirror of
https://github.com/AltraMayor/f3.git
synced 2025-08-05 11:35:56 -04:00
Docker updates
- Updates Docker base image from Ubuntu 18.04 (now EOL) to Ubuntu 22.04 (current LTS release) - Adds Makefile target to build Docker image. Especially useful since recommended Docker image `peron/f3` is out of date (as of May 2023) - Updates README self-built Docker image usage instructions
This commit is contained in:
parent
53b682aba8
commit
09ffcd6d1a
@ -1,10 +1,10 @@
|
|||||||
FROM ubuntu:18.04
|
FROM ubuntu:22.04
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
gcc \
|
gcc \
|
||||||
less \
|
less \
|
||||||
libparted0-dev \
|
libparted-dev \
|
||||||
libudev1 \
|
libudev1 \
|
||||||
libudev-dev \
|
libudev-dev \
|
||||||
make \
|
make \
|
||||||
|
3
Makefile
3
Makefile
@ -20,6 +20,9 @@ endif
|
|||||||
all: $(TARGETS)
|
all: $(TARGETS)
|
||||||
extra: $(EXTRA_TARGETS)
|
extra: $(EXTRA_TARGETS)
|
||||||
|
|
||||||
|
docker:
|
||||||
|
docker build -f Dockerfile -t f3:latest .
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
|
$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
|
||||||
$(INSTALL) -m755 $(TARGETS) $(DESTDIR)$(PREFIX)/bin
|
$(INSTALL) -m755 $(TARGETS) $(DESTDIR)$(PREFIX)/bin
|
||||||
|
12
README.rst
12
README.rst
@ -202,9 +202,21 @@ For example, to probe a drive mounted at /dev/sdX::
|
|||||||
Optionally, you can also build your own container *if* you don't want to use the
|
Optionally, you can also build your own container *if* you don't want to use the
|
||||||
pre-built image. From this directory, run::
|
pre-built image. From this directory, run::
|
||||||
|
|
||||||
|
make docker
|
||||||
|
|
||||||
|
or::
|
||||||
|
|
||||||
docker build -t f3:latest .
|
docker build -t f3:latest .
|
||||||
|
|
||||||
|
|
||||||
|
To run f3 commands using your newly built Docker image::
|
||||||
|
|
||||||
docker run -it --rm --device <device> f3:latest <f3-command> [<f3-options>] <device>
|
docker run -it --rm --device <device> f3:latest <f3-command> [<f3-options>] <device>
|
||||||
|
|
||||||
|
docker run -it --rm --device /dev/sdX f3:latest f3probe --destructive --time-ops /dev/sdX
|
||||||
|
docker run -it --rm -v /path/to/mounted/device:/mnt/ f3:latest f3write /mnt/
|
||||||
|
docker run -it --rm -v /path/to/mounted/device:/mnt/ f3:latest f3read /mnt/
|
||||||
|
|
||||||
Drive Permissions / Passthrough
|
Drive Permissions / Passthrough
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user