Skip to content
Permalink
Browse files

Add some scripts to aid in development with podman

This commit creates a devel folder with two scripts that are
intended to aid repoSpanner developers.

Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
  • Loading branch information
bowlofeggs authored and mergify committed Nov 1, 2019
1 parent 7bff127 commit fa45a5614b64b76f8963e0384830aba08df34173
Showing with 25 additions and 0 deletions.
  1. +7 −0 devel/CONTRIBUTE.md
  2. +7 −0 devel/Dockerfile-build
  3. +6 −0 devel/build.sh
  4. +5 −0 devel/test.sh
@@ -32,6 +32,13 @@ To run the full test suite, run from the main directory:

$ go test ./...

### The devel folder

The [devel](devel/) folder contains some scripts that you can use to aid in development of
repoSpanner. The `build.sh` script uses podman to build a container that can be used to run the
test suite. `test.sh` is used to run the tests in the container that results from running
`build.sh`.

## Contributions

Contributions are most welcome. To send a patch, send a pull request to the project on github.
@@ -0,0 +1,7 @@
FROM registry.fedoraproject.org/fedora:31
LABEL maintainer="Randy Barlow <bowlofeggs@fedoraproject.org>"

RUN dnf install -y git-core golang-bin
RUN cd /repospanner && ./build.sh

CMD ["bash"]
@@ -0,0 +1,6 @@
#! /usr/bin/bash

SRC_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && cd .. && pwd)"

podman build --pull -t repospanner:dev -v $SRC_DIR:/repospanner:z --force-rm=true \
-f devel/Dockerfile-build
@@ -0,0 +1,5 @@
#! /usr/bin/bash

SRC_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && cd .. && pwd)"

podman run --rm -it -v $SRC_DIR:/repospanner:z repospanner:dev bash -c "cd /repospanner && ./build.sh && go test ./... -failfast -timeout 20m"

0 comments on commit fa45a56

Please sign in to comment.
You can’t perform that action at this time.