Skip to content

Commit 199a9fe

Browse files
authored
Merge pull request #429 from sil-org/mv-app-home
move the app from /data to /app
2 parents 495459f + 4e8cef2 commit 199a9fe

180 files changed

Lines changed: 32 additions & 32 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ serverless-mfa-api/override/server/*.go
2525
u2f-simulator/override/*.go
2626
u2f-simulator/override/u2fserver/*.go
2727

28-
# Test email messages are stored in application/frontend/runtime/mail
29-
application/frontend/runtime/
28+
# Test email messages are stored in /app/frontend/runtime/mail
29+
app/frontend/runtime/

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1010
&& rm -rf /var/lib/apt/lists/* \
1111
&& a2enmod ssl
1212

13-
WORKDIR /data
13+
ENV APP_HOME=/app
14+
WORKDIR $APP_HOME
1415

1516
# Install/cleanup composer dependencies
16-
COPY application/composer.json /data/
17-
COPY application/composer.lock /data/
17+
COPY app/composer.json $APP_HOME
18+
COPY app/composer.lock $APP_HOME
1819
RUN composer install --prefer-dist --no-interaction --no-dev --optimize-autoloader --no-progress
1920

20-
# It is expected that /data is = application/ in project folder
21-
COPY application/ /data/
21+
COPY app/ $APP_HOME
2222

2323
# Fix folder permissions
2424
RUN chown -R www-data:www-data \
@@ -30,4 +30,4 @@ COPY dockerbuild/vhost.conf /etc/apache2/sites-enabled/
3030
RUN sed -i -E 's@ErrorLog .*@ErrorLog /proc/self/fd/2@i' /etc/apache2/apache2.conf
3131

3232
EXPOSE 80
33-
CMD ["/data/run.sh"]
33+
CMD ["/app/run.sh"]

README.md

Lines changed: 1 addition & 1 deletion
File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
# Try to install composer dev dependencies
4-
cd /data
4+
cd "$APP_HOME"
55
composer install --no-interaction --no-scripts --no-progress
66

77
# Check the code against PSR-12.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)