Skip to content

Commit 85060c4

Browse files
authored
Merge pull request #875 from globocom/master
Master > Dev
2 parents 52ed8c3 + 597f3fd commit 85060c4

File tree

1 file changed

+0
-61
lines changed

1 file changed

+0
-61
lines changed

Makefile

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -181,64 +181,3 @@ docker_build:
181181
INFO="date:$$DATE branch:$$GIT_BRANCH commit:$$GIT_COMMIT"; \
182182
docker build -t dbaas/dbaas_app --label git-commit=$(git rev-parse --short HEAD) --build-arg build_info="$$INFO" . -f Dockerfile_gcp
183183

184-
docker_run:
185-
# make docker_stop
186-
# docker stop dbaas_app 2>&1 >/dev/null
187-
# docker rm dbaas_app 2>&1 >/dev/null
188-
# docker run --log-driver syslog --name=dbaas_app -e "PORT=80" -e "WORKERS=2" -p 80:80 dbaas/dbaas_app
189-
docker run --name=dbaas_app \
190-
-v /Users/marcelo.soares/dbaas_dev_pki/pki/globocom:/etc/pki/globocom \
191-
-e "PORT=80" \
192-
-e "WORKERS=2" \
193-
-e "DBAAS_DATABASE_HOST=dbaas-01-145632598674.dev.mysql.globoi.com" \
194-
-e "DBAAS_DATABASE_USER=u_dbaas" \
195-
-e "DBAAS_DATABASE_NAME=dbaas" \
196-
-e "DBAAS_DATABASE_PASSWORD=u3umvWZ7LM" \
197-
-e "REDIS_HOST=dbaas.dev.redis.globoi.com" \
198-
-e "REDIS_PASSWORD=dfghg3vsdb6dbBSD1" \
199-
-e "REDIS_DB=0" \
200-
-e "REDIS_PORT=6379" \
201-
-e "DBAAS_OAUTH2_LOGIN_ENABLE=1" \
202-
-e "ALLACCESS_CREATE_RANDOM_USER=0" \
203-
-e "DBAAS_LDAP_ENABLED="1" \
204-
-e "DBAAS_LDAP_CERTDIR="/etc/pki/globocom/" \
205-
-e "DBAAS_LDAP_CACERTFILE="glb_cacert.pem" \
206-
-e "DBAAS_LDAP_CERTFILE="glb_clientcrt.pem" \
207-
-e "DBAAS_LDAP_KEYFILE="glb_clientkey.pem" \
208-
-e "AUTH_LDAP_SERVER_URI="ldaps://ldap.globoi.com:636" \
209-
-e "AUTH_LDAP_BIND_DN="cn=gerenciasenha,ou=Usuarios,dc=globoi,dc=com" \
210-
-e "AUTH_LDAP_BIND_PASSWORD="glb!ldap..," \
211-
-e "AUTH_LDAP_USER_SEARCH="ou=Usuarios,dc=globoi,dc=com" \
212-
-e "AUTH_LDAP_GROUP_SEARCH="ou=Grupos,dc=globoi,dc=com" \
213-
-e "DBAAS_NOTIFICATION_BROKER_URL=redis://:[email protected]:6379/0" \
214-
-e "DBAAS_DJ_SECRET_KEY=n3#i=z^st83t5-k_xw!v9t_ey@h=!&6!3e$l6n&sn^o9@f&jxv" \
215-
-p 80:80 dbaas/dbaas_app
216-
217-
218-
219-
220-
docker_stop:
221-
docker stop dbaas_app
222-
223-
docker_deploy_gcp:
224-
@echo "tag usada:${TAG}"
225-
make docker_deploy_build TAG=${TAG}
226-
make docker_deploy_push TAG=${TAG}
227-
228-
docker_deploy_build:
229-
@echo "tag usada:${TAG}"
230-
@echo "exemplo de uso make docker_deploy_build TAG=v1.02"
231-
GIT_BRANCH=$$(git branch --show-current); \
232-
GIT_COMMIT=$$(git rev-parse --short HEAD); \
233-
DATE=$$(date +"%Y-%M-%d_%T"); \
234-
INFO="date:$$DATE branch:$$GIT_BRANCH commit:$$GIT_COMMIT"; \
235-
docker build . -t us-east1-docker.pkg.dev/gglobo-dbaas-hub/dbaas-docker-images/dbaas-app:${TAG} \
236-
--label git-commit=$(git rev-parse --short HEAD) \
237-
--build-arg build_info="$$INFO" \
238-
-f Dockerfile_gcp
239-
240-
241-
docker_deploy_push:
242-
@echo "tag usada:${TAG}"
243-
@echo "exemplo de uso make docker_deploy_push TAG=v1.02"
244-
docker push us-east1-docker.pkg.dev/gglobo-dbaas-hub/dbaas-docker-images/dbaas-app:${TAG}

0 commit comments

Comments
 (0)