Git process:
git remote add openshift -f ssh://[email protected]/~/git/wotan.git/ git merge openshift/master -s recursive -X ours git push openshift HEAD
Новый сервер MongoDB был добавлен к вашему окружению Jelastic PaaS.
Этот сервер выделен эксклюзивно для вас (без доступа для других пользователей), поэтому все ресурсы и производительность находятся под вашим контролем. Вы также можете настроить конфигурационные файлы через панель управления.
Доступ к интерфейсу веб-администрирования RockMongo: URL: https://mongodb48105-api-imshaby.mycloud.by Логин: admin Пароль: MCGcqv70951
Для подключения к MongoDB из кода приложения используйте следующую информацию: Хост: mongodb48105-api-imshaby.mycloud.by Логин: admin Пароль: MCGcqv70951 База данных: (создайте, используя RockMongo)
Не следует использовать Localhost в коде приложения. MariaDB находится на выделенном сервере, поэтому вы должны использовать mongodb48105-api-imshaby.mycloud.by для подключения .
build war for prod: mvn clean install -Pprod
mongod --port 27017 --dbpath "c:\Env\mongo-4.2.8\db"
export from beta: mongoexport --db api --collection city --username admin --password Hvd6jxKpiF --authenticationDatabase admin --jsonArray --out /tmp/city-pretty.json
> cd build
> sh build_imshaby_api.sh
> systemctl status development.env.service
> cd build
> sh deploy_all.sh
> kubectl -n imsha-by get all
> kubectl -n imsha-by logs <pod_name> -f
> kubectl -n imsha-by logs imshaby-api-6bcf7475bd-wnkz4 -f
Forward specific ports of running apps to host VM (pod_name is a unique name of pod, can be got using "kubectl get" cmd)
> kubectl -n imsha-by port-forward <pod_name> --address=0.0.0.0 <local VM port>:<internal pod port>
> kubectl -n imsha-by port-forward imshaby-api-6bcf7475bd-wnkz4 --address=0.0.0.0 8080:8080
> cd build
> sh destroy_all.sh
# count of service API pods
replicaCount: 1
image:
# docker repository
repository: local/imshaby-api
# image tag
tag: v1.0
# policy to pull docker image
pullPolicy: IfNotPresent
# spring active profile
activeProfile: local
mongodb:
# mongodb instance host
host: mongodb
# mongodb instance port
port: 27017
# mongodb instance database name
database: api
# mongodb user name
user: api_admin
# mongodb password
password: api_admin
service:
# Load balancing type
type: ClusterIP
# Load balancing outcome port
port: 3000