mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-09 19:22:51 +00:00
Merge remote-tracking branch 'database/main'
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -1,4 +0,0 @@
|
|||||||
.idea
|
|
||||||
.vscode
|
|
||||||
.turbo
|
|
||||||
node_modules
|
|
||||||
9
backend/database/.gitignore
vendored
9
backend/database/.gitignore
vendored
@@ -1,2 +1,11 @@
|
|||||||
.idea
|
.idea
|
||||||
.vscode
|
.vscode
|
||||||
|
<<<<<<< HEAD
|
||||||
|
=======
|
||||||
|
<<<<<<<< HEAD:.gitignore
|
||||||
|
.turbo
|
||||||
|
node_modules
|
||||||
|
========
|
||||||
|
.DS_Store
|
||||||
|
>>>>>>>> database/main:backend/database/.gitignore
|
||||||
|
>>>>>>> database/main
|
||||||
|
|||||||
@@ -1,40 +1,55 @@
|
|||||||
image: registry.gitlab.com/openstapps/projectmanagement/builder
|
image: registry.gitlab.com/openstapps/projectmanagement/builder
|
||||||
|
|
||||||
|
default:
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
|
- test
|
||||||
- publish
|
- publish
|
||||||
|
|
||||||
publish:version:
|
image build:
|
||||||
stage: publish
|
stage: test
|
||||||
variables:
|
variables:
|
||||||
DOCKER_DRIVER: overlay2
|
DOCKER_DRIVER: overlay2
|
||||||
services:
|
services:
|
||||||
- docker:dind
|
- docker:dind
|
||||||
script:
|
script:
|
||||||
- export CI_BUILD_SEM_VERSION=$(echo -n "$CI_BUILD_REF_NAME" | cut -c 2-)
|
- export CI_ES_VERSION=$(sed -n '/FROM elasticsearch/p' Dockerfile | cut -d ":" -f 2)
|
||||||
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
|
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
|
||||||
- docker build -t $CI_REGISTRY_IMAGE:$CI_BUILD_SEM_VERSION .
|
- docker build -t $CI_REGISTRY_IMAGE:$CI_ES_VERSION .
|
||||||
- docker tag $CI_REGISTRY_IMAGE:$CI_BUILD_SEM_VERSION $CI_REGISTRY_IMAGE:latest
|
- docker tag $CI_REGISTRY_IMAGE:$CI_ES_VERSION $CI_REGISTRY_IMAGE:latest
|
||||||
- docker push $CI_REGISTRY_IMAGE:latest
|
|
||||||
- docker push $CI_REGISTRY_IMAGE:$CI_BUILD_SEM_VERSION
|
|
||||||
only:
|
only:
|
||||||
- /v[0-9]+\.[0-9]+\.[0-9]+/
|
|
||||||
except:
|
|
||||||
- branches
|
- branches
|
||||||
tags:
|
except:
|
||||||
- docker
|
- main
|
||||||
|
- develop
|
||||||
|
|
||||||
publish:branch:
|
main:
|
||||||
stage: publish
|
stage: publish
|
||||||
variables:
|
variables:
|
||||||
DOCKER_DRIVER: overlay2
|
DOCKER_DRIVER: overlay2
|
||||||
services:
|
services:
|
||||||
- docker:dind
|
- docker:dind
|
||||||
script:
|
script:
|
||||||
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
|
- export CI_ES_VERSION=$(sed -n '/FROM elasticsearch/p' Dockerfile | cut -d ":" -f 2)
|
||||||
- docker build -t $CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME .
|
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
|
||||||
- docker push $CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME
|
- docker build -t $CI_REGISTRY_IMAGE:$CI_ES_VERSION .
|
||||||
|
- docker tag $CI_REGISTRY_IMAGE:$CI_ES_VERSION $CI_REGISTRY_IMAGE:latest
|
||||||
|
- docker push $CI_REGISTRY_IMAGE:latest
|
||||||
|
- docker push $CI_REGISTRY_IMAGE:$CI_ES_VERSION
|
||||||
only:
|
only:
|
||||||
- /(^master$|^develop$)/
|
- main
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
|
|
||||||
|
develop:
|
||||||
|
stage: publish
|
||||||
|
variables:
|
||||||
|
DOCKER_DRIVER: overlay2
|
||||||
|
services:
|
||||||
|
- docker:dind
|
||||||
|
script:
|
||||||
|
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
|
||||||
|
- docker build -t $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME .
|
||||||
|
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
|
||||||
|
only:
|
||||||
|
- develop
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
FROM elasticsearch:5.6-alpine
|
FROM elasticsearch:8.4.2
|
||||||
|
|
||||||
|
EXPOSE 9200
|
||||||
|
EXPOSE 9300
|
||||||
|
|
||||||
# log4j2
|
|
||||||
RUN echo "-Dlog4j2.formatMsgNoLookups=true" >> /usr/share/elasticsearch/config/jvm.options
|
|
||||||
|
|
||||||
ADD config/ /usr/share/elasticsearch/config/
|
ADD config/ /usr/share/elasticsearch/config/
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +1,16 @@
|
|||||||
|
<<<<<<<< HEAD:README.md
|
||||||
|
# Open StApps Monorepo
|
||||||
|
========
|
||||||
# Database docker image
|
# Database docker image
|
||||||
[](https://gitlab.com/openstapps/database/commits/master)
|
[](https://gitlab.com/openstapps/database/commits/main)
|
||||||
[](https://www.gnu.org/licenses/gpl-3.0.en.html)
|
[](https://www.gnu.org/licenses/gpl-3.0.en.html)
|
||||||
|
|
||||||
The used database is Elasticsearch 5.6.x. This images is based on
|
The used database is Elasticsearch 8.4.x. This images is based on
|
||||||
[elasticsearch:5.6](https://hub.docker.com/r/library/elasticsearch/) from the
|
[elasticsearch:8.4](https://hub.docker.com/r/library/elasticsearch/) from the
|
||||||
[offical Docker Library project](https://docs.docker.com/docker-hub/official_repos/) and uses openjdk:8-jre-alpine as a
|
[offical Docker Library project](https://docs.docker.com/docker-hub/official_repos/) and uses openjdk:8-jre-alpine as a
|
||||||
base image.
|
base image.
|
||||||
|
|
||||||
Additionally the [ICU Analysis Plugin](https://www.elastic.co/guide/en/elasticsearch/plugins/5.6/analysis-icu.html) is
|
Additionally the [ICU Analysis Plugin](https://www.elastic.co/guide/en/elasticsearch/plugins/8.4/analysis-icu.html) is
|
||||||
installed to provide unicode collation which is used for sorting.
|
installed to provide unicode collation which is used for sorting.
|
||||||
|
|
||||||
## Usage for testing purposes:
|
## Usage for testing purposes:
|
||||||
@@ -18,5 +21,6 @@ Currently there is an issue with elasticsearch and java on linux machines that t
|
|||||||
To set it permanently, you will have to add it to `/etc/sysctl.conf` on machines that run systemd as a init deamon.
|
To set it permanently, you will have to add it to `/etc/sysctl.conf` on machines that run systemd as a init deamon.
|
||||||
|
|
||||||
## For production use:
|
## For production use:
|
||||||
Please set `vm.max_map_count=262144` permanently. It is explained [here](https://www.elastic.co/guide/en/elasticsearch/reference/5.6/docker.html#docker-cli-run-prod-mode)
|
Please set `vm.max_map_count=262144` permanently. It is explained [here](https://www.elastic.co/guide/en/elasticsearch/reference/8.4/docker.html#docker-prod-prerequisites)
|
||||||
|
|
||||||
|
>>>>>>>> database/main:backend/database/README.md
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
network.host: 0.0.0.0
|
bootstrap.memory_lock: true
|
||||||
|
discovery.type: "single-node"
|
||||||
# this value is required because we set "network.host"
|
cluster.routing.allocation.disk.threshold_enabled: false
|
||||||
# be sure to modify it appropriately for a production cluster deployment
|
network.bind_host: 0.0.0.0
|
||||||
discovery.zen.minimum_master_nodes: 1
|
xpack.security.enabled: false
|
||||||
bootstrap.system_call_filter: false
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user