Skip to content

Commit

Permalink
trying to get install to work on the final step
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewQuijano committed Jul 10, 2024
1 parent 366c210 commit 545105f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ ENV PATH="/scripts:${PATH}"
# we need to transform base_image into a windows compatible filename which we can't
# do in a COPY command.
COPY ./dependencies/* /tmp
COPY ./requirements.txt /tmp

RUN mv /tmp/$(echo "$BASE_IMAGE" | sed 's/:/_/g')_build.txt /tmp/build_dep.txt && \
mv /tmp/$(echo "$BASE_IMAGE" | sed 's/:/_/g')_base.txt /tmp/base_dep.txt

Expand All @@ -22,9 +24,9 @@ RUN [ -e /tmp/base_dep.txt ] && \
apt-get clean

# Finally: Install panda debian package, you need a version that has the Dwarf2 Plugin
RUN wget https://github.com/panda-re/panda/releases/download/v1.8.23/pandare_20.04.deb
RUN command apt install -qq -y ./pandare_20.04.deb
RUN pip install pandare
RUN wget https://github.com/panda-re/panda/releases/download/v1.8.23/pandare_22.04.deb
RUN command apt install -qq -y ./pandare_22.04.deb
RUN pip install -r requirements.txt

### BUILD IMAGE - STAGE 2
FROM base AS builder
Expand All @@ -40,6 +42,8 @@ FROM builder as developer

COPY ./tools/ /tools
COPY ./scripts /scripts
COPY setup_container.py /setup_container.py
COPY setup_container.sh /setup_container.sh

RUN ./setup_container.sh

RUN python3 setup_container.py
# Outside your container, you need to setup your postgres and init-host settings
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ pip3 install --upgrade pip
pip3 install -r requirements.txt
progress "Installed Python requirements"

$SUDO ./setup_container.sh
$SUDO bash setup_container.sh
progress "Installed LAVA"

0 comments on commit 545105f

Please sign in to comment.