Skip to content

Commit d1dacb4

Browse files
author
billy clark
committed
Merge branch 'develop'
2 parents 1578e19 + 8806820 commit d1dacb4

29 files changed

+1336
-4132
lines changed

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// See http://go.microsoft.com/fwlink/?LinkId=827846
33
// for the documentation about the extensions.json format
44
"recommendations": [
5-
"juancasanova.awesometypescriptproblemmatcher",
5+
"amodio.tsl-problem-matcher",
66
"msjsdiag.debugger-for-chrome",
77
"ms-vscode-remote.remote-containers",
88
"editorconfig.editorconfig",

docker/app/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ RUN install-php-extensions xdebug
6060
COPY docker/app/docker-php-ext-xdebug.ini /usr/local/etc/php/conf.d
6161
RUN mv $PHP_INI_DIR/php.ini-development $PHP_INI_DIR/php.ini
6262
COPY --from=sillsdev/web-languageforge:wait-latest /wait /wait
63+
COPY docker/app/run-with-wait.sh /run-with-wait.sh
6364

6465
FROM ${ENVIRONMENT}-app AS languageforge-app
6566
ARG BUILD_VERSION=${BUILD_VERSION:-'9.9.9'}
@@ -82,6 +83,7 @@ COPY docker/app/symfony-exceptions.patch /
8283
RUN patch -p4 -i /symfony-exceptions.patch
8384

8485
RUN echo "${BUILD_VERSION}" > /var/www/html/build-version.txt \
85-
&& sed -i /var/www/html/version.php -e "s/^\\(define('VERSION', '\\).*;\$/\\1${BUILD_VERSION}'\\);/"
86+
&& sed -i /var/www/html/version.php -e "s/^\\(define('VERSION', '\\).*;\$/\\1${BUILD_VERSION}'\\);/"
8687

88+
ENTRYPOINT [ "tini", "-g", "--" ]
8789
CMD [ "apache2-foreground" ]

docker/app/run-with-wait.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
trap "exit" TERM
4+
/wait
5+
apache2-foreground

docker/base-php/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FROM php:7.3.28-apache
44
# p7zip-full - used by LF application for unzipping lexicon uploads
55
# unzip - used by LF application for unzipping lexicon uploads
66
# curl - used by LF application
7-
RUN apt-get update && apt-get -y install p7zip-full unzip curl && rm -rf /var/lib/apt/lists/*
7+
RUN apt-get update && apt-get -y install p7zip-full unzip curl tini && rm -rf /var/lib/apt/lists/*
88

99
# see https://github.com/mlocati/docker-php-extension-installer
1010
# PHP extensions required by the LF application

docker/docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ services:
5454
- FACEBOOK_CLIENT_SECRET=bogus-development-token
5555
- REMEMBER_ME_SECRET=bogus-development-key
5656
- LANGUAGE_DEPOT_API_TOKEN=bogus-development-token
57-
command: sh -c "/wait && apache2-foreground"
57+
command: ["/run-with-wait.sh"]
5858
extra_hosts:
5959
- "host.docker.internal:host-gateway"
6060
volumes:
@@ -310,6 +310,7 @@ services:
310310
depends_on:
311311
- db
312312
- mail
313+
- ld-api
313314
ports:
314315
- 3238:80
315316
environment:

docker/lfmerge/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
FROM ghcr.io/sillsdev/lfmerge:2.0.120
1+
FROM ghcr.io/sillsdev/lfmerge:2.0.123
22
# Do not add anything to this Dockerfile, it should stay empty

docker/next-app/Dockerfile.next-app

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM node:alpine AS builder
33

44
WORKDIR /app
55

6-
COPY jsconfig.json package-lock.json package.json postcss.config.cjs svelte.config.js tailwind.config.cjs /app
6+
COPY jsconfig.json package-lock.json package.json postcss.config.cjs svelte.config.js tailwind.config.cjs /app/
77
COPY src /app/src
88
COPY static /app/static
99

docs/RELEASE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This guide describes our Release and Deployment processes.
66

77
The Language Forge project is under active development and as a project team we value shipping early and shipping often. In the past we have used a form of semantic versioning for our version names, however moving forward our releases will be [publicized on our community support site](https://community.software.sil.org/c/language-forge/20) as the YYYY-MM release. We will publish a summary of changes on our community site, once a month for all releases/changes that occurred during the prior month.
88

9-
Releases are tagged in Git using the naming convention `vYYYYMMDD` and Docker images as `YYYYMMDD` (omitting the preceding `v`). In the event that we release twice in a single day, the release shall be named `YYYYMMDDb`, containing a distinguishing trailing letter.
9+
Releases are tagged in Git using the naming convention `vYYYY-MM-DD` and Docker images as `YYYY-MM-DD` (omitting the preceding `v`). In the event that we release twice in a single day, the release shall be named `YYYY-MM-DDb`, containing a distinguishing trailing letter.
1010
## Application deployment ##
1111

1212
Language Forge is built to run in a containerized environment. Kubernetes is our chosen runtime platform for production. Deployments are automated under the right circumstances using GitHub Actions.
@@ -29,7 +29,7 @@ Production deployments can be manually run with `VERSION_APP=<some-docker-tag-or
2929

3030
Current workflow:
3131
1. merge from `develop` into `master`
32-
1. "Draft a new release" on https://github.com/sillsdev/web-languageforge/releases with a `v#.#.#` tag format
32+
1. "Draft a new release" on https://github.com/sillsdev/web-languageforge/releases with a `vYYYY-MM-DD` tag format
3333
1. "Publish" the new release
3434
1. this will kick off the GHA (`.github/workflows/production.yml`) to build, test and publish the necessary images to Docker Hub (https://hub.docker.com/r/sillsdev/web-languageforge/tags) and deploy this code to the production environment at https://languageforge.org
3535

0 commit comments

Comments
 (0)