Skip to content

Commit

Permalink
Start postgresql
Browse files Browse the repository at this point in the history
Signed-off-by: Joel Winarske <[email protected]>
  • Loading branch information
jwinarske committed Jan 19, 2023
1 parent 183c5e9 commit f8d2479
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions debian-11-lava/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,22 @@ USER root

RUN apt update
RUN apt install -y apt-utils

RUN apt install -y postgresql
RUN pg_ctlcluster 13 main start
RUN sleep 10s;tail /var/log/postgresql/postgresql-13-main.log
USER postgres
RUN psql -Ac "SELECT version();"

USER root
RUN apt install -y lava-server

RUN a2dissite 000-default
RUN a2enmod proxy
RUN a2enmod proxy_http
RUN a2ensite lava-server.conf
RUN service apache2 restart
RUN tail /var/log/apache2/error.log

RUN adduser --disabled-password --gecos '' -u ${RUNNER_UID} dev
RUN chown -R dev:dev /home/dev
Expand All @@ -29,10 +37,14 @@ ENV LANG en_US.UTF-8
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
RUN apt-get update && apt-get install -y git-lfs

RUN apt auto-remove -y

USER dev

WORKDIR /home/dev

RUN echo '/home/dev/.ssh/id_rsa' | ssh-keygen -t rsa -b 2048 -C "${USER_EMAIL}"
RUN git config --global user.email ${USER_EMAIL}
RUN git config --global user.name "${USER_NAME}"

ENTRYPOINT service postgresql restart && service apache2 restart && /bin/bash

0 comments on commit f8d2479

Please sign in to comment.