Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/concept-library-container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ on:
# Only consider PRs that change files for this asset, including ci scripts
paths:
- '.github/workflows/concept-library-container.yaml'
- './CodeListLibrary_project/**'
- './docker/**'
- 'CodeListLibrary_project/**'
- 'docker/**'
push:
# Only release off of release and maintenance branches for this asset
branches:
- 'master'
# Only consider pushes that change files for this asset, including ci scripts
paths:
- '.github/workflows/concept-library-container.yaml'
- './CodeListLibrary_project/**'
- './docker/**'
- 'CodeListLibrary_project/**'
- 'docker/**'

permissions:
contents: write
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/sonarqube.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ on:
- '.github/workflows/sonarqube.yaml'
- 'CodeListLibrary_project/**'
- 'docker/**'
- 'docs/**'

jobs:
scan-code:
Expand Down
27 changes: 17 additions & 10 deletions docker/app/app.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,21 @@ RUN apt-get update -y -q && \
RUN mkdir -p /var/www/concept_lib_sites/v1 && \
mkdir -p /home/config_cll/cll_srvr_logs

# Set perms
RUN chown -R www-data:www-data /var/www /home/config_cll && \
chmod -R 750 /home/config_cll

# Cleanup
RUN apt-get autoremove -y -q && \
apt-get clean -y -q


####################################
## ##
## Build ##
## ##
####################################
FROM base AS builder
# Copy script volume(s)
COPY ./docker/app/scripts/build /bin/scripts
COPY ./docker/app/scripts/init /home/config_cll/init
Expand All @@ -43,27 +58,19 @@ COPY ./docker/requirements /var/www/concept_lib_sites/v1/requirements
# Copy app volume(s)
COPY ./CodeListLibrary_project /var/www/concept_lib_sites/v1/CodeListLibrary_project

# Set perms
RUN chown -R www-data:www-data /var/www /home/config_cll && \
chmod -R 750 /home/config_cll

RUN find /bin/scripts -type f -iname "*.sh" -exec chmod a+x {} \; && \
find /home/config_cll -type f -iname "*.sh" -exec chmod a+x {} \;

# Config & install dependencies
RUN /bin/scripts/dependencies.sh /var/www/concept_lib_sites/v1/requirements/${dependency_target:-production.txt}

# Cleanup
RUN apt-get autoremove -y -q && \
apt-get clean -y -q


####################################
## ##
## Dev ##
## ##
####################################
FROM base AS dev
FROM builder AS dev
WORKDIR /var/www/concept_lib_sites/v1/CodeListLibrary_project


Expand All @@ -72,7 +79,7 @@ WORKDIR /var/www/concept_lib_sites/v1/CodeListLibrary_project
## Prod ##
## ##
####################################
FROM base AS prod
FROM builder AS prod

# Config supervisord
ADD ./docker/app/config/cll.supervisord.conf /etc/supervisord.conf
Expand Down
Loading