Skip to content

Commit

Permalink
Switch to use vertica-ce docker image for CI test (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
sitingren authored Sep 1, 2022
1 parent 59ab101 commit 610cb07
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,19 @@ jobs:
with:
go-version: ${{ matrix.go-version }}
- name: Set up a Vertica server
env:
VERTICA_CE_URL: "https://vertica-community-edition-for-testing.s3.amazonaws.com/XCz9cp7m/vertica-12.0.0-0.x86_64.RHEL6.rpm"
timeout-minutes: 15
run: |
git clone https://github.com/jbfavre/docker-vertica.git
curl $VERTICA_CE_URL --create-dirs -o docker-vertica/packages/vertica-ce.latest.rpm
docker build -f docker-vertica/Dockerfile.centos.7_9.x --build-arg VERTICA_PACKAGE=vertica-ce.latest.rpm -t jbfavre/vertica docker-vertica
docker images
docker run --hostname vertica-docker --name vertica_docker -d -p 5433:5433 jbfavre/vertica
sleep 60
docker pull vertica/vertica-ce:12.0.0-0
docker run -d -p 5433:5433 -p 5444:5444 \
--name vertica_docker \
vertica/vertica-ce
echo "Vertica startup ..."
until docker exec vertica_docker test -f /data/vertica/VMart/agent_start.out; do \
echo "..."; \
sleep 3; \
done;
echo "Vertica is up"
docker exec -u dbadmin vertica_docker /opt/vertica/bin/vsql -c "\l"
- name: Generating certs
run: |
Expand Down

0 comments on commit 610cb07

Please sign in to comment.