Skip to content

Commit

Permalink
SDKTECHNO-272 test add postgre
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-ducrocq-saagie committed Oct 3, 2024
1 parent 71ed690 commit 3c1008d
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 0 deletions.
3 changes: 3 additions & 0 deletions technologies/app/postgre-sql/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# PostgreSQL

## TODO
7 changes: 7 additions & 0 deletions technologies/app/postgre-sql/postgre-sql-16.4/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM postgres:16.4-bullseye

ENV POSTGRES_USER=root
ENV POSTGRES_PASSWORD=toor
ENV POSTGRES_DB=saagie

EXPOSE 5432
22 changes: 22 additions & 0 deletions technologies/app/postgre-sql/postgre-sql-16.4/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2019-2021.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import com.bmuschko.gradle.docker.DockerRemoteApiPlugin
import com.saagie.technologies.SaagieTechnologiesGradlePlugin

apply<DockerRemoteApiPlugin>()
apply<SaagieTechnologiesGradlePlugin>()
11 changes: 11 additions & 0 deletions technologies/app/postgre-sql/postgre-sql-16.4/context.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
id: postgre-sql-16.4
releaseNotes: PostgreSQL into Saagie.
label: "16.4"
available: true
trustLevel: stable
ports:
- port: 5432
name: postgre-sql
rewriteUrl: true
basePath: SAAGIE_BASE_PATH
volumes: ["/var/lib/postgresql"]
4 changes: 4 additions & 0 deletions technologies/app/postgre-sql/postgre-sql-16.4/dockerInfo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
image: saagie/postgre-sql
baseTag: 16.4
dynamicVersion:
version: 16.4
6 changes: 6 additions & 0 deletions technologies/app/postgre-sql/postgre-sql-16.4/image_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
schemaVersion: "2.0.0"

metadataTest:
env:
- key: POSTGRES_USER
value: root
16 changes: 16 additions & 0 deletions technologies/app/postgre-sql/technology.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: v1
type: APP
id: postgre-sql
label: PostgreSQL
baseline: "PostgreSQL"
description: "PostgreSQL is an open source object-relational database system."
available: true
icon: postgre-sql
defaultResources:
cpu:
limit: 1
memory:
limit: 16 GiB
backgroundColor: "#326690"
customFlags: []
readme: /technologies/app/postgre-sql

0 comments on commit 3c1008d

Please sign in to comment.