Updated CI tests for pip dependencies; Changed styling in install-deps.sh

This commit is contained in:
Hunter Wittenborn 2021-08-28 20:12:35 -05:00
parent 85b1a05d01
commit eff7d478ab
3 changed files with 15 additions and 14 deletions

View file

@ -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