Skip to content

Commit

Permalink
chore(circle_ci): update circle_ci psql image
Browse files Browse the repository at this point in the history
- update psql image to allow for pgvector
  • Loading branch information
Jonaspng committed Jan 21, 2025
1 parent 72307db commit 62578d0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ executors:
DATABASE_URL: 'postgres://ubuntu@localhost:5432/coursemology_test'
COLLECT_COVERAGE: << parameters.collects_rails_coverage >>

- image: cimg/postgres:16.1
- image: pgvector/pgvector:pg16
environment:
POSTGRES_USER: ubuntu
POSTGRES_DB: coursemology_test
POSTGRES_PASSWORD: Testing1234

- image: cimg/redis:7.2.3

Expand Down Expand Up @@ -129,7 +130,7 @@ commands:
- run:
name: Create coursemology_keycloak db
command: |
DB_CONTAINER_ID=$(docker ps -q --filter ancestor=cimg/postgres:16.1)
DB_CONTAINER_ID=$(docker ps -q --filter ancestor=pgvector/pgvector:pg16)
docker exec $DB_CONTAINER_ID psql -c "CREATE DATABASE coursemology_keycloak OWNER ubuntu;" -U ubuntu -d postgres
docker exec $DB_CONTAINER_ID psql -c "CREATE DATABASE coursemology OWNER ubuntu;" -U ubuntu -d postgres
- run:
Expand All @@ -148,7 +149,7 @@ commands:
working_directory: authentication
command: |
touch .env
echo KC_NETWORK_MODE="container:$(docker ps -q --filter ancestor=cimg/postgres:16.1)" >> .env
echo KC_NETWORK_MODE="container:$(docker ps -q --filter ancestor=pgvector/pgvector:pg16)" >> .env
echo KC_DB="postgres" >> .env
echo KC_DB_URL="jdbc:postgresql://localhost:5432/coursemology_keycloak" >> .env
echo KC_DB_USERNAME="ubuntu" >> .env
Expand Down

0 comments on commit 62578d0

Please sign in to comment.