CODE 1 year ago
parent
commit
94b5549fcf
  1. 6
      jenkinsfile_script_3.6.2_data_bind_anxinproject_local
  2. 2
      script/3.6.2/data/1_bing_anxinproject_local/Dockerfile
  3. 14
      script/3.6.2/data/1_bing_anxinproject_local/index.js

6
jenkinsfile_script_3.6.2_data_bind_anxinproject_local

@ -3,17 +3,17 @@ podTemplate {
env.IMAGE_NAME = "${IOT_IMAGES_REGISTRY}/${IOT}/${JOB_NAME}"
env.IMAGE_NAME_SHORT = "${IOT}/${JOB_NAME}"
env.CODE_ADDR = "${GIT_ADDRESS}/free-sun/Inspection.git"
env.CODE_ADDR = "${GIT_ADDRESS}/free-sun/OperationalService.git"
stage('Run shell') {
git branch: 'master', credentialsId: 'gitea-builder', url: "${CODE_ADDR}"
git branch: 'dev', credentialsId: 'gitea-builder', url: "${CODE_ADDR}"
container('image-builder') {
sh'''
pwd
ls -al
/kaniko/executor --context=${BUILD_WORKSPACE} --dockerfile=./script/2.0.0/data/1_reset_project_bind_point/Dockerfile --destination=${IMAGE_NAME}:${IMAGE_VERSION} --cache=false --cleanup
/kaniko/executor --context=${BUILD_WORKSPACE} --dockerfile=./script/3.6.2/data/1_bing_anxinproject_local/Dockerfile --destination=${IMAGE_NAME}:${IMAGE_VERSION} --cache=false --cleanup
'''
}

2
script/3.6.2/data/1_bing_anxinproject_local/Dockerfile

@ -1,6 +1,6 @@
FROM repository.anxinyun.cn/base-images/nodejs12:20.10.12.2
COPY . /var/app
COPY ./script/3.6.2/data/1_bing_anxinproject_local/ /var/app
WORKDIR /var/app

14
script/3.6.2/data/1_bing_anxinproject_local/index.js

@ -7,17 +7,17 @@ try {
// ! 这里是安心云
const anxinyunPool = new Pool({
user: 'postgres',
host: '10.8.30.166',
database: 'Anxinyun0726',
password: '123',
host: '10.8.40.210',
database: 'AnxinCloud',
password: 'postgres',
port: 5432,
})
// 这里是运维平台
const pomsPool = new Pool({
user: 'postgres',
host: '10.8.30.32',
database: 'poms_231026_backup',
password: '123',
user: 'POMSAdmin',
host: '10.8.40.223',
database: 'pomstest',
password: 'POMSAdmin_123',
port: 5432,
})

Loading…
Cancel
Save