Skip to content

Commit

Permalink
wip: adding tools to the maintenance code target
Browse files Browse the repository at this point in the history
  • Loading branch information
roschaefer committed Oct 24, 2024
1 parent 5d853b5 commit a93cc66
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion webapp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ LABEL maintainer="[email protected]"

# Install Additional Software
## install: git
RUN apk --no-cache add git python3 make g++
RUN apk --no-cache add git python3 make g++ bash jq

# Settings
## Expose Container Port
Expand Down
3 changes: 2 additions & 1 deletion webapp/Dockerfile.maintenance
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ LABEL maintainer="[email protected]"

# Install Additional Software
## install: git
RUN apk --no-cache add git python3 make g++
RUN apk --no-cache add git python3 make g++ bash jq

# Settings
## Expose Container Port
Expand Down Expand Up @@ -69,6 +69,7 @@ COPY static static
COPY constants constants
COPY nuxt.config.js nuxt.config.js
COPY config/ config/
COPY tools/ tools/

# this is needed in rebranding
COPY maintenance/nginx maintenance/nginx
Expand Down
12 changes: 12 additions & 0 deletions webapp/tools/merge-locales.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

for locale in `ls locales/*.json`;
do
file=$(basename $locale);
if [ -f locales/tmp/$file ]; then
jq -s '.[0] * .[1]' $locale locales/tmp/$file > locales/tmp/tmp.json;
mv locales/tmp/tmp.json $locale;
fi;
done;

rm -r locales/tmp/

0 comments on commit a93cc66

Please sign in to comment.