-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from FREVA-CLINT/fix-merge
Fix merge
- Loading branch information
Showing
50 changed files
with
308 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
## [v2403.0.0] | ||
|
||
### Added | ||
- Change lock file, to keep track of changes. | ||
|
||
|
||
# Template: | ||
## [Unreleased] | ||
|
||
### Added | ||
- New feature X. | ||
- New feature Y. | ||
|
||
### Changed | ||
- Improved performance in component A. | ||
- Updated dependency B to version 2.0.0. | ||
|
||
### Fixed | ||
- Fixed issue causing application crash on startup. | ||
- Fixed bug preventing users from logging in. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,30 @@ | ||
ARG CONDA_ENV_DIR=/opt/condaenv | ||
ARG FREVA_WEB_DIR=/opt/freva_web | ||
ARG VERSION | ||
|
||
FROM condaforge/mambaforge | ||
LABEL maintainer="DRKZ-CLINT" | ||
LABEL repository="https://github.com/FREVA-CLINT/freva-web" | ||
|
||
LABEL org.opencontainers.image.authors="DRKZ-CLINT" | ||
LABEL org.opencontainers.image.source="https://github.com/FREVA-CLINT/freva-web" | ||
LABEL org.opencontainers.image.version="$VERSION" | ||
ARG CONDA_ENV_DIR | ||
ARG FREVA_WEB_DIR | ||
|
||
RUN set -e && \ | ||
groupadd -r -g 1000 freva && \ | ||
adduser --uid 1000 --gid 1000 --gecos "Freva user" \ | ||
--shell /bin/bash --disabled-password freva --home ${FREVA_WEB_DIR} &&\ | ||
mkdir -p ${CONDA_ENV_DIR} && chown -R freva:freva $CONDA_ENV_DIR | ||
WORKDIR ${FREVA_WEB_DIR} | ||
COPY . . | ||
|
||
ENV PATH=$CONDA_ENV_DIR/bin:$PATH\ | ||
DJANGO_SUPERUSER_EMAIL=freva@dkrz.de | ||
|
||
RUN set -e \ | ||
&& mamba env create -p ${CONDA_ENV_DIR} -f conda-env.yml \ | ||
&& npm install && npm run build-production \ | ||
&& mamba clean -afy \ | ||
&& rm -rf node_modules \ | ||
&& echo "export PATH=${PATH}" >> /root/.bashrc | ||
|
||
RUN set -e && \ | ||
mamba env create -y -p ${CONDA_ENV_DIR} -f conda-env.yml &&\ | ||
mamba clean -afy &&\ | ||
npm install && npm run build-production &&\ | ||
rm -rf node_modules &&\ | ||
echo "export PATH=${PATH}" >> ${FREVA_WEB_DIR}/.bashrc &&\ | ||
chown -R freva:freva ${FREVA_WEB_DIR} | ||
USER freva | ||
EXPOSE 8000 | ||
|
||
CMD ./init_django.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
from django.urls import re_path as url | ||
|
||
import base.views | ||
|
||
urlpatterns = [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.