Skip to content

Commit

Permalink
Integration part
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Nov 30, 2021
1 parent 8e54833 commit 923bcba
Show file tree
Hide file tree
Showing 21 changed files with 916 additions and 29 deletions.
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@
!geoportal/geomapfish_geoportal/static
!geoportal/geomapfish_geoportal/locale
geoportal/geomapfish_geoportal/locale/*.pot
!webcomponents
!package.json
!package-lock.json
!tsconfig.json
!vite.config.ts
28 changes: 28 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: 2
updates:
- package-ecosystem: pip
directory: custom
schedule:
interval: daily
time: '04:00'
ignore:
- dependency-name: none

- package-ecosystem: npm
directory: /
schedule:
interval: daily
ignore:
- dependency-name: none
- package-ecosystem: docker
directory: '/custom'
schedule:
interval: daily
ignore:
- dependency-name: none
- package-ecosystem: pip
directory: '/custom'
schedule:
interval: daily
ignore:
- dependency-name: none
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
checks:
runs-on: ubuntu-20.04
name: Checks
timeout-minutes: 10
timeout-minutes: 20

steps:
- uses: actions/checkout@v2
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ __pycache__/
/print/print-apps/geomapfish/config.yaml
/mapserver/tinyows.xml
/yandex
/node_modules
3 changes: 3 additions & 0 deletions .hadolint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ignored:
- DL3008 # pin version: https://github.com/hadolint/hadolint/wiki/DL3008
- DL3003 # use workdir: https://github.com/hadolint/hadolint/wiki/DL3003
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.min.js
custom/Pipfile.lock
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,21 @@ VOLUME /etc/geomapfish \
/etc/gunicorn \
/etc/haproxy_dev \
/etc/haproxy

###############################################################################

FROM node:16-slim AS custom-build

WORKDIR /app
COPY package.json ./

RUN npm install

COPY tsconfig.json vite.config.ts ./
COPY webcomponents/ ./webcomponents/
RUN npm run build

###############################################################################

FROM gmf_config AS config
COPY --from=custom-build /app/dist/ /etc/geomapfish/static/custom/
10 changes: 4 additions & 6 deletions ci/config.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
---
checks:
black: False
isort: False
prettier: False
codespell: False
eof: False
required_workflows: False
dependabot_config: False
prospector_config: False
setup: False
dependabot: False
black:
ignore_patterns_re:
- custom/custom/alembic/script\.py\.mako

version:
branch_to_version_re:
Expand Down
26 changes: 8 additions & 18 deletions docker-compose.override.sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ services:
# - './qgisserver:/etc/qgisserver/'

geoportal:
image: ${DOCKER_BASE}-geoportal:${DOCKER_TAG}
user: root
volumes:
# For Python project development.
Expand All @@ -31,9 +30,6 @@ services:
ports:
- 5678:5678 # For remote debugging using Visual Studio Code

alembic:
image: ${DOCKER_BASE}-geoportal:${DOCKER_TAG}

# Also uncomment the PRINT_URL in geoportal
# print:
# extends:
Expand Down Expand Up @@ -64,17 +60,11 @@ services:
environment:
- TILECLOUD_CHAIN_LOG_LEVEL=DEBUG

# For Javascript project development.
# The debug application will be available at ``https://<host>/<entry_point>/dev/<interface>.html``.
# webpack_dev_server:
# # Uncomment these lines when you want to debug respectively the project js, ngeo js and/or the gmf contrib js.
# # Adapt the path for ngeo / gmf contrib to point where you have checkouted the code.
# # volumes:
# # - ./geoportal/${PACKAGE}_geoportal/static-ngeo:/app/${PACKAGE}_geoportal/static-ngeo
# # - ./../ngeo/src:/usr/lib/node_modules/ngeo/src
# # - ./../ngeo/contribs:/usr/lib/node_modules/ngeo/contribs
# volumes_from:
# - config:rw
# extends:
# file: docker-compose-lib.yaml
# service: webpack_dev_server
custom:
command:
- /usr/local/bin/gunicorn
- --reload
- --paste
- development.ini
volumes:
- ./custom/custom:/app/custom
10 changes: 10 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,16 @@ services:
environment:
- PGSCHEMA

custom:
image: ${DOCKER_BASE}-custom:${DOCKER_TAG}
build:
context: custom
args:
GIT_HASH: ${GIT_HASH}
environment:
- GUNICORN_CMD_ARGS=${GUNICORN_PARAMS}
- VISIBLE_WEB_HOST

front:
extends:
file: docker-compose-lib.yaml
Expand Down
23 changes: 23 additions & 0 deletions geoportal/geomapfish_geoportal/static/css/desktop_alt.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.logo {
background-image: url('../images/logo.svg');
height: 2.8rem;
margin-left: 0.62rem;
background-repeat: no-repeat;
background-size: auto 2.8rem;
}
.logo span {
left: 18.5rem;
position: absolute;
bottom: 0.2rem;
}
.logo span::before {
content: 'by Camptocamp';
}
.logo-right {
height: 2.8rem;
background-repeat: no-repeat;
background-size: auto 2.8rem;
position: absolute;
top: 0;
right: 0;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
104 changes: 104 additions & 0 deletions geoportal/geomapfish_geoportal/static/images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 923bcba

Please sign in to comment.