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
|
@ -12,6 +12,7 @@ variables:
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- ./docker/scripts/install-deps.sh
|
- ./docker/scripts/install-deps.sh
|
||||||
|
- pip install -r requirements.txt
|
||||||
- useradd -U -d /aurweb -c 'AUR User' aur
|
- useradd -U -d /aurweb -c 'AUR User' aur
|
||||||
- ./docker/mariadb-entrypoint.sh
|
- ./docker/mariadb-entrypoint.sh
|
||||||
- (cd '/usr' && /usr/bin/mysqld_safe --datadir='/var/lib/mysql') &
|
- (cd '/usr' && /usr/bin/mysqld_safe --datadir='/var/lib/mysql') &
|
||||||
|
|
26
Dockerfile
26
Dockerfile
|
@ -3,9 +3,19 @@ FROM archlinux:base-devel
|
||||||
ENV PYTHONPATH=/aurweb
|
ENV PYTHONPATH=/aurweb
|
||||||
ENV AUR_CONFIG=conf/config
|
ENV AUR_CONFIG=conf/config
|
||||||
|
|
||||||
# Copy our single bootstrap script.
|
# Copy Docker scripts
|
||||||
COPY docker/scripts/install-deps.sh /install-deps.sh
|
COPY ./docker /docker
|
||||||
RUN /install-deps.sh
|
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.
|
# Add our aur user.
|
||||||
RUN useradd -U -d /aurweb -c 'AUR User' aur
|
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.
|
# Setup some default system stuff.
|
||||||
RUN ln -sf /usr/share/zoneinfo/UTC /etc/localtime
|
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.
|
# Install translations.
|
||||||
RUN make -C po all install
|
RUN make -C po all install
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,6 @@ pacman -Syu --noconfirm --noprogressbar \
|
||||||
cgit uwsgi uwsgi-plugin-cgi \
|
cgit uwsgi uwsgi-plugin-cgi \
|
||||||
php php-fpm \
|
php php-fpm \
|
||||||
memcached php-memcached \
|
memcached php-memcached \
|
||||||
pyalpm python-srcinfo
|
python-pip pyalpm python-srcinfo
|
||||||
|
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
|
Loading…
Add table
Reference in a new issue