Skip to content

Commit

Permalink
Merge pull request #51 from michaelsevilla/master
Browse files Browse the repository at this point in the history
docker: add Lua to the container and docs

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
  • Loading branch information
dotnwat committed Feb 24, 2016
2 parents 224f0f5 + b3d474a commit 35ec76a
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 13 deletions.
47 changes: 47 additions & 0 deletions doc/docker.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
GassyFS Docker Image
====================

This image has all the packages and environmental settings for building and running GassyFS. It also sets up an SSH daemon in the container that listens on the SSHD_PORT environment variable (by default, port 22). Right now, we run with the `--privileged` flag because the container doesn't export the fuse device properly. If anyone knows how to do this, without passing `--privileged`, let us know.

We've uploaded an image on Dockerhub [here](https://hub.docker.com/r/michaelsevilla/gassyfs). The commands below pull from this image.

Quickstart
==========

Start the container with networking/device privileges and ssh keys:

```bash
docker run \
--name gassyfs \
-d \
--net=host \
-e SSHD_PORT=2222 \
-e AUTHORIZED_KEYS="`cat ~/.ssh/id_rsa.pub`" \
--privileged \
-v <PATH-TO-GASSYFS-SRC>/:/gassyfs \
michaelsevilla/gassyfs
```

Build GassyFS:

```bash
cd /gassyfs
ci/build.sh
```

Run the POSIX tests:

```bash
cd /gassyfs
ci/test.sh
```

Build
=====

From outside the container:

```bash
cd gassyfs/docker
docker build -t <MYNAME>/gassyfs
```
6 changes: 6 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@ RUN echo "===> Install the basics..." && \
libfuse-dev \
build-essential \
libacl1-dev \
lua5.2 \
liblua5.2-dev \
pkg-config && \
DEBIAN_FRONTEND=noninteractive apt-get install -yq \
--reinstall linux-image-4.2.0-25-generic

RUN echo "===> Cleanup apt-get..." && \
DEBIAN_FRONTEND=noninteractive apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /debian

RUN echo "====> Make some users" && \
groupadd fuse && \
usermod -a -G fuse root
Expand Down
13 changes: 0 additions & 13 deletions docker/README.md

This file was deleted.

0 comments on commit 35ec76a

Please sign in to comment.