-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathtest-with-compose.sh
More file actions
executable file
·32 lines (27 loc) · 978 Bytes
/
test-with-compose.sh
File metadata and controls
executable file
·32 lines (27 loc) · 978 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env bash
#Copyright 2019 Splunk, Inc.
#
#Use of this source code is governed by a BSD-2-clause-style
#license that can be found in the LICENSE-BSD2 file or at
#https://opensource.org/licenses/BSD-2-Clause
mkdir test-results
docker volume create sc4s-tests
docker volume create sc4s-results
docker volume create splunk-etc
docker container create --name dummy \
-v sc4s-tests:/work/tests \
-v sc4s-results:/work/test-results \
-v splunk-etc:/work/splunk-etc \
registry.access.redhat.com/ubi7/ubi
docker cp tests/ dummy:/work/tests/
docker cp ./splunk/etc/* dummy:/work/splunk-etc/
docker rm dummy
docker-compose build
docker-compose up --abort-on-container-exit --exit-code-from test
docker container create --name dummy \
-v sc4s-tests:/work/tests \
-v sc4s-results:/work/test-results \
registry.access.redhat.com/ubi7/ubi
docker cp dummy:/work/test-results/functional test-results
docker rm dummy
EXIT=$0