database credentials in ci variables adjusted
This commit is contained in:
parent
8ecbc3a0b3
commit
414675147e
@ -45,6 +45,6 @@ versionize:
|
||||
- echo "Service port is ${SERVICE_PORT}"
|
||||
- docker stop $CONTAINER_NAME || echo "$CONTAINER_NAME not running, anyway okay"
|
||||
- docker pull $IMAGE_NAME:$VERSION
|
||||
- echo "docker run -d --rm -e TZ=Europe/Berlin -p $SERVICE_PORT:$WEBSERVICE_PORT --name $CONTAINER_NAME -e WEBSERVICE_INSTANCE=$INSTANCE_SPECIFIER -e Database__Password=$DATABASE_PASSWORD $IMAGE_NAME:$VERSION" > /start-scripts/${CONTAINER_NAME}.sh
|
||||
- echo "docker run -d --rm -e TZ=Europe/Berlin -p $SERVICE_PORT:$WEBSERVICE_PORT --name $CONTAINER_NAME -e WEBSERVICE_INSTANCE=$INSTANCE_SPECIFIER -e Database__Host=$DATABASE_HOST -e Database__User=$DATABASE_USER -e Database__Password=$DATABASE_PASSWORD -e Database__Name=$DATABASE_NAME $IMAGE_NAME:$VERSION" > /start-scripts/${CONTAINER_NAME}.sh
|
||||
- chmod 755 /start-scripts/${CONTAINER_NAME}.sh
|
||||
- /start-scripts/${CONTAINER_NAME}.sh
|
||||
|
@ -40,7 +40,10 @@ RUN cd /tmp/work && ./generateAll.sh -k2c
|
||||
# final container
|
||||
FROM wollud1969/dotnetcore5sdk:1.0.0
|
||||
|
||||
ENV Database__Host "xxx"
|
||||
ENV Database__User "xxx"
|
||||
ENV Database__Password "xxx"
|
||||
ENV Database__Name "xxx"
|
||||
|
||||
RUN \
|
||||
useradd -d /opt/service -m service && \
|
||||
|
49
openapi.yaml
49
openapi.yaml
@ -62,6 +62,39 @@ paths:
|
||||
$ref: "#/components/schemas/specificResultType"
|
||||
404:
|
||||
description: No such test1 item available
|
||||
/pdb/v2/productionOrder/{productionOrderNumber}:
|
||||
get:
|
||||
tags: [ "Regular" ]
|
||||
operationId: Regular.productionOrder
|
||||
summary: Returns productionOrder entries
|
||||
description:
|
||||
STATEMENTBEGIN
|
||||
SELECT produktionsauftrag AS productionOrderNumber,
|
||||
C_Nummer AS cNumber,
|
||||
artikelcode AS articleCode,
|
||||
stueckzahl AS numOfParts,
|
||||
IX AS ix,
|
||||
referenz_dokument AS referenceDocument
|
||||
FROM pdb_el.auftraege
|
||||
WHERE produktionsauftrag = @productionOrderNumber
|
||||
STATEMENTEND
|
||||
parameters:
|
||||
- name: productionOrderNumber
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
200:
|
||||
description: Here are your productionOrder items
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/productionOrder"
|
||||
404:
|
||||
description: No such productionOrder entries available
|
||||
|
||||
components:
|
||||
schemas:
|
||||
@ -85,3 +118,19 @@ components:
|
||||
type: string
|
||||
nr:
|
||||
type: integer
|
||||
productionOrder:
|
||||
description: Selecting columns of the auftraege table from pdb_el
|
||||
type: object
|
||||
properties:
|
||||
productionOrderNumber:
|
||||
type: string
|
||||
cNumber:
|
||||
type: string
|
||||
articleCode:
|
||||
type: string
|
||||
numOfParts:
|
||||
type: integer
|
||||
ix:
|
||||
type: string
|
||||
referenceDocument:
|
||||
type: string
|
||||
|
Loading…
x
Reference in New Issue
Block a user