Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
danielecalda committed Feb 19, 2024
1 parent bf8ed16 commit 586cac0
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ jobs:
id: docker_build_parser
uses: docker/build-push-action@v2
with:
file: email-parser/Dockerfile
file: database-parser/python/Dockerfile
push: true
tags: smclab/openk9-database-parser:${{ steps.prep.outputs.version }}
4 changes: 2 additions & 2 deletions .gitlab/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Build Tagged Parser Docker Images:
before_script:
- docker login -u $CI_REGISTRY_USERNAME -p $CI_REGISTRY_PASSWORD $CI_REGISTRY_NAME
script:
- docker build -t database-parser:${CI_COMMIT_REF_NAME} -f database-parser/Dockerfile .
- docker build -t database-parser:${CI_COMMIT_REF_NAME} -f database-parser/python/Dockerfile .
- docker tag database-parser:${CI_COMMIT_REF_NAME} $CI_REGISTRY_NAME/openk9/database-parser:${CI_COMMIT_REF_NAME}
- docker push $CI_REGISTRY_NAME/openk9/database-parser:${CI_COMMIT_REF_NAME}

Expand All @@ -37,6 +37,6 @@ Build Latest Parser Docker Images:
before_script:
- docker login -u $CI_REGISTRY_USERNAME -p $CI_REGISTRY_PASSWORD $CI_REGISTRY_NAME
script:
- docker build -t database-parser:latest -f database-parser/Dockerfile .
- docker build -t database-parser:latest -f database-parser/python/Dockerfile .
- docker tag database-parser:latest $CI_REGISTRY_NAME/openk9/database-parser:latest
- docker push $CI_REGISTRY_NAME/openk9/database-parser:latest
1 change: 0 additions & 1 deletion database-parser/java/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ repositories {
}

dependencies {
implementation 'org.gitlab4j:gitlab4j-api:5.0.1'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class ConnectorGitlabApplication {
public class ConnectorDatabaseApplication {

public static void main(String[] args) {
SpringApplication.run(ConnectorGitlabApplication.class, args);
Expand Down
4 changes: 0 additions & 4 deletions database-parser/python/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
if ingestion_url is None:
ingestion_url = "http://ingestion:8080/v1/ingestion/"

delete_url = os.environ.get("DELETE_URL")
if delete_url is None:
delete_url = "http://index-writer:8080/v1/delete-data-documents"

logger = logging.getLogger("uvicorn.access")


Expand Down
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ services:
image: database-parser:latest
container_name: database-parser
environment:
INGESTION_URL: " http://ingestion:8080/v1/ingestion/"
DELETE_URL: "http://ingestion:8080/v1/ingestion/"
INGESTION_URL: " http://ingestion:8080/api/ingestion/v1/ingestion/"
ports:
- "5000:5000"
postgres:
Expand Down

0 comments on commit 586cac0

Please sign in to comment.