This commit is contained in:
mr
2025-04-01 10:08:27 +02:00
parent 3d92f0b8b4
commit acf0953324
22 changed files with 15 additions and 12 deletions
+6 -6
View File
@@ -3,14 +3,14 @@
build: clean
bee pack
base:
docker compose -f docker-compose.base.yml up -d
run:
bee run -gendoc=true -downdoc=true
purge:
lsof -t -i:8087 | xargs kill | true
run-dev:
bee generate routers && HTTPPORT=8087 bee run -gendoc=true -downdoc=true
bee generate routers && bee run -gendoc=true -downdoc=true
debug:
bee run -downdebug -gendebug
@@ -30,6 +30,6 @@ publish-registry:
all: docker publish-kind publish-registry
dev: base run-dev
dev: purge run-dev
.PHONY: build run clean docker publish-kind publish-registry
.PHONY: build run clean docker publish-kind publish-registry
+1 -1
View File
@@ -1,5 +1,5 @@
{
"port": 8080,
"port": 8087,
"MONGO_URL":"mongodb://localhost:27017/",
"MONGO_DATABASE":"DC_myDC"
}
+1 -1
View File
@@ -1,5 +1,5 @@
appname = oc-catalog
httpport = 8080
httpport = 8087
runmode = dev
autorender = false
copyrequestbody = true
+4 -1
View File
@@ -15,7 +15,10 @@ type VersionController struct {
// @Success 200
// @router / [get]
func (c *VersionController) GetAll() {
c.Data["json"] = map[string]string{"version": "1"}
c.Data["json"] = map[string]string{
"service": "oc-catalog",
"version": "1",
}
c.ServeJSON()
}
+2 -2
View File
@@ -9,7 +9,7 @@ services:
- 8087:8080
container_name: oc-catalog
networks:
- catalog
- oc
labels:
- "traefik.enable=true"
- "traefik.http.routers.catalog.entrypoints=web"
@@ -20,5 +20,5 @@ services:
- "traefik.http.services.catalog.loadbalancer.server.port=8080"
- "traefik.http.middlewares.catalog.forwardauth.address=http://oc-auth:8080/oc/forward"
networks:
catalog:
oc:
external: true
Executable
BIN
View File
Binary file not shown.
Executable → Regular
View File

Before

Width:  |  Height:  |  Size: 665 B

After

Width:  |  Height:  |  Size: 665 B

Executable → Regular
View File

Before

Width:  |  Height:  |  Size: 628 B

After

Width:  |  Height:  |  Size: 628 B

Executable → Regular
+1 -1
View File
@@ -39,7 +39,7 @@
window.onload = function() {
// Begin Swagger UI call region
const ui = SwaggerUIBundle({
url: "swagger.json",
url: "https://petstore.swagger.io/v2/swagger.json",
dom_id: '#swagger-ui',
deepLinking: true,
presets: [
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
View File
Executable → Regular
View File
View File
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File