Skip to content

Commit

Permalink
octopus-vcs-facade-12 Support all features for Gitlab CE
Browse files Browse the repository at this point in the history
  • Loading branch information
aryabokon committed Aug 25, 2023
1 parent a114d15 commit 1021db6
Show file tree
Hide file tree
Showing 32 changed files with 6,891 additions and 711 deletions.
5 changes: 0 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import org.octopusden.octopus.task.MigrateMockData
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
Expand Down Expand Up @@ -59,8 +58,4 @@ subprojects {
jvmTarget = "1.8"
}
}

val migrateMockData by tasks.creating(MigrateMockData::class) {
this.testDataDir = rootDir.toString() + File.separator + "test-data"
}
}
13 changes: 0 additions & 13 deletions buildSrc/build.gradle.kts

This file was deleted.

This file was deleted.

6 changes: 1 addition & 5 deletions ft/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,8 @@ tasks.named("composeUp") {
dependsOn(":vcs-facade:dockerBuildImage")
}

tasks.named("migrateMockData") {
dependsOn("composeUp")
}

tasks.named("ft") {
dependsOn("migrateMockData")
dependsOn("composeUp")
}

idea.module {
Expand Down
6 changes: 4 additions & 2 deletions ft/docker/application-ft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ eureka:
enabled: false

gitlab:
host: http://mockserver:1080/gitlab
token: gitlab-secured-token
host: http://gitlab:8990
token:
username: root
password: VomkaEa6PD1OIgY7dQVbPUuO8wi9RMCaZw/i9yPXcI0=
health-check:
repo: git@mockserver:1080/gitlab:test-data/vcs-facade-healthcheck.git
rootCommit: 9320183f5d5f5868fdb82b36e3abd6f9d1424114
Expand Down
32 changes: 24 additions & 8 deletions ft/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3'

services:
vcs-facade:
container_name: ft-vcs-facade
container_name: vcs-facade-ft-vcs-facade
image: ${OCTOPUS_GITHUB_DOCKER_REGISTRY}/octopusden/vcs-facade:${APP_VERSION:-1.0-SNAPSHOT}
ports:
- "8080:8080"
Expand All @@ -14,8 +14,10 @@ services:
- SPRING_PROFILES_ACTIVE=ft

bitbucket:
container_name: ft-bitbucket
container_name: vcs-facade-ft-bitbucket
image: ${DOCKER_REGISTRY}/atlassian/bitbucket-server:8.6.1-jdk11
depends_on:
- bitbucket-db
ports:
- "7999:7999"
- "7990:7990"
Expand All @@ -33,15 +35,29 @@ services:
JDBC_URL: jdbc:postgresql://bitbucket-db:5432/bitbucket

bitbucket-db:
container_name: ft-bitbucket-db
image: ${DOCKER_REGISTRY}/postgres:12-alpine
container_name: vcs-facade-ft-bitbucket-db
image: ${DOCKER_REGISTRY}/postgres:13-alpine
environment:
POSTGRES_USER: bitbucket
POSTGRES_PASSWORD: bitbucket
POSTGRES_DB: bitbucket

mockserver:
container_name: ft-mockserver
image: ${DOCKER_REGISTRY}/mockserver/mockserver:mockserver-5.11.1
gitlab:
container_name: vcs-facade-ft-gitlab
image: ${DOCKER_REGISTRY}/gitlab/gitlab-ce:16.2.4-ce.0
depends_on:
- gitlab-db
ports:
- "1080:1080"
- "8990:8990"
volumes:
- ./gitlab.rb:/etc/gitlab/gitlab.rb

gitlab-db:
container_name: vcs-facade-ft-gitlab-db
image: ${DOCKER_REGISTRY}/postgres:13-alpine
environment:
POSTGRES_USER: gitlab
POSTGRES_PASSWORD: gitlab
POSTGRES_DB: gitlab
ports:
- "6432:5432"
Loading

0 comments on commit 1021db6

Please sign in to comment.