Skip to content

Commit

Permalink
Download driver during docker image build
Browse files Browse the repository at this point in the history
  • Loading branch information
MalloZup committed Jul 1, 2020
1 parent 3118896 commit d57c397
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 48 deletions.
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ http://hawk-ui.github.io
- [Release](doc/release.md)
- [Installation](#installation-and-deployment)
- [Devel notes](#devel)
- [Testing](#testing)
- [Testing](e2e_test/README.md)

## Build Dependencies

Expand Down Expand Up @@ -89,9 +89,3 @@ server instance runs as).
of Pacemaker CLI tools as another user in order to support Pacemaker's
ACL feature. It is used by Hawk when performing various management
tasks.

# testing:

In addition to unit test we provide End to end test for a Hawk validation.

See e2e_test/README.md for full documentation
9 changes: 6 additions & 3 deletions e2e_test/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ RUN zypper -n install -y --no-recommends \
xorg-x11-fonts \
xorg-x11-server-Xvfb && \
zypper -n clean -a

COPY geckodriver /usr/local/bin/
COPY chromedriver /usr/local/bin/

RUN zypper -n install -y --no-recommends wget tar gzip
RUN zypper -n clean -a
RUN wget https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-linux64.tar.gz
RUN tar xvf geckodriver-v0.26.0-linux64.tar.gz
RUN mv geckodriver /usr/local/bin
RUN chmod +x /usr/local/bin/*

RUN useradd -l -m -d /test test
Expand Down
36 changes: 0 additions & 36 deletions e2e_test/Dockerfile.alpine

This file was deleted.

4 changes: 2 additions & 2 deletions e2e_test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ See https://github.com/SUSE/pacemaker-deploy for deploying hawk
# Quickstart:

1) Create the docker image
`docker build . -t hawk_test -f Dockerfile.alpine`
`docker build . -t hawk_test `

``` docker run --ipc=host -xvfb hawk_test -H 10.162.32.175 -S 10.162.29.122 -t 15 -s linux```
``` docker run --ipc=host hawk_test -H 10.162.32.175 -S 10.162.29.122 -t 15 -s linux --xvfb ```

Notes:
- You may want to add `--net=host` if you have problems with DNS resolution.
Expand Down

0 comments on commit d57c397

Please sign in to comment.