mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Updated CI tests for pip dependencies; Changed styling in install-deps.sh
This commit is contained in:
parent
85b1a05d01
commit
eff7d478ab
3 changed files with 15 additions and 14 deletions
26
Dockerfile
26
Dockerfile
|
@ -3,9 +3,19 @@ FROM archlinux:base-devel
|
|||
ENV PYTHONPATH=/aurweb
|
||||
ENV AUR_CONFIG=conf/config
|
||||
|
||||
# Copy our single bootstrap script.
|
||||
COPY docker/scripts/install-deps.sh /install-deps.sh
|
||||
RUN /install-deps.sh
|
||||
# Copy Docker scripts
|
||||
COPY ./docker /docker
|
||||
COPY ./docker/scripts/*.sh /usr/local/bin/
|
||||
|
||||
# Copy over all aurweb files.
|
||||
COPY . /aurweb
|
||||
|
||||
# Working directory is aurweb root @ /aurweb.
|
||||
WORKDIR /aurweb
|
||||
|
||||
# Install dependencies
|
||||
RUN docker/scripts/install-deps.sh
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
# Add our aur user.
|
||||
RUN useradd -U -d /aurweb -c 'AUR User' aur
|
||||
|
@ -13,16 +23,6 @@ RUN useradd -U -d /aurweb -c 'AUR User' aur
|
|||
# Setup some default system stuff.
|
||||
RUN ln -sf /usr/share/zoneinfo/UTC /etc/localtime
|
||||
|
||||
# Copy the rest of docker.
|
||||
COPY ./docker /docker
|
||||
COPY ./docker/scripts/*.sh /usr/local/bin/
|
||||
|
||||
# Copy from host to container.
|
||||
COPY . /aurweb
|
||||
|
||||
# Working directory is aurweb root @ /aurweb.
|
||||
WORKDIR /aurweb
|
||||
|
||||
# Install translations.
|
||||
RUN make -C po all install
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue