deployment_files
This commit is contained in:
		
							parent
							
								
									95791b93cb
								
							
						
					
					
						commit
						992ccc6aff
					
				| @ -9,7 +9,7 @@ LABEL stage=builder | |||||||
| LABEL build_id=$BUILD_ID | LABEL build_id=$BUILD_ID | ||||||
| RUN mkdir repo | RUN mkdir repo | ||||||
| WORKDIR /repo | WORKDIR /repo | ||||||
| RUN git clone https://$GITEA_USER:$GITEA_PASS@157.66.191.31:3000/risadmin_prod/hostme16.git | RUN git clone http://$GITEA_USER:$GITEA_PASS@157.66.191.31:3000/risadmin_prod/hostme16.git | ||||||
| #************* Stage 2 - Maven Build ************** | #************* Stage 2 - Maven Build ************** | ||||||
| FROM maven:3.9.3 AS mvn | FROM maven:3.9.3 AS mvn | ||||||
| LABEL stage=builder | LABEL stage=builder | ||||||
|  | |||||||
| @ -13,7 +13,7 @@ DOMAIN=157.66.191.31:3000 | |||||||
| #WEB-URL-PORT | #WEB-URL-PORT | ||||||
| CONT_PORT=3306 | CONT_PORT=3306 | ||||||
| TARGET_PORT=9292 | TARGET_PORT=9292 | ||||||
| PATH_DIR=/data/34428_1742389412565/sureops_deploy/hostme16/sureops/hostme16-back-b/deployment | PATH_DIR=/data/34428_1742390142142/sureops_deploy/hostme16/sureops/hostme16-back-b/deployment | ||||||
| #********************** | #********************** | ||||||
| cd $PATH_DIR | cd $PATH_DIR | ||||||
| DOCKER_TAG=1.0 | DOCKER_TAG=1.0 | ||||||
|  | |||||||
| @ -6,13 +6,13 @@ | |||||||
|         #LABEL build_id=$BUILD_ID |         #LABEL build_id=$BUILD_ID | ||||||
|         #RUN mkdir repo |         #RUN mkdir repo | ||||||
|         #WORKDIR /repo |         #WORKDIR /repo | ||||||
|         #RUN git clone https://risadmin:admin1234@try.gitea.io/risadmin/a_madhurtest1.git |         #RUN git clone http://risadmin:admin1234@try.gitea.io/risadmin/a_madhurtest1.git | ||||||
|         #******** Stage 2 - Mysql Build********* |         #******** Stage 2 - Mysql Build********* | ||||||
|         FROM mysql:8.0 |         FROM mysql:8.0 | ||||||
|         ENV MYSQL_ROOT_PASSWORD root |         ENV MYSQL_ROOT_PASSWORD root | ||||||
|         COPY conf.d /etc/mysql/conf.d |         COPY conf.d /etc/mysql/conf.d | ||||||
|         COPY *.sql /docker-entrypoint-initdb.d/ |         COPY *.sql /docker-entrypoint-initdb.d/ | ||||||
|         #COPY --from=code /repo//data/34428_1742389412565/sureops_deploy/hostme16/hostme16-db-d/authsec_mysql/mysql/wf_table/backend/src/main/resources/ . |         #COPY --from=code /repo//data/34428_1742390142142/sureops_deploy/hostme16/hostme16-db-d/authsec_mysql/mysql/wf_table/backend/src/main/resources/ . | ||||||
|         VOLUME /var/lib/mysql |         VOLUME /var/lib/mysql | ||||||
|         EXPOSE 3306 |         EXPOSE 3306 | ||||||
|         CMD ["mysqld"] |         CMD ["mysqld"] | ||||||
| @ -11,11 +11,11 @@ GIT_BRANCH=main | |||||||
| DOMAIN=157.66.191.31:3000 | DOMAIN=157.66.191.31:3000 | ||||||
| CONT_PORT=3306 | CONT_PORT=3306 | ||||||
| TARGET_PORT=3306 | TARGET_PORT=3306 | ||||||
| PATH_DIR=/data/34428_1742389412565/sureops_deploy/hostme16/sureops/hostme16-db-d/deployment | PATH_DIR=/data/34428_1742390142142/sureops_deploy/hostme16/sureops/hostme16-db-d/deployment | ||||||
| 
 | 
 | ||||||
| #********************** | #********************** | ||||||
| cd $PATH_DIR | cd $PATH_DIR | ||||||
| cp /data/34428_1742389412565/sureops_deploy/hostme16/hostme16-db-d/authsec_mysql/mysql/wf_table/*.sql . | cp /data/34428_1742390142142/sureops_deploy/hostme16/hostme16-db-d/authsec_mysql/mysql/wf_table/*.sql . | ||||||
| pwd | pwd | ||||||
| DOCKER_TAG=1.0 | DOCKER_TAG=1.0 | ||||||
| # Stop any existing containers with the same name and ports | # Stop any existing containers with the same name and ports | ||||||
|  | |||||||
| @ -8,7 +8,7 @@ LABEL stage=builder | |||||||
| LABEL build_id=$BUILD_ID | LABEL build_id=$BUILD_ID | ||||||
| RUN mkdir repo | RUN mkdir repo | ||||||
| WORKDIR /repo | WORKDIR /repo | ||||||
| RUN git clone https://$GITEA_USER:$GITEA_PASS@157.66.191.31:3000/risadmin_prod/hostme16.git | RUN git clone http://$GITEA_USER:$GITEA_PASS@157.66.191.31:3000/risadmin_prod/hostme16.git | ||||||
| # angular build | # angular build | ||||||
| FROM node:16.20.2-alpine3.18 as build | FROM node:16.20.2-alpine3.18 as build | ||||||
| LABEL stage=app | LABEL stage=app | ||||||
|  | |||||||
| @ -13,7 +13,7 @@ GIT_BRANCH="main" | |||||||
| DOMAIN="157.66.191.31:3000" | DOMAIN="157.66.191.31:3000" | ||||||
| CONT_PORT=30167 | CONT_PORT=30167 | ||||||
| TARGET_PORT=80 | TARGET_PORT=80 | ||||||
| PATH_DIR="/data/34428_1742389412565/sureops_deploy/hostme16/sureops/hostme16-front-f/deployment" | PATH_DIR="/data/34428_1742390142142/sureops_deploy/hostme16/sureops/hostme16-front-f/deployment" | ||||||
| DOCKER_TAG="1.0" | DOCKER_TAG="1.0" | ||||||
| MAX_RETRIES=3 | MAX_RETRIES=3 | ||||||
| RETRY_DELAY=10 | RETRY_DELAY=10 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user