mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Docker: remove web/locale from volume mounts
This caused a bug where generated locale would not be used. Also, removed appending to /etc/hosts which was bugging out on Mac OS X. archlinux:base-devel seems to come with a valid /etc/hosts. Additionally, remove AUR_CONFIG from Dockerfile. We don't set it up; just use the defaults during installation. Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
ff3519ae11
commit
9ee7be4a1c
2 changed files with 21 additions and 10 deletions
|
@ -1,8 +1,6 @@
|
|||
FROM archlinux:base-devel
|
||||
|
||||
# Setup some default system stuff.
|
||||
RUN bash -c 'echo "127.0.0.1 localhost" >> /etc/hosts'
|
||||
RUN bash -c 'echo "::1 localhost" >> /etc/hosts'
|
||||
RUN ln -sf /usr/share/zoneinfo/UTC /etc/localtime
|
||||
|
||||
RUN mkdir -p .pkg-cache
|
||||
|
@ -28,6 +26,5 @@ WORKDIR /aurweb
|
|||
COPY . .
|
||||
|
||||
ENV PYTHONPATH=/aurweb
|
||||
ENV AUR_CONFIG=conf/config
|
||||
|
||||
RUN make -C po all install
|
||||
|
|
|
@ -116,7 +116,9 @@ services:
|
|||
- ./aurweb:/aurweb/aurweb
|
||||
- ./migrations:/aurweb/migrations
|
||||
- ./test:/aurweb/test
|
||||
- ./web:/aurweb/web
|
||||
- ./web/html:/aurweb/web/html
|
||||
- ./web/template:/aurweb/web/template
|
||||
- ./web/lib:/aurweb/web/lib
|
||||
- ./templates:/aurweb/templates
|
||||
|
||||
fastapi:
|
||||
|
@ -148,7 +150,9 @@ services:
|
|||
- ./aurweb:/aurweb/aurweb
|
||||
- ./migrations:/aurweb/migrations
|
||||
- ./test:/aurweb/test
|
||||
- ./web:/aurweb/web
|
||||
- ./web/html:/aurweb/web/html
|
||||
- ./web/template:/aurweb/web/template
|
||||
- ./web/lib:/aurweb/web/lib
|
||||
- ./templates:/aurweb/templates
|
||||
|
||||
nginx:
|
||||
|
@ -180,7 +184,9 @@ services:
|
|||
- git_data:/aurweb/aur.git
|
||||
- ./cache:/cache
|
||||
- ./logs:/var/log/nginx
|
||||
- ./web:/aurweb/web
|
||||
- ./web/html:/aurweb/web/html
|
||||
- ./web/template:/aurweb/web/template
|
||||
- ./web/lib:/aurweb/web/lib
|
||||
|
||||
sharness:
|
||||
image: aurweb:latest
|
||||
|
@ -202,7 +208,9 @@ services:
|
|||
- ./aurweb:/aurweb/aurweb
|
||||
- ./migrations:/aurweb/migrations
|
||||
- ./test:/aurweb/test
|
||||
- ./web:/aurweb/web
|
||||
- ./web/html:/aurweb/web/html
|
||||
- ./web/template:/aurweb/web/template
|
||||
- ./web/lib:/aurweb/web/lib
|
||||
- ./templates:/aurweb/templates
|
||||
|
||||
pytest-mysql:
|
||||
|
@ -229,7 +237,9 @@ services:
|
|||
- ./aurweb:/aurweb/aurweb
|
||||
- ./migrations:/aurweb/migrations
|
||||
- ./test:/aurweb/test
|
||||
- ./web:/aurweb/web
|
||||
- ./web/html:/aurweb/web/html
|
||||
- ./web/template:/aurweb/web/template
|
||||
- ./web/lib:/aurweb/web/lib
|
||||
- ./templates:/aurweb/templates
|
||||
|
||||
pytest-sqlite:
|
||||
|
@ -248,7 +258,9 @@ services:
|
|||
- ./aurweb:/aurweb/aurweb
|
||||
- ./migrations:/aurweb/migrations
|
||||
- ./test:/aurweb/test
|
||||
- ./web:/aurweb/web
|
||||
- ./web/html:/aurweb/web/html
|
||||
- ./web/template:/aurweb/web/template
|
||||
- ./web/lib:/aurweb/web/lib
|
||||
- ./templates:/aurweb/templates
|
||||
depends_on:
|
||||
git:
|
||||
|
@ -277,7 +289,9 @@ services:
|
|||
- ./aurweb:/aurweb/aurweb
|
||||
- ./migrations:/aurweb/migrations
|
||||
- ./test:/aurweb/test
|
||||
- ./web:/aurweb/web
|
||||
- ./web/html:/aurweb/web/html
|
||||
- ./web/template:/aurweb/web/template
|
||||
- ./web/lib:/aurweb/web/lib
|
||||
- ./templates:/aurweb/templates
|
||||
|
||||
volumes:
|
||||
|
|
Loading…
Add table
Reference in a new issue