Skip to content

Commit

Permalink
docker: Test that D-Bus binary was installed
Browse files Browse the repository at this point in the history
Signed-off-by: Gunnar Andersson <gunnar_dev@[email protected]>
  • Loading branch information
Gunnar Andersson committed Aug 15, 2023
1 parent e23b44a commit d2f4e74
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion docker/Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ RUN python -m venv venv
RUN chown -R ifex:ifex /ifex /home/ifex
USER ifex
RUN . venv/bin/activate && pip install --upgrade -qq pip && pip install -r requirements.txt
RUN . venv/bin/activate && python setup.py develop && ifexgen -h
RUN . venv/bin/activate && python setup.py develop

# Test that binaries can be found
RUN . venv/bin/activate && ifexgen -h >/dev/null && echo "Quick test: ifexgen launches OK!"
RUN . venv/bin/activate && ifexgen_dbus -h >/dev/null && echo "Quick test: ifexgen_dbus launches OK!"

# Make sure venv is enabled when starting interactive bash
COPY scripts/bashrc.venv /home/ifex/.bashrc
Expand Down
5 changes: 4 additions & 1 deletion docker/Dockerfile.ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ RUN pyenv global 3.11
RUN eval "$(pyenv init -)" && pip install --upgrade pip
RUN eval "$(pyenv init -)" && pip install -r requirements.txt
RUN eval "$(pyenv init -)" && python setup.py develop
RUN eval "$(pyenv init -)" && ifexgen -h

# Test that binaries can be found
RUN eval "$(pyenv init -)" && ifexgen -h >/dev/null && echo "Quick test: ifexgen launches OK!"
RUN eval "$(pyenv init -)" && ifexgen_dbus -h >/dev/null && echo "Quick test: ifexgen_dbus launches OK!"

# /work should be bind-mounted when container is started
WORKDIR /work

0 comments on commit d2f4e74

Please sign in to comment.