Skip to content

Commit

Permalink
Merge pull request #124 from peron/master
Browse files Browse the repository at this point in the history
Dockerized
  • Loading branch information
AltraMayor committed Sep 26, 2019
2 parents 9c343a1 + 0484502 commit 87ccddc
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM ubuntu:18.04

RUN apt-get update && \
apt-get install -y --no-install-recommends \
gcc \
less \
libparted0-dev \
libudev1 \
libudev-dev \
make \
udev

COPY . /f3

WORKDIR /f3

RUN make install

RUN make install-extra

CMD less README.rst
28 changes: 28 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,34 @@ Use f3probe's output to determine the parameters for i3fix::

# ./f3fix --last-sec=16477878 /dev/sdb

Docker
======

Instead of building and installing the tools, and their depending packages, in your local OS,
the tools can be run from a Docker container.

The included Dockerfile installs all tools, both the base tools, and the extras.

Build
-----

To create a Docker image, run::

$ docker build -t f3:latest .

Running
-------

Since we're dealing with attached devices, Docker needs to run in privileged mode::

$ docker run -it --rm --privileged -v <device>:<device> f3:latest <f3-command> [<f3-options>] <device>

The commands, and their parameters, are as otherwise described in this document.
Since the commands are installed, they should not be prefixed with the dot-slash notation.

A pre-built `image <https://cloud.docker.com/repository/docker/peron/f3>`__ is available over at Docker Hub,
ready to be used.

Installation
============

Expand Down

0 comments on commit 87ccddc

Please sign in to comment.