Skip to content

Commit

Permalink
did I do it?.. wow..
Browse files Browse the repository at this point in the history
  • Loading branch information
wkelly17 committed Nov 14, 2023
1 parent 3187650 commit fc46b10
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app.ini
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ IS_INPUT_FILE = false

[oauth2]
ENABLE = true
JWT_SECRET = u4MdWtHbCQRH_d_VPfwijAsIr2vaBf7y2OhrT1JN3Cs
JWT_SECRET = z5cfDHMLMxESOI-JrLvMKtcKpzyBK8amnBpcr44C2EY

[default]
RUN_MODE = dev
13 changes: 5 additions & 8 deletions wacs-gitea/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,22 @@ COPY custom/options/locale /wa-locale
# output files to /output-locale/*.ini
RUN mkdir /output-locale
RUN go build -o localeMerger
RUN /merge-locale/localeMerger

# RUN npm install -ci
# RUN node localeMerge.js

FROM gitea/gitea:${GITEA_VERSION}-rootless

ENV GITEA_CUSTOM=/custom
COPY --from=LOCALE_BUILDER /merge-locale/localeMerger /merge-locale/localeMerger
COPY --from=LOCALE_SOURCE /var/lib/gitea/options/locale /gitea-locale
COPY merge-locale /merge-locale
COPY custom/options/locale /wa-locale

# COPY --from=LOCALE_BUILDER /output-locale/*.ini /custom/options/locale/
COPY --chown=git:git --from=LOCALE_BUILDER /output-locale/*.ini /custom/options/locale/
COPY --chown=git:git ./custom/templates /custom/templates
COPY --chown=git:git ./custom/options/locale /custom/options/locale
COPY ./custom/public /custom/public


ENV READER_BASE_LINK=read-dev.bibleineverylanguage.org


ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD ["bash", "-c", "cat /custom/templates/custom/extra_tabs.tmpl | envsubst > /tmp/extra_tabs.tmpl && mv /tmp/extra_tabs.tmpl /custom/templates/custom/extra_tabs.tmpl && /merge-locale/localeMerger && /usr/local/bin/docker-entrypoint.sh"]

CMD ["sh", "-c", "cat /custom/templates/custom/extra_tabs.tmpl | envsubst > /tmp/extra_tabs.tmpl && mv /tmp/extra_tabs.tmpl /custom/templates/custom/extra_tabs.tmpl && /usr/local/bin/docker-entrypoint.sh"]
2 changes: 1 addition & 1 deletion wacs-gitea/merge-locale/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func main() {
// Define directory paths
waLocaleDir := path.Join("/wa-locale")
giteaLocaleDir := path.Join("/gitea-locale")
outputDir := ("/outputDir")
outputDir := ("/output-locale")

// Read custom locales
waLocaleFiles, err := os.ReadDir(waLocaleDir)
Expand Down

0 comments on commit fc46b10

Please sign in to comment.