Skip to content

Commit

Permalink
docker: add test token and data
Browse files Browse the repository at this point in the history
  • Loading branch information
ofaurax committed Apr 29, 2024
1 parent 97aa876 commit b9aee36
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM php:7.4-apache
COPY . /var/www/html/

RUN sed -i 's/80/1912/' /etc/apache2/ports.conf
RUN sed -i 's/80/1912/' /etc/apache2/sites-enabled/000-default.conf
RUN sed -i 's/80/1912/' /etc/apache2/ports.conf && sed -i 's/80/1912/' /etc/apache2/sites-enabled/000-default.conf

# Add test token
RUN touch private/tokens/20350515-testtoken.txt

# Add test dirs
RUN mkdir -p private/docs/A001/
RUN mkdir -p private/docs/G057/
RUN mkdir -p private/docs/A001/ && mkdir -p private/docs/G057/cors
RUN touch private/docs/G057/clarinette1.pdf
RUN touch private/docs/G057/cors/cor1.pdf && touch private/docs/G057/cors/cor2.pdf

0 comments on commit b9aee36

Please sign in to comment.