Skip to content

Commit 3c57bbd

Browse files
author
Thomas Goodwin
committed
Correcting CI merge.
2 parents ed80f73 + 4e7d374 commit 3c57bbd

File tree

2 files changed

+14
-17
lines changed

2 files changed

+14
-17
lines changed

.gitlab-ci.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,9 @@ test:
4040
# Install docker-compose
4141
- apk add --no-cache py2-pip && pip install docker-compose
4242

43-
# Change to 'tests', export the test image name, patch the network names
44-
# so they're unique in the event of concurrent runs, compose up under a
45-
# unique project name and begin executing tests.
43+
# Pull the test image and start the stack without rebuilding it.
4644
- cd tests
47-
- export TEST_IMAGE=${CONTAINER_TEST_IMAGE}
48-
- sed -i -E "s/TEST_NETWORK/"${CI_COMMIT_REF_SLUG}"/g" docker-compose.yml
45+
- docker pull ${CONTAINER_TEST_IMAGE}
4946
- docker-compose -p ${CI_COMMIT_REF_SLUG} up -d --no-build
5047
- docker-compose -p ${CI_COMMIT_REF_SLUG} exec -T rest
5148
bash -l -c 'yum install -y rh.SigGen rh.FileWriter'
@@ -54,7 +51,7 @@ test:
5451

5552
# Clean up and exit with the result
5653
- docker-compose -p ${CI_COMMIT_REF_SLUG} down
57-
- docker rmi $CONTAINER_TEST_IMAGE}
54+
- docker rmi ${CONTAINER_TEST_IMAGE}
5855
- exit ${RESULT}
5956

6057
# Move the test image to internal 'latest' and clean up the worker's images
@@ -92,8 +89,8 @@ deploy-image:
9289
- docker pull $CONTAINER_RELEASE_IMAGE
9390
- docker logout
9491
- docker login -u ${DOCKERHUB_USER} -p ${DOCKERHUB_TOKEN}
95-
- docker tag $CONTAINER_RELEASE_IMAGE $dockerhub_image_tag
96-
- docker tag $CONTAINER_RELEASE_IMAGE $dockerhub_image_latest
92+
- docker tag $CONTAINER_RELEASE_IMAGE ${dockerhub_image_tag}
93+
- docker tag $CONTAINER_RELEASE_IMAGE ${dockerhub_image_latest}
9794
- docker push ${dockerhub_image_tag} ${dockerhub_image_latest}
9895
- docker rmi ${CONTAINER_RELEASE_IMAGE} ${dockerhub_image_tag} ${dockerhub_image_latest}
9996

tests/docker-compose.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services:
55
image: geontech/redhawk-omniserver:${REDHAWK_VERSION:-2.0.8}
66
hostname: omniorb
77
networks:
8-
- redhawk-TEST_NETWORK
8+
- redhawk
99

1010
# Standard REDHAWK SDR Domain
1111
domain:
@@ -17,7 +17,7 @@ services:
1717
- OMNISERVICEIP=omniorb
1818
- OMNISERVICEPORTS=19000:19050
1919
networks:
20-
- redhawk-TEST_NETWORK
20+
- redhawk
2121

2222
# Standard GPP
2323
gpp:
@@ -31,7 +31,7 @@ services:
3131
- OMNISERVICEIP=omniorb
3232
- OMNISERVICEPORTS=19100:19150
3333
networks:
34-
- redhawk-TEST_NETWORK
34+
- redhawk
3535

3636
# FEI FileReader Device runner mounted to the snapshot.
3737
fei_file_reader:
@@ -44,11 +44,11 @@ services:
4444
- OMNISERVICEIP=omniorb
4545
- OMNISERVICEPORTS=19200:19250
4646
networks:
47-
- redhawk-TEST_NETWORK
47+
- redhawk
4848

4949
# REST-Python Unit Under Test (UUT)
5050
rest:
51-
image: ${TEST_IMAGE:-geontech/redhawk-webserver}
51+
image: ${CONTAINER_TEST_IMAGE:-geontech/redhawk-webserver}
5252
build: ../
5353
depends_on:
5454
- domain
@@ -58,9 +58,9 @@ services:
5858
- OMNISERVICEIP=omniorb
5959
command: [sleep, '3600']
6060
networks:
61-
- redhawk-TEST_NETWORK
62-
- web-TEST_NETWORK
61+
- redhawk
62+
- web
6363

6464
networks:
65-
redhawk-TEST_NETWORK:
66-
web-TEST_NETWORK:
65+
redhawk:
66+
web:

0 commit comments

Comments
 (0)