6 Commits

Author SHA1 Message Date
AlbertoPMDM c7eb2278b8 version 2026-09-17 19:14:46 -06:00
AlbertoPMDM cfe4990e79 mounted volume is now a parameter 2026-09-17 19:14:09 -06:00
AlbertoPMDM 752a08505c versioning 2026-09-17 17:30:33 -06:00
AlbertoPMDM f95b904776 fixed syntax on jenkinsfile 2026-09-17 17:29:44 -06:00
AlbertoPMDM d229a15f12 version 2026-09-17 17:22:13 -06:00
AlbertoPMDM 84a3e410a0 fixed more things from the switch to pip 2026-09-17 17:21:47 -06:00
7 changed files with 27 additions and 14 deletions
+4 -1
View File
@@ -1,5 +1,8 @@
pipeline {
agent any
parameters {
string(name: 'VOLUME', defaultValue: 'tea', description: 'Docker volume')
}
stages {
stage('Get Latest Release') {
steps {
@@ -19,7 +22,7 @@ pipeline {
stage('Run') {
steps {
sh 'chmod +x jobs/create-db/run.sh'
sh './jobs/create-db/run.sh'
sh "./jobs/create-db/run.sh ${params.VOLUME}"
}
}
}
+2 -2
View File
@@ -1,3 +1,3 @@
docker run --rm \
--mount type=volume,source=sqlitedb,target=/program/data \
tea-db uv run src/database.py
--mount type=volume,source=$1,target=/program/data \
tea-db python3 src/database.py
+8 -3
View File
@@ -1,11 +1,16 @@
pipeline {
agent any
parameters {
string(name: 'VOLUME', defaultValue: 'tea', description: 'Docker volume')
}
stages {
stage('Get Latest Release') {
steps {
sh 'git fetch --tags'
def latestTag = sh(script: 'git describe --tags $(git rev-list --tags --max-count=1)', returnStdout: true).trim()
sh "git checkout ${latestTag}"
script {
def latestTag = sh(script: 'git describe --tags $(git rev-list --tags --max-count=1)', returnStdout: true).trim()
sh "git checkout ${latestTag}"
}
}
}
stage('Build') {
@@ -17,7 +22,7 @@ pipeline {
stage('Run') {
steps {
sh 'chmod +x jobs/fill-db/run.sh'
sh './jobs/fill-db/run.sh'
sh "./jobs/fill-db/run.sh ${params.VOLUME}"
}
}
}
+2 -2
View File
@@ -1,6 +1,6 @@
docker run --rm \
--mount type=volume,source=sqlitedb,target=/program/data \
tea-db uv run python -m ps_core.devdata.fill \
--mount type=volume,source=$1,target=/program/data \
tea-db python3 -m ps_core.devdata.fill \
--spec-dir spec \
--generated-dir src \
--count 100 \
+8 -3
View File
@@ -1,11 +1,16 @@
pipeline {
agent any
parameters {
string(name: 'VOLUME', defaultValue: 'tea', description: 'Docker volume')
}
stages {
stage('Get Latest Release') {
steps {
sh 'git fetch --tags'
def latestTag = sh(script: 'git describe --tags $(git rev-list --tags --max-count=1)', returnStdout: true).trim()
sh "git checkout ${latestTag}"
script {
def latestTag = sh(script: 'git describe --tags $(git rev-list --tags --max-count=1)', returnStdout: true).trim()
sh "git checkout ${latestTag}"
}
}
}
stage('Build') {
@@ -17,7 +22,7 @@ pipeline {
stage('Run') {
steps {
sh 'chmod +x jobs/validate-db/run.sh'
sh './jobs/validate-db/run.sh'
sh "./jobs/validate-db/run.sh ${params.VOLUME}"
}
}
}
+2 -2
View File
@@ -1,6 +1,6 @@
docker run --rm \
--mount type=volume,source=sqlitedb,target=/program/data \
tea-db uv run python -m ps_core.validate_all \
--mount type=volume,source=$1,target=/program/data \
tea-db python3 -m ps_core.validate_all \
--spec-dir spec \
--generated-dir src \
--db-url "sqlite:///data/dev.db"
+1 -1
View File
@@ -1,6 +1,6 @@
[project]
name = "tea-db"
version = "0.0.3"
version = "0.0.6"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.14"